-
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
[BUG] Commands triggered by virtualenv.managed might not respect the user param #59088
Comments
Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here’s some information that may help as you continue your Salt journey.
There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar. |
@marangonico did you check permissions on pycache dir before executing the state? |
IIRC, yes... but it was a month ago, I cannot be sure. ¯\(ツ)/¯ |
@krionbsd I've just tested few minutes and I confirm that the virtualenv created with saltstack has root permissions on
Maybe @waynew would have an insight on how to fix that bug ? |
This is still an issue for me |
salt 3003.1 |
Combining |
Noting this bug persists in Ubuntu 22.04 too. |
Still a problem with 3005.1.. |
It looks like there was some work on this in #59089, which would need to be picked up again |
Description
Commands triggered by virtualenv.managed might not respect the user parameter, which result in a pycache folder owned by root, triggering permission issues later on.
This bug is the same as #57550
Setup
Ubuntu 20.04, python 3.7, salt 3002.2
Example of state used:
Expected behavior
Execution of the above state is partially executed as root and .pyc files are written as such.
[ERROR ] stderr: ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/opt/penta/env/chimera/lib/python3.7/site-packages/__pycache__/zipp.cpython-37.pyc' Consider using the
--useroption or check the permissions.
Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)The text was updated successfully, but these errors were encountered: