Skip to content

[BUG] salt.runner.mine not returning any data #68188

@marten713

Description

@marten713

Description
I used this piece of documentation: https://docs.saltproject.io/en/latest/ref/runners/all/salt.runners.mine.html

When running the mine runner to gather mine data of some minions it does not return any data.

This is the exact command I'm running:

root@salt:~# salt-run mine.get tgt='*' fun='test_fun'
root@salt:~# 

Trying to run mine.update succeeds:

root@salt:~# salt-run mine.update tgt='*'
minion-1:
    True
minion-2:
    True

Also when running the mine module on a minion:

root@salt:~# salt 'minion-1' mine.get tgt='*' fun='test_fun'
minion-1:
    ----------
    minion-1:
        hello test
    minion-2:
        hello test

Setup

  • The salt-master and salt-minions run in incus/lxc container
  • The container OS is Debian 12 (built with debootstrap)
  • The salt-master and salt-minion run version 3007.6, using the official DEB package
  • The host OS is openSUSE Leap 15.6

pillar/top.sls:

base:

  '*':
    - mine

pillar/mine.sls:

mine_functions:
  test_fun:
    allow_tgt: '* and salt_master'
    allow_tgt_type: 'compound'
    mine_function: cmd.run
    cmd: 'echo hello test'

Note: I used the compound matcher and added 'salt_master' (my masters hostname is 'salt') as otherwise the salt mine request would get denied.

Steps to Reproduce the behavior
(Include debug logs if possible and relevant)

  • Take a fresh Debian 12 installation and install salt-master
  • Take a fresh Debian 12 installation and install salt-minion
  • Apply the above pillar/top.sls and pillar/mine.sls
  • Try to run salt-run mine.get tgt='*' fun='test_fun'

This is the log output (/var/log/salt/master) on the master, when setting log_level: all: master-all.log
On the minion nothing shows up in the log, which I guess is expected behavior as the data should be pulled from the mine.

Expected behavior
I expect the call to return mine data.

Screenshots
-/-

Versions Report
salt-master:

Salt Version:
          Salt: 3007.6
 
Python Version:
        Python: 3.10.17 (main, Jul  2 2025, 22:34:57) [GCC 11.2.0]
 
Dependency Versions:
          cffi: 1.16.0
      cherrypy: unknown
  cryptography: 42.0.5
      dateutil: 2.8.2
     docker-py: Not Installed
         gitdb: Not Installed
     gitpython: Not Installed
        Jinja2: 3.1.6
       libgit2: Not Installed
  looseversion: 1.3.0
      M2Crypto: Not Installed
          Mako: Not Installed
       msgpack: 1.0.7
  msgpack-pure: Not Installed
  mysql-python: Not Installed
     packaging: 24.0
     pycparser: 2.21
      pycrypto: Not Installed
  pycryptodome: 3.19.1
        pygit2: Not Installed
  python-gnupg: 0.5.2
        PyYAML: 6.0.1
         PyZMQ: 25.1.2
        relenv: 0.19.4
         smmap: Not Installed
       timelib: 0.3.0
       Tornado: 6.4.2
           ZMQ: 4.3.4
 
Salt Package Information:
  Package Type: onedir
 
System Versions:
          dist: debian 12.11 bookworm
        locale: utf-8
       machine: x86_64
       release: 6.4.0-150600.23.53-default
        system: Linux
       version: Debian GNU/Linux 12.11 bookworm

salt-minion:

Salt Version:
          Salt: 3007.6
 
Python Version:
        Python: 3.10.17 (main, Jul  2 2025, 22:34:57) [GCC 11.2.0]
 
Dependency Versions:
          cffi: 1.16.0
      cherrypy: 18.8.0
  cryptography: 42.0.5
      dateutil: 2.8.2
     docker-py: Not Installed
         gitdb: Not Installed
     gitpython: Not Installed
        Jinja2: 3.1.6
       libgit2: Not Installed
  looseversion: 1.3.0
      M2Crypto: Not Installed
          Mako: Not Installed
       msgpack: 1.0.7
  msgpack-pure: Not Installed
  mysql-python: Not Installed
     packaging: 24.0
     pycparser: 2.21
      pycrypto: Not Installed
  pycryptodome: 3.19.1
        pygit2: Not Installed
  python-gnupg: 0.5.2
        PyYAML: 6.0.1
         PyZMQ: 25.1.2
        relenv: 0.19.4
         smmap: Not Installed
       timelib: 0.3.0
       Tornado: 6.4.2
           ZMQ: 4.3.4
 
Salt Package Information:
  Package Type: onedir
 
System Versions:
          dist: debian 12.11 bookworm
        locale: utf-8
       machine: x86_64
       release: 6.4.0-150600.23.53-default
        system: Linux
       version: Debian GNU/Linux 12.11 bookworm

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

bugbroken, incorrect, or confusing behaviorneeds-triage

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions