State 'pip.installed' was not found in SLS #46247
Closed
Labels
Milestone
Comments
You will need the python27-pip package for nitrogen, What is failing is that salt-minion on centos 6 2017.7 uses python27, because we have dropped support for python2.6. And the pip modules requires an importable pip module in order to run version comparisons.
If you want to make sure that you are pip installing to the python26 environment, you will need to do something like the above. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello there,
We upgraded Saltstack to Nitrogen release (version 2017.7.3) from Carbon(version 2016.11.1) two days ago.
Currently, we are facing an issue with the
pip.installed
state when pushing to a minion. Both master and minion are running the same 2017.7.3 version. My state looks like belowWhen running above states, we get an error saying:
The salt-master and minion versions is:
Searching on internet, I came across https://groups.google.com/forum/#!msg/salt-users/x3yX0cBasXw/XyaEGHsQ-nYJ and #24925 which basically say that I need to add
reload_modules: True
in thepip.installed
state.I have tried adding that but it does not seem to fix anything.
However, when I push the same states from the master running Nitrogen to a minion running Carbon, the above works fine - no issues.
The versions of that Carbon salt-minion are:
The main difference between the Nitrogen salt-minion and the Carbon salt-minion are the version of Python they are using, with the first using
Python: 2.7.14 (default, Jan 31 2018, 02:12:13)
and the second usingPython: 2.6.6 (r266:84292, May 22 2015, 08:34:51)
Any idea on why is this breaking? Why would it work against a minion running Carbon version but nor against a minion running Nitrogen?
Thanks,
The text was updated successfully, but these errors were encountered: