Closed raballew closed 11 months ago
I did some further research. It seems to be working with Podman v4.4.2 but breaks with v4.7.2. I did not test the releases in-between.
Also the directory structure I am using looks like this:
/usr/share/containers/systemd/ -> /var/quadlets -> /var/quadlet_<digest>
containing one or multiple symlinks to /var/apps/<digest>/*.container
files
sudo ls -lisa /usr/share/containers/systemd/
total 12
1835009 4 drwxr-xr-x. 2 root root 4096 Dec 11 21:28 .
2 4 drwxr-xr-x. 26 root root 4096 Dec 11 21:36 ..
1835010 4 lrwxrwxrwx. 1 root root 164 Dec 11 21:28 fedora-minimal.container -> /var/apps/71c21f8e19e238078518b08d85cf539bc36e7cbcadfd933bf639e8b2dfb3bfa6_24f7bf533a98ef846027224f451eb1c4e90ffcde9e4edc958c3eb270cc8d8f1b/fedora-minimal.container
ls -lisa /usr/share/containers/systemd
262511 0 lrwxrwxrwx. 1 root root 13 Dec 11 21:28 /usr/share/containers/systemd -> /var/quadlets
sudo ls -lisa /var/quadlet_31cf070f6cc223bdbda05dce2cfd9c8f21fa7d9958a17461ba74b2af634ab43c/
total 12
1835009 4 drwxr-xr-x. 2 root root 4096 Dec 11 21:28 .
2 4 drwxr-xr-x. 26 root root 4096 Dec 11 21:36 ..
1835010 4 lrwxrwxrwx. 1 root root 164 Dec 11 21:28 fedora-minimal.container -> /var/apps/71c21f8e19e238078518b08d85cf539bc36e7cbcadfd933bf639e8b2dfb3bfa6_24f7bf533a98ef846027224f451eb1c4e90ffcde9e4edc958c3eb270cc8d8f1b/fedora-minimal.container
sudo ls -lisa /var/apps/71c21f8e19e238078518b08d85cf539bc36e7cbcadfd933bf639e8b2dfb3bfa6_24f7bf533a98ef846027224f451eb1c4e90ffcde9e4edc958c3eb270cc8d8f1b/fedora-minimal.container
1703944 4 -rw-r--r--. 1 root root 488 Dec 11 21:27 /var/apps/71c21f8e19e238078518b08d85cf539bc36e7cbcadfd933bf639e8b2dfb3bfa6_24f7bf533a98ef846027224f451eb1c4e90ffcde9e4edc958c3eb270cc8d8f1b/fedora-minimal.container
@raballew I can confirm that I was able to reproduce this issue in v4.7.2 and that it was fixed as part of #20688 and the fix already existed in v4.8.X
Issue Description
This issue is related to https://github.com/containers/podman/issues/20504 or more precisely https://github.com/containers/podman/issues/20504#issuecomment-1808921064
I was using the Podman unit search path at
/usr/share/containers/systemd/
and linked it to a directory called/var/quadlets
which itself contained various symlinks to quadlets as shown in https://github.com/raballew/app-lifecycle/blob/66b182de56948a536e5d80707108a8170debe14b/demo.sh#L116I did not run the script for some time but after updating to a newer version of Podman the generation of the unit files fails silently.
QUADLET_UNIT_DIRS
is not working for me as I am targeting production usage.Steps to reproduce the issue
Steps to reproduce the issue
Describe the results you received
Unit files are not generated from Quadlets.
Describe the results you expected
Quadlet finds the unit files.
podman info output
Podman in a container
No
Privileged Or Rootless
None
Upstream Latest Release
No
Additional environment details
Additional environment details
Additional information
No response