Bug 2537131 - Rootless podman failure after 44-45 upgrade when /etc/containers/storage.conf is present
Summary: Rootless podman failure after 44-45 upgrade when /etc/containers/storage.conf...
Keywords:
Status: ASSIGNED
Alias: None
Product: Fedora
Classification: Fedora
Component: containers-common
Version: 45
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Lokesh Mandvekar
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: https://discussion.fedoraproject.org...
: 2568641 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-09-19 08:38 UTC by H.Janssen
Modified: 2026-11-21 20:28 UTC (History)
12 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)
Current contents of /etc/containers/storage.conf (8.44 KB, text/plain)
2026-09-22 14:06 UTC, Nathanael Noblet
no flags Details
Honce's storage.conf example (8.44 KB, text/plain)
2026-11-09 15:05 UTC, Jhon Honce
no flags Details

Description H.Janssen 2026-09-19 08:38:10 UTC
Rootless podman:

podman images

Error: creating runtime static files directory "/var/lib/containers/storage/libpod": mkdir /var/lib/containers/storage/libpod: permission denied




Reproducible: Always

Steps to Reproduce:
1. Have an /etc/containers/storage.conf copied from F44 version /usr/share/containers/storage.conf
2.type podman images
3.
Actual Results:
Error: creating runtime static files directory "/var/lib/containers/storage/libpod": mkdir /var/lib/containers/storage/libpod: permission denied


Expected Results:
list of images

Additional Information:
Removal of /etc/containers/storage.conf fixes the problem.

The file is owned by package containers-common as ghost file, there is no 
.rpmnew/.rpmsave indication that something has to be done with this file.

There is a number of changes between the 44/45 versions of /usr/share/containers/storage.conf. Presence of a f44 copy in /etc/containers causes complete podman failure.

Comment 1 Lokesh Mandvekar 2026-09-21 13:52:17 UTC
Hi, did you modify storage.conf while on F44? If you have, the update to the F45 version will restore the /etc/containers/storage.conf.rpmsave to /etc/containers/storage.conf and it should continue to work there just the same (Paul/others in CC can correct me if this location doesn't work anymore).

Would you mind checking if it was an selinux issue? Run `sudo setenforce 0` and retry this. If it still occurs, then we'll have to look at packaging issues. 

If it can't be reproduced with selinux disabled, then please re-enable selinux with `sudo setenforce 1`, retry the reproducer, and send us any denials you see with: sudo ausearch -m AVC,USER_AVC -ts recent

Comment 2 Nathanael Noblet 2026-09-22 14:06:17 UTC
I have the same issue. I don't know if I had modified /etc/containers/storage.conf prior to upgrading to Fedora 45 Beta. I tried with selinux disabled immediately on hitting the issue, which didn't fix the problem. I first ran sudo podman system migrate and then just plain podman system migrate. Neither fixed the problem. I include these details because I don't really know what those commands do but it was suggested as I tried to figure out the problem and I don't know if they would have created/changed the /etc/containers/storage.conf.  I've included the current copy of that file. I'll point out that the file is owned by containers-common-0.69.2-1.fc45.noarch. The workaround that worked for me is adding ~/.config/containers/storage.conf with 

```
[engine]
# Explicitly forces podman to use rootless storage tracking
rootless_storage_path = "$HOME/.local/share/containers/storage"
```

```
gnat@legion:~$ sudo rpm -V containers-common
.M.......  g /etc/containers/storage.conf
```

Comment 3 Nathanael Noblet 2026-09-22 14:06:59 UTC
Created attachment 2158342 [details]
Current contents of /etc/containers/storage.conf

Comment 4 Nathanael Noblet 2026-09-22 14:08:18 UTC
I'll point out that my /etc/containers/storage.conf has the rootless_storage_path commented out, but that isn't something I did manually and would probably fix my problem as well.

Comment 5 Nathanael Noblet 2026-09-22 18:53:21 UTC
I've logged into my other workstation that is setup similar but is still on Fedora 44.

I don't have a /etc/containers/storage.conf file. However rpm -ql containers-common:

```
Name        : containers-common
Epoch       : 5
Version     : 0.67.2
Release     : 1.fc44
Architecture: noarch
Install Date: Mon 21 Sep 2026 09:00:57 AM MDT
Group       : Unspecified
Size        : 137202
License     : Apache-2.0
Signature   :
              RSA/SHA256, Thu 17 Sep 2026 07:14:33 AM MDT, Key ID dbfcf71c6d9f90a6
Source RPM  : containers-common-0.67.2-1.fc44.src.rpm
Build Date  : Wed 16 Sep 2026 02:11:56 PM MDT
Build Host  : buildvm-x86-19.rdu3.fedoraproject.org
Packager    : Fedora Project
Vendor      : Fedora Project
URL         : https://github.com/containers/container-libs
Bug URL     : https://bugz.fedoraproject.org/containers-common
Summary     : Common configuration and documentation for containers
Description :
This package contains common configuration files and documentation for container
tools ecosystem, such as Podman, Buildah and Skopeo.

It is required because the most of configuration files and docs come from projects
which are vendored into Podman, Buildah, Skopeo, etc. but they are not packaged
separately.

...
/etc/containers/storage.conf
....
/usr/share/containers/storage.conf
....
```
It has listed /etc/containers/storage.conf, however there is no actual file /etc/containers/storage.conf.

I compared the F44 /usr/share/containers/storage.conf and F45 /etc/containers/storage.conf (that I uploaded). There are many differences but it seems mostly wholesale file organization. Both files have the commented lines.

```
# Storage path for rootless users
#
# rootless_storage_path = "$HOME/.local/share/containers/storage"

```

So I don't know how this works with F44 but not F45.

Comment 6 H.Janssen 2026-09-22 20:21:57 UTC
To get the unmodified Fedora 44 /usr/share/containers/storage.conf working in F45, 
when copied to /etc/containers for modification:

1. Comment out the graphroot parameter
2. Comment out the additionalimagestores array

Both parameters are commented out in the F45 /usr/share/containers/storage.conf

The rootless_storage_path may or may not been set.

Comment 7 Paul Holzinger 2026-09-28 16:26:09 UTC
If graphroot, runroot or rootless_storage_path are set to the "default" values they should just not be set at all and uncommented.

/etc/containers/storage.conf is now read for all users and thus rootless picks up the old rootful paths.

If you want to set rootful only options they need to go in a drop-in config file under /etc/containers/storage.rootful.conf.d/

see this blog for more info on the config changes https://blog.podman.io/2026/06/podman-6-configuration-file-changes/


In regards to rpm the behavior is supposed to keep /etc/containers/storage.conf only if it was modified and is not the default, if the file was the f44 package default it should be removed as the config moved to /use/share/containers

Comment 8 Paul Holzinger 2026-09-28 16:35:21 UTC
Oh I see, because at some earlier point storage.conf was already moved to /usr/share/containers[1] it got marked as ghost for /etc/containers/storage.conf and thus the replacement is not working.

The fact that it was declared a ghost at that time seems to be the problem[2], anyone who installed containers-common prior to that has the very old storage.conf still in /etc and never the /usr version was alrways ignored for them which is kinda bad. No idea what the best way to solve this is from an rpm standpoint

[1] https://src.fedoraproject.org/rpms/containers-common/blob/f44/f/containers-common.spec#_178
[2] https://src.fedoraproject.org/rpms/containers-common/c/069e792d?branch=rawhide

Comment 9 Nathanael Noblet 2026-09-28 18:46:39 UTC
Ok, but here's the big question from my perspective. Regardless of where this storage.conf file is/was. The issue for me is that every version of that file I see has the rootless_path commented out, but in F44 podman somehow knows to use the "$HOME/.local/share/containers/storage". To get it working I had to create a ~/.config/container/storage.conf with that configured.

Comment 10 Paul Holzinger 2026-09-29 11:53:50 UTC
Sorry I do not understand your last comment.

rootless_storage_path never had to be set AFAIK, the code has the default compiled in. Unless someone wants to change the storage paths or driver there should never be a need for ~/.config/container/storage.conf.

The difference is that on Podman 5 and earlier the rootless_storage_path option was only read from /etc/containers/storage.conf when running rootless podman, other options like graphroot/runroot were ignored and only parsed in the ~/.config/container/storage.conf file.
that was super confusing so with podman 6 all fields form the config are parsed byt all users leading to the fact that older config files which have rootful graphroot/runroot hard coded no longer work with rootless podman and need to be removed or moved to /etc/containers/storage.rootful.conf.d/.

Comment 11 Nathanael Noblet 2026-11-04 14:58:57 UTC
Hello,

  I updated my workstation yesterday. Podman works correctly out of the box. I would imagine that this workstation would have been setup similarily to my laptop that experienced this problem when I updated to F45 Beta. So it seems everything is great from my POV and this can probably be closed?

Comment 12 Bryan 2026-11-05 14:11:51 UTC
I just ran into this same issue after the F45 upgrade, I removed /etc/containers/storage.conf and ran `podman system migrate` for good measure and everything seems to be fixed.

Comment 13 Paul Holzinger 2026-11-06 18:08:16 UTC
Lets keep this bug open as it is a real update problem, I also received some more reports about this in other channels.

To summarize, podman 6 changed the config file parsing so that a /etc/containers/storage.conf is now also read as rootless. So any graphroot/runroot in them will be used by all users and root only paths then lead to permission denied errors.

The main default packaging does not ship that file, it has been moved to /usr/share/containers/storage.conf a long time ago (Nov 2021) in dist git commit 069e792db09ae729ba25c270bdfa13a68bcf499e (yes the commit description there is wrong it moved storage.conf not containers.conf like it claims)
https://src.fedoraproject.org/rpms/containers-common/c/069e792db09ae729ba25c270bdfa13a68bcf499e

However the /etc/containers/storage.conf file has been declared ghost so the old version just stayed around. This also meant that for all updates since then the actual distro default /usr/share/containers/storage.conf was ignored as the parser always preferred /etc/containers/storage.conf. This is true pre and post podman 6. So in that sense the actual bug root cause happened back then not now, now we just changed the config file content to no longer include the graphroot/runroot but because the /etc file is preferred it means only the user who installed containers-common before that date are getting broken now. All the testing I did was from podman 5.8 to 6 so I my test systems never observed this as they are much newer and thus I was unable to catch this.


So the question is how to fix this, obviously we cannot just remove /etc/containers/storage.conf unconditionally, users could have added custom configuration there which must be preserved for them. The only way I can think of is to collect the checksum (or checksums if there are multiple possible file versions) from the very old storage.conf file as it was shipped by the package back then and if it matches only then remove it as part of a rpm post install script?

Comment 14 Paul Holzinger 2026-11-09 11:49:57 UTC
*** Bug 2568641 has been marked as a duplicate of this bug. ***

Comment 16 Dick Marinus 2026-11-21 20:28:38 UTC
Like H.Janssen already mentioned it might be a good idea to rename /etc/containers/storage.conf to storage.conf.rpmsave


Note You need to log in before you can comment on or make changes to this bug.