'pip.installed' is not available when running highstate #44980
Comments
@angeloudy Thanks for the report. Are you able to confirm if the issues you're seeing are happening only on FreeBSD or happen on other systems too. |
@garethgreenaway we are only using FreeBSD. |
I was able to replicate this on Arch. One thing I noticed was I could only replicate it when the state was a part of a highstate. If I call the state directly with To note this is also broken on oxygen. |
I think this issue is part of pip. |
I can verify that when applying this patch I can now run the state just fine :) Seems its an upstream issue. @angeloudy are you seeing the same ? |
This just started happening to us as well:
Tried with both 2017.7.1 and 2017.7.4. Happens both in highstate and when I run Version report:
|
We're seeing similar issues, which seemingly started occurring overnight:
I have managed to workaround this in our particularly simple use case by refactoring our use of |
I'm seeing the same as @d-shi on our Ubuntu 16.04/Salt 2017.7.4 nodes. |
Also encountered this on pip 9.0.2, stphrnl's downgrade work around resolved it. |
can any of you confirm this patch fixes the issue as well? pypa/pip#4442 this appears to be an upstream issue . |
My error seems to be slightly different to the locations.py error the original poster had. The patch didn't seem to help which makes sense since there is no locations.py in my stacktrace. Toki and my issue probably belong in #46611 - I put a comment there with my stacktrace and this information. |
ahh yes you are right seems your issue is more like that one. As I confirmed that the upstream fix fixes the original issue I will go ahead and close this and it seems the issue in #46611 is the right one for the rest of you. Thanks! |
Description of Issue/Question
state file:
This runs OK if I do salt minion1 state.apply haproxy
But if I run salt minion1 state.highstate, I got an error
there's also some errors in /var/log/salt/minion:
Setup
OS: FreeBSD 11.1
python: 3.6
Steps to Reproduce Issue
upgrade salt from py27-salt to py36-salt
Versions Report
The text was updated successfully, but these errors were encountered: