You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
3008.x: IPC socket mismatch between RequestServer.zmq_device and MWorkers when using workaround for #69911 #69912
Related to #69911. On 3008.x, when working around #69911 by setting both worker_pools_enabled: False and explicit worker_pools: config, the legacy RequestServer.zmq_device and MWorker workers bind to different IPC sockets and cannot communicate. The master accepts connections on 4506 but every auth times out because MWorkerQueue and workers never see each others' messages.
Log evidence
[INFO ][186] RequestServer workers ipc:///var/run/salt/master/workers.ipc
[INFO ][187] Worker binding to socket ipc:///var/run/salt/master/workers-default.ipc
[INFO ][190] Worker binding to socket ipc:///var/run/salt/master/workers-default.ipc
[INFO ][191] Worker binding to socket ipc:///var/run/salt/master/workers-default.ipc
The MWorkerQueue (RequestServer.zmq_device, pid 186) binds workers.ipc because its pool_name opt is empty at the RequestServer level. The MWorkers (pids 187/190/191, post-fork) each pick up pool_name="default" from the worker_pools config and bind workers-default.ipc.
Root cause
salt/transport/zeromq.py:513 zmq_device() derives w_uri from self.opts.get("pool_name", ""), which is empty for the top-level RequestServer. MWorker's post_fork path reads pool config independently and picks the per-pool socket name, so the two disagree whenever worker_pools_enabled is False but worker_pools is still defined (the workaround for #69911).
Reproduction (starting from a running 3008.x master):
Restart; the master starts without crashing but every salt '*' test.ping times out.
Suggested fix
Either
zmq_device needs to derive w_uri using the same pool naming logic MWorker post_fork uses when worker_pools is defined, even if worker_pools_enabled is False, or
MWorker post_fork should skip the pool naming when worker_pools_enabled is False, or
Activity
Connect legacy MWorkers to the socket zmq_device binds