Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
State 'pip.installed' was not found in SLS #46247
We upgraded Saltstack to Nitrogen release (version 2017.7.3) from Carbon(version 2016.11.1) two days ago.
When 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
However, when I push the same states from the master running Nitrogen to a minion running Carbon, the above works fine - no issues.
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
Any idea on why is this breaking? Why would it work against a minion running Carbon version but nor against a minion running Nitrogen?
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.