-
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
.container using EnvironmentFile no longer starts in 4.5.1 #19125
Comments
Thanks for reaching out, @acrispino! @ygalblum do you have time to look into this? |
I think that is intentional: #17930 |
@ygalblum reping I wonder if we have to keep a list of systemd specifiers that expand to and absolute path and the one that are just a name in which case we need to keep the relative path? |
Sorry for the delay in my response. @Luap99 I think you have a point there. In the current @acrispino for you specific case, since whatever is decided will still take time to implement and publish, you can force relative path resolution by changing:
to
|
A friendly reminder that this issue had no activity for 30 days. |
@ygalblum @acrispino Still worth pursuing? |
@acrispino is my suggestion of forcing the relative path by prefixing it with |
Yes, that's how I've worked around it and my services are running fine. |
So @ygalblum is this something you like to address or should we just close wontfix given it is like this now for almost a year. |
@Luap99 I think documenting it is enough. |
Issue Description
After upgrading to 4.5.1-4 on Centos Stream 9, a .container file that was working with 4.4.1-9 no longer starts. It seems to have to do with how
EnvironmentFile
is parsed to create the serviceExecStart
I've worked around it but is the change in behavior a bug? Is this related to #17906?
Steps to reproduce the issue
Describe the results you received
Here's the output of
/usr/libexec/podman/quadlet -dryrun -user
. I've left out the lines that are unchanged between the two versions(podman-2:4.4.1-9.el9.aarch64):
(podman-2:4.5.1-4.el9.aarch64):
The
ExecStart
line no longer has the .container file's directory prepended for--env-file
. If I change the container's configuration toEnvironmentFile=./%n/env
then the generated--env-file
is the same as in 4.4.1 and the service can start again.Describe the results you expected
For the container
EnvironmentFile=%n/env
to be parsed as a relative pathpodman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
AWS AMI
ami-02ddfebde24219626
Additional information
No response
The text was updated successfully, but these errors were encountered: