Skip to content

3008.x: IPC socket mismatch between RequestServer.zmq_device and MWorkers when using workaround for #69911 #69912

Open

Description

@dwoz

Description

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):

# master config
worker_pools_enabled: False
worker_pools:
  default:
    worker_count: 3
    commands: ["*"]

Restart; the master starts without crashing but every salt '*' test.ping times out.

Suggested fix

Either

  1. 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
  2. MWorker post_fork should skip the pool naming when worker_pools_enabled is False, or
  3. Fix 3008.x: setting worker_pools_enabled=False crashes zmq_device via RequestRouter #69911 upstream so the legacy path doesn't need this workaround.

Version: 3008.2+152.g4a10864f6a (CI RPM from PR #69908).

Activity

  1. added
    severity-medium3rd level, incorrect or bad functionality, confusing and lacks a work around
    bugbroken, incorrect, or confusing behavior
    on Oct 21, 2026
  2. added a commit that references this issue on Nov 10, 2026
    2103444
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugbroken, incorrect, or confusing behaviorseverity-medium3rd level, incorrect or bad functionality, confusing and lacks a work around

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions