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] Executing tests/minionswarm.py fails #67214

Open
7 tasks
dnessett opened this issue Feb 1, 2025 · 1 comment
Open
7 tasks

[BUG] Executing tests/minionswarm.py fails #67214

dnessett opened this issue Feb 1, 2025 · 1 comment
Assignees
Labels
Bug broken, incorrect, or confusing behavior

Comments

@dnessett
Copy link

dnessett commented Feb 1, 2025

Description
Executing "python tests/minionswarm.py" fails. Several test support files have moved in 3006.x and references to them in import and other statements are incorrect. Furthermore, the values in VERS are stale and out of date.

Setup
In the salt source directory:
cd tests

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

  • [ X] 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
  • [ X] onedir packaging
  • used bootstrap to install

Steps to Reproduce the behavior
In the salt source directory:
pyenv activate "virtualenv"
cd tests
python minionswarm.py --help

Expected behavior
Help menu should appear:

python minionswarm.py --help
Usage: minionswarm.py [options]

Options:
-h, --help show this help message and exit
-m MINIONS, --minions=MINIONS
The number of minions to make
-M Run a local master and tell the minions to connect to
it
--master=MASTER The location of the salt master that this swarm will
serve
-n NAME, --name=NAME Give the minions an alternative id prefix, this is
used when minions from many systems are being
aggregated onto a single master
--rand-os Each Minion claims a different os grain
--rand-ver Each Minion claims a different version grain
--rand-machine-id Each Minion claims a different machine id grain
--rand-uuid Each Minion claims a different UUID grain
-k KEEP, --keep-modules=KEEP
A comma delimited list of modules to enable
-f, --foreground Run the minions with debug output of the swarm going
to the terminal
--temp-dir=TEMP_DIR Place temporary files/directories here
--no-clean Don't cleanup temporary files/directories
--root-dir=ROOT_DIR Override the minion root_dir config
--transport=TRANSPORT
Declare which transport to use, default is zeromq
--start-delay=START_DELAY
Seconds to wait between minion starts
-c CONFIG_DIR, --config-dir=CONFIG_DIR
Pass in a configuration directory containing base
configuration.
-u USER, --user=USER

Screenshots
If applicable, add screenshots to help explain your problem.

Versions Report

Salt Version:
          Salt: 3007.0
 
Python Version:
        Python: 3.10.15 (main, Oct 14 2024, 13:34:24) [GCC 11.4.0]
 
Dependency Versions:
          cffi: 1.17.1
      cherrypy: Not Installed
  cryptography: 43.0.3
      dateutil: 2.9.0.post0
     docker-py: Not Installed
         gitdb: Not Installed
     gitpython: Not Installed
        Jinja2: 3.1.4
       libgit2: Not Installed
  looseversion: 1.3.0
      M2Crypto: Not Installed
          Mako: Not Installed
       msgpack: 1.1.0
  msgpack-pure: Not Installed
  mysql-python: Not Installed
     packaging: 24.1
     pycparser: 2.22
      pycrypto: Not Installed
  pycryptodome: 3.21.0
        pygit2: Not Installed
  python-gnupg: Not Installed
        PyYAML: 6.0.2
         PyZMQ: 26.2.0
        relenv: Not Installed
         smmap: Not Installed
       timelib: Not Installed
       Tornado: 4.5.3
           ZMQ: 4.3.5
 
System Versions:
          dist: linuxmint 21.3 virginia
        locale: utf-8
       machine: x86_64
       release: 6.8.0-50-generic
        system: Linux
       version: Linux Mint 21.3 virginia

Additional context
Add any other context about the problem here.

@dnessett dnessett added Bug broken, incorrect, or confusing behavior needs-triage labels Feb 1, 2025
@dwoz dwoz removed the needs-triage label Feb 2, 2025
@dwoz dwoz added this to the Chlorine v3007.2 milestone Feb 2, 2025
@dnessett
Copy link
Author

dnessett commented Feb 2, 2025

I have moved the branch I'm working on to 3006.x, per instructions. Do, I need to change anything in the bug report (e.g., the versions report information) to reflect that?

Never-mind. I'm still getting used to git and salt. salt --versions-report gives:

Salt Version:
Salt: 3007.1+445.g9233e1cc3b

Whereas, git remote show origin gives:

Local branches configured for 'git pull':
bugfix-67214 merges with remote 3006.x
master merges with remote master
show merges with remote master

So, it appears versions-report doesn't show the upstream origin for the branch.

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
Projects
None yet
Development

No branches or pull requests

2 participants