I’ve been upgrading my Salt cluster which was created a few months ago and left as it was. The problem is happened after sudo do-release-upgrade
from Ubuntu 12.04 to 14.04 with salt-master and salt-minions. When I run sudo salt '*' state.highstate
, it failed because pip.installed state is unavailable, although pip is installed successfully. After googled I found some related posts.
- 22.26.22.2. Reloading Modules
- Required package not found yet package is installed.
- On first run “State docker.xxx found in sls is unavailable”
- pip.installed state has insufficient pip detection #7659
It’s happened before
As I wrote in this post it’s happened before. At that time I manually removed python-pip packege then re-installed via get-pip.py as a workaround.
$ sudo apt-get remove python-pip |
This SLS didn’t work
This SLS file occurs a error. It looks correct at first sight.
... |
A revised SLS
In found a related Salt Documatation in 22.26.22.2. Reloading Modules. It tells me how to solve this problem using reload_modules
flag.
python-pip: |
I revised my SLS as below.
python-pip: |
After purged old package, it works this time.
$ sudo salt '*' pkg.purge python-pip |