[BUG] `jobs.master` doesn't work
Description jobs.master doesn't work, i.e. it does not "Return the actively executing runners for the master".
Setup
Install salt-master / salt-minion on a machine
Configure as follows
# /etc/salt/master.d/master.conf
user: root
# /etc/salt/minion.d/minion.conf
master: localhost
The following orchestration was used to demonstrate the bug.
# /srv/salt/orch.sls
sleep 60:
cmd.run
Steps to Reproduce the behavior
Run the orchestration
salt-run state.orch orch
In another terminal, while the above orchestration is sleeping, run jobs.master
salt-run jobs.master
Observe that there is no output from this command even though an orchestration is currently running via the state.orch runner.
Expected behavior
jobs.master should report the "actively executing runners for the master". The salt-run jobs.master command in the above example should have given me some sort of indication of the currently running orchestration.
Versions Report
Salt Version:
Salt: 3007.0
Python Version:
Python: 3.10.13 (main, Feb 19 2024, 03:31:20) [GCC 11.2.0]
Dependency Versions:
cffi: 1.16.0
cherrypy: unknown
dateutil: 2.8.2
docker-py: Not Installed
gitdb: Not Installed
gitpython: Not Installed
Jinja2: 3.1.3
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: 23.1
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.15.1
smmap: Not Installed
timelib: 0.3.0
Tornado: 6.3.3
ZMQ: 4.3.4
Salt Package Information:
Package Type: onedir
System Versions:
dist: ubuntu 22.04.2 jammy
locale: utf-8
machine: x86_64
release: 5.15.0-67-generic
system: Linux
version: Ubuntu 22.04.2 jammy
Is this also an issue in 3006.x?
@dwoz yes, appears to behave the same in 3006.8 at least
while running a salt-run command /var/cache/salt/master/proc is empty jobs.master uses get_running_jobs
https://github.com/saltstack/salt/blob/master/salt/utils/master.py#L33
and this suggests something should be in the /var/cache/salt/master/proc folder