Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Salt master target all minions even we target certain minion #66531

Closed
8 tasks
tomm144 opened this issue May 16, 2024 · 2 comments
Closed
8 tasks

[BUG] Salt master target all minions even we target certain minion #66531

tomm144 opened this issue May 16, 2024 · 2 comments
Labels
Bug broken, incorrect, or confusing behavior needs-triage

Comments

@tomm144
Copy link

tomm144 commented May 16, 2024

Description
When we run salt 'minion_id' test.ping on salt master it spawns all workers and targets all minion. This causes high load.
Tested on 3006.7 and 3006.7

Setup
tested on test.ping command

Please be as specific as possible and give set-up details.

  • on-prem machine
  • VM (Virtualbox, KVM, etc. please specify)
  • VM running on a cloud service, please be explicit and add details
  • container (Kubernetes, Docker, containerd, etc. please specify)
  • or a combination, please be explicit
  • jails if it is FreeBSD
  • classic packaging
  • onedir packaging
  • used bootstrap to install

Steps to Reproduce the behavior
salt 'certain_minion_id' test.ping

Expected behavior
not target all minions only chosen one, less load.

Versions Report

salt --versions-report (Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)
:~# salt --versions-report
Salt Version:
          Salt: 3006.8
 
Python Version:
        Python: 3.10.14 (main, Apr  3 2024, 21:30:09) [GCC 11.2.0]
 
Dependency Versions:
          cffi: 1.14.6
      cherrypy: unknown
      dateutil: 2.8.1
     docker-py: Not Installed
         gitdb: Not Installed
     gitpython: Not Installed
        Jinja2: 3.1.3
       libgit2: Not Installed
  looseversion: 1.0.2
      M2Crypto: 0.39.0
          Mako: Not Installed
       msgpack: 1.0.2
  msgpack-pure: Not Installed
  mysql-python: Not Installed
     packaging: 22.0
     pycparser: 2.21
      pycrypto: Not Installed
  pycryptodome: 3.19.1
        pygit2: Not Installed
  python-gnupg: 0.4.8
        PyYAML: 6.0.1
         PyZMQ: 23.2.0
        relenv: 0.16.0
         smmap: Not Installed
       timelib: 0.2.4
       Tornado: 4.5.3
           ZMQ: 4.3.4
 
System Versions:
          dist: ubuntu 22.04.4 jammy
        locale: utf-8
       machine: x86_64
       release: 5.15.0-107-generic
        system: Linux
       version: Ubuntu 22.04.4 jammy

Thank you for help

@tomm144 tomm144 added Bug broken, incorrect, or confusing behavior needs-triage labels May 16, 2024
@max-arnold
Copy link
Contributor

Master publishes a job and connected minions decide themselves whether they match the target.

zmq_filtering might help, but it can cause other problems https://docs.saltproject.io/en/latest/topics/transports/zeromq.html#publish-server-and-client

@tomm144
Copy link
Author

tomm144 commented May 21, 2024

@max-arnold thanks. closing...

@tomm144 tomm144 closed this as completed May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug broken, incorrect, or confusing behavior needs-triage
Projects
None yet
Development

No branches or pull requests

2 participants