Skip to content

[Bug]: Batch mode does not work with 3008.0/1 ? #69418

@tazaki

Description

@tazaki

What happened?

I am trying to run the salt command in batch mode.

[root@saltmaster ~]# salt '*' test.ping
minion1:
    True
saltmaster:
    True

[root@saltmaster ~]# salt -b 1 '*' test.ping

Executing run on ['minion1']

[ERROR   ] An un-handled exception was caught by Salt's global exception handler:
SaltClientError: Some exception handling minion payload
Traceback (most recent call last):
  File "/opt/saltstack/salt/lib/python3.14/site-packages/salt/client/__init__.py", line 539, in run_job
    pub_data = self.pub(
        tgt,
    ...<7 lines>...
        **kwargs,
    )
  File "/opt/saltstack/salt/lib/python3.14/site-packages/salt/client/__init__.py", line 2149, in pub
    raise PublishError(error)
salt.exceptions.PublishError: Some exception handling minion payload

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/salt", line 12, in <module>
    sys.exit(salt_main())
             ~~~~~~~~~^^
  File "/opt/saltstack/salt/lib/python3.14/site-packages/salt/scripts.py", line 586, in salt_main
    client.run()
    ~~~~~~~~~~^^
  File "/opt/saltstack/salt/lib/python3.14/site-packages/salt/cli/salt.py", line 50, in run
    self._run()
    ~~~~~~~~~^^
  File "/opt/saltstack/salt/lib/python3.14/site-packages/salt/cli/salt.py", line 76, in _run
    self._run_batch()
    ~~~~~~~~~~~~~~~^^
  File "/opt/saltstack/salt/lib/python3.14/site-packages/salt/cli/salt.py", line 322, in _run_batch
    for res, job_retcode in batch.run():
                            ~~~~~~~~~^^
  File "/opt/saltstack/salt/lib/python3.14/site-packages/salt/cli/batch.py", line 194, in run
    new_returns, timed_out = self._poll_iterators(
                             ~~~~~~~~~~~~~~~~~~~~^
        iters, minion_tracker, raw_mode, raw_by_minion
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/opt/saltstack/salt/lib/python3.14/site-packages/salt/cli/batch.py", line 317, in _poll_iterators
    part = next(queue)
  File "/opt/saltstack/salt/lib/python3.14/site-packages/salt/client/__init__.py", line 1117, in cmd_iter_no_block
    pub_data = self.run_job(
        tgt,
    ...<7 lines>...
        **kwargs,
    )
  File "/opt/saltstack/salt/lib/python3.14/site-packages/salt/client/__init__.py", line 561, in run_job
    raise SaltClientError(general_exception)
salt.exceptions.SaltClientError: Some exception handling minion payload
Traceback (most recent call last):
  File "/opt/saltstack/salt/lib/python3.14/site-packages/salt/client/__init__.py", line 539, in run_job
    pub_data = self.pub(
        tgt,
    ...<7 lines>...
        **kwargs,
    )
  File "/opt/saltstack/salt/lib/python3.14/site-packages/salt/client/__init__.py", line 2149, in pub
    raise PublishError(error)
salt.exceptions.PublishError: Some exception handling minion payload

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/salt", line 12, in <module>
    sys.exit(salt_main())
             ~~~~~~~~~^^
  File "/opt/saltstack/salt/lib/python3.14/site-packages/salt/scripts.py", line 586, in salt_main
    client.run()
    ~~~~~~~~~~^^
  File "/opt/saltstack/salt/lib/python3.14/site-packages/salt/cli/salt.py", line 50, in run
    self._run()
    ~~~~~~~~~^^
  File "/opt/saltstack/salt/lib/python3.14/site-packages/salt/cli/salt.py", line 76, in _run
    self._run_batch()
    ~~~~~~~~~~~~~~~^^
  File "/opt/saltstack/salt/lib/python3.14/site-packages/salt/cli/salt.py", line 322, in _run_batch
    for res, job_retcode in batch.run():
                            ~~~~~~~~~^^
  File "/opt/saltstack/salt/lib/python3.14/site-packages/salt/cli/batch.py", line 194, in run
    new_returns, timed_out = self._poll_iterators(
                             ~~~~~~~~~~~~~~~~~~~~^
        iters, minion_tracker, raw_mode, raw_by_minion
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/opt/saltstack/salt/lib/python3.14/site-packages/salt/cli/batch.py", line 317, in _poll_iterators
    part = next(queue)
  File "/opt/saltstack/salt/lib/python3.14/site-packages/salt/client/__init__.py", line 1117, in cmd_iter_no_block
    pub_data = self.run_job(
        tgt,
    ...<7 lines>...
        **kwargs,
    )
  File "/opt/saltstack/salt/lib/python3.14/site-packages/salt/client/__init__.py", line 561, in run_job
    raise SaltClientError(general_exception)
salt.exceptions.SaltClientError: Some exception handling minion payload

Type of salt install

Official rpm

Major version

3007.x

What supported OS are you seeing the problem on? Can select multiple. (If bug appears on an unsupported OS, please open a GitHub Discussion instead)

almalinux-9

salt --versions-report output

[root@saltmaster ~]# salt --versions
Salt Version:
          Salt: 3008.0

Python Version:
        Python: 3.14.5 (main, May 12 2026, 03:56:57) [GCC 11.2.0]

Dependency Versions:
          cffi: 2.0.0
      cherrypy: 18.10.0
  cryptography: 46.0.7
      dateutil: 2.9.0.post0
     docker-py: Not Installed
         gitdb: 4.0.12
     gitpython: 3.1.50
        Jinja2: 3.1.6
       libgit2: Not Installed
  looseversion: 1.3.0
      M2Crypto: Not Installed
          Mako: Not Installed
       msgpack: 1.1.2
  msgpack-pure: Not Installed
  mysql-python: Not Installed
     packaging: 24.0
     pycparser: 3.00
      pycrypto: Not Installed
  pycryptodome: 3.23.0
        pygit2: Not Installed
  python-gnupg: 0.5.6
        PyYAML: 6.0.3
         PyZMQ: 27.1.0
        relenv: 0.22.11
         smmap: 5.0.2
       timelib: 0.3.0
       Tornado: 6.5.5
           ZMQ: 4.3.5

Salt Extensions:
 saltext.vault: 1.6.0

Salt Package Information:
  Package Type: onedir

System Versions:
          dist: almalinux 9.8 Olive Jaguar
        locale: utf-8
       machine: x86_64
       release: 5.14.0-687.5.4.el9_8.x86_64
        system: Linux
       version: AlmaLinux 9.8 Olive Jaguar

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugbroken, incorrect, or confusing behavior

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions