-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
auto-update no PODMAN_SYSTEMD_UNIT label found #6793
Comments
@vrothberg PTAL |
Thanks for opening the issue! Indeed, we regressed on it. Absolute time to extend the systemd tests... |
And as it looks like we regressed with 2.0.1. 2.0.0 is working... |
Master is fine though. |
I now fail to reproduce again. Very curious. I used the following script to reproduce: ./bin/podman rm -af
CID=`./bin/podman create --label "io.containers.autoupdate=image" -d busybox:latest top`
./bin/podman generate systemd --new $CID > ~/.config/systemd/user/container-test.service
systemctl --user daemon-reload
systemctl --user stop container-test && systemctl --user start container-test && ./bin/podman inspect --format "{{.Config.Labels}}" -l
./bin/podman auto-update
systemctl --user stop container-test |
@edsantiago could you have a quick look and try to reproduce with 2.0.1? |
Opened #6810 to add a test that would catch that case. |
I can't find any way to reproduce; am trying root on f32. |
Run `podman auto-update` in the systemd system tests. Note that this is a first step to at least exercise parts of `auto-update` in the CI. The service won't get updated just yet as we need to set up a local registry, and push a new image. I do not have enough time at the moment to do that but consider this change already as an improvement. We are experiencing some issues in containers#6793 w.r.t. to auto-updates but couldn't track down the root cause yet. Signed-off-by: Valentin Rothberg <[email protected]>
@q-b can you try this reproducer? |
Giving up. For posterity, here is what I tried:
|
Thanks a lot for checking, @edsantiago! |
As myself:
I need to try as root next. |
|
Reproducible:
|
Ok, so it seems related to the If
I checked the labels with
|
Thanks a lot for checking! Using unit files that create new containers (as done with I'll open a PR to improve the docs and make this requirement explicit. |
Clarify in the help message and the man page that auto updates only work with systemd units that are similar to the ones from `generate systemd --new`. Units that merely start/stop a container do not work as they will use the same image. Fixes: containers#6793 Signed-off-by: Valentin Rothberg <[email protected]>
Opened #6858 |
Clarify in the help message and the man page that auto updates only work with systemd units that are similar to the ones from `generate systemd --new`. Units that merely start/stop a container do not work as they will use the same image. Fixes: containers#6793 Signed-off-by: Valentin Rothberg <[email protected]>
Clarify in the help message and the man page that auto updates only work with systemd units that are similar to the ones from `generate systemd --new`. Units that merely start/stop a container do not work as they will use the same image. Fixes: containers#6793 Signed-off-by: Valentin Rothberg <[email protected]>
Hi,
While playing with podman last version on CentOS 8, I was unable to use the auto-update feature.
https://github.com/containers/libpod/blob/0968f25988624699f2db559f0a984cf84c8a284f/pkg/autoupdate/autoupdate.go#L184
The service file looks good (I checked it on disk and daemon-reloaded tu be sure):
Let me know if you need more input to troubleshoot this issue!
The text was updated successfully, but these errors were encountered: