-
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
systemd unit with --new fails to control or update the container #7285
Comments
Thanks for opening the issue! Let's figure out why the generated unit fails. Auto-update won't work when the container wasn't started by systemd. Could you regenerate the unit with |
Here is the output after it fails with the
I noticed the part
I'm wondering if having the arguments in caps are throwing it off. |
Ok. I tried redeploying the container with all lower case arguments using the following command:
It failed and when I went digging through the journals I discovered this error over and over:
It appears that it is reading the |
After making it all lowercase and removing the argument |
Sorry for not coming back earlier. There's an issue when storing the arguments. I'll look into a fix now. |
Opened #7350 to address the issue. |
Make sure that arguments with whitespace are properly quoted so they are interpreted as one (and not multiple ones) by systemd. Now `-e tz="america/new york"` will be generated as `-e "tz=america/new york"`. The quotes are moving but the argument is still correct. Fixes: containers#7285 Signed-off-by: Valentin Rothberg <[email protected]>
Make sure that arguments with whitespace are properly quoted so they are interpreted as one (and not multiple ones) by systemd. Now `-e tz="america/new york"` will be generated as `-e "tz=america/new york"`. The quotes are moving but the argument is still correct. Fixes: containers#7285 Signed-off-by: Valentin Rothberg <[email protected]>
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Steps to reproduce the issue:
Describe the results you received:
A systemd unit that does not start / update the container
Describe the results you expected:
I'm expecting the systemd unit to start the container and automatically update it to the new image.
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
):Additional environment details (AWS, VirtualBox, physical, etc.):
Raspberry Pi 3 running Fedora IoT
The text was updated successfully, but these errors were encountered: