-
Notifications
You must be signed in to change notification settings - Fork 2.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
ignore_chown_errors is ignored in global storage.conf #7513
Comments
If I'm reading it right, it's currently an either-or thing. I could see us wanting to change that, and wiring in a |
@plopresti My understanding was that the global storage configuration file was taken into account when generating per-user storage configuration, which would mean I would expect your adding configuration to that file would work. @nalind has indicated that is not presently the case, though, so there is presently no way to set global storage configuration options for rootless Podman at present. |
It sounds like something we should allow, though - your use-case of globally setting ignore-chown-errors is 100% valid. |
@mheon This version of podman does not generate any per-user storage configuration. (If you start with no ~/.config/containers/storage.conf, running podman does not create it.) This is kind of how I noticed... My own storage.conf was generated the first time I ran podman a while ago. So I had instructions for people to edit their per-user storage.conf after running "podman" the first time. But they cannot follow those instructions because it is no longer created. So I figured maybe I would just add ignore_chown_errors to the global settings file and be done with it. Then I discovered that does not work, so I filed this bug. It seems like podman is a little confused/confusing on how it handles config files in general (?) Or is it just for this setting? |
Creating config files on first run had its own set of problems (#7509 is an example) so we decided to disable it. You should still be able to create the file yourself with minimal contents (just the basic structure and ignore_chown_errors set, everything else commented out) and we will still read and use it. |
This should work.
So it looks like this field is being ignored by rootless containers, This is definitely a bug. |
We need to get this fixed ASAP. It is needed for HPC Environmnets. |
@rhatdan I would expect the storage configuration to be implemented like this:
Obviously, this is not how it works... Because if it were, this bug itself would be "impossible by construction". So my question is, how DOES it work; and, more importantly, where is it documented? |
Podman 2.0.7 should have this fix. |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
ignore_chown_errors = "true" does not work if I put it in /etc/containers/storage.conf. It does work if I put it in ~/.config/containers/storage.conf.
Steps to reproduce the issue:
Describe the results you received:
"pm info | grep ignore_chown_errors" shows nothing even though I set ignore_chown_errors in /etc/containers/storage.conf
Describe the results you expected:
I expect the ignore_chown_errors setting in /etc/containers/storage.conf to be honored
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
The text was updated successfully, but these errors were encountered: