-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
If (python-) pip is not installed, some state requisites will not work #54804
Comments
I guess the easiest thing to do is add
|
Or maybe not; something weird may be going on here. After installing Sample state per above:
With the requisite:
and without:
|
Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description of Issue
This one is a real headscratcher... I observed that
unless
andonlyif
requisites simply did not work when I installed2019.2.1
on my hosts. When I ran the simpliest of states with either these requisites, the master would observe a minion timeout and the minion's log would be plastered with aNameError
and dozens ofAttributeError
s.Digging into the logs, the
NameError
stacktrace suggested thatpip
is imported whenever a anunless
oronlyif
requisite is used... and if not present, it is not handled gracefully!When running a state with these requisites and when
python-pip
is not installed on the host this is observed:From the master:
In the minion logs:
Setup
Ensure
pip
is not installed on the host:Create a simple state:
Steps to Reproduce Issue
Apply the state to a minion when pip is not installed; it will timeout.
Remove the
onlyif
orunless
requisite and the state works as expected.or: Install
python3-pip
on the minion, bounce thesalt-minion
, and voila...Again: from the master after having run the above:
Versions Report
The text was updated successfully, but these errors were encountered: