--sdnotify=healthy
leads to a panic when a rootless container is started
#22651
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Issue Description
Using
--sdnotify=healthy
to notify systemd when a container is healthy leads to a panic.Steps to reproduce the issue
Run a rootless container as a systemd service with
-sdnotify=healthy
.Describe the results you received
Systemd is not notified and the service start-up times out.
Relevant entries from the journal:
Note: the "Notify sent successfully" in the log refers to the message where the MAINPID was sent.
There should be another another message with the same text when the "READY" message is sent, which does not happen due to the panic.
Describe the results you expected
The goroutine should not panic, wait for the container to be healty and notify systemd.
podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
No response
Additional information
The commit that added this feature is 0cfd127
This is the relevant part (2nd frame of the backtrace above):
The text was updated successfully, but these errors were encountered: