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

The 'salt==3005' distribution was not found and is required by the application #1862

Closed
ahutchens-rave opened this issue Sep 1, 2022 · 2 comments
Assignees

Comments

@ahutchens-rave
Copy link

ahutchens-rave commented Sep 1, 2022

Description of Issue/Question

Fresh installations of Salt will not start after 3005 release, giving the following error:

=====================

[root@salttest ~]# /usr/bin/salt-minion
Traceback (most recent call last):
  File "/usr/bin/salt-minion", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3239, in <module>
    def _initialize_master_working_set():
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3222, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3251, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 567, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 884, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 770, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'salt==3005' distribution was not found and is required by the application

=====================

Setup

Salt is being installed via bootstrap script on Rocky 8.6 as follows:

=====================

curl -L https://bootstrap.saltstack.com -o install_salt.sh && /bin/sh install_salt.sh -A qa-master
mkdir -p /etc/salt/pki/minion
curl -sSk https://qa-master:8000/keys \
        -d mid=$HOSTNAME \
        -d username=******* \
        -d password=******** \
        -d eauth=pam \
    | tar -C /etc/salt/pki/minion -xf -

mkdir -p /etc/salt/minion.d
printf "master: qa-master.qa.raveu.net\nid: $HOSTNAME" > /etc/salt/minion.d/id.conf

=====================

This has been successful for some time now, and just started throwing errors recently.

Steps to Reproduce Issue

Unsure how to reproduce other than spinning up a brand new Rocky 8.6 machine and running the bootstrap script.

Versions and Systems

bootstrap.txt

[root@salttest ~]# ./bootstrap-salt.sh -v
./bootstrap-salt.sh -- Version 2022.08.13
[root@salttest ~]# cat /etc/redhat-release
Rocky Linux release 8.4 (Green Obsidian)

NOTE: Some are 8.4, others are 8.6 (with the same issues)
Running on ESX

@ahutchens-rave
Copy link
Author

Not sure what's up with the formatting, sorry; Daithi requested this be assigned to @dmurphy18 in Slack

@dmurphy18
Copy link
Contributor

@ahutchens-rave Closing this since Salt 3005 is EOL, if you want to install 3005 with bootstrap.sh, then please use a version of the bootstrap script which is close to that release date, current version of the bootstrap script only support 3006 and up, that is, versions of Salt that are supported (onedir). Please feel free to reopen if other matters relevant to this issue come to light.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants