-
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
runlabel behavior is inconsistent with documentation/atomic #9405
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.
stale-issue
Comments
openshift-ci-robot
added
the
kind/bug
Categorizes issue or PR as related to a bug.
label
Feb 16, 2021
@baude PTAL |
A friendly reminder that this issue had no activity for 30 days. |
rhatdan
added a commit
to rhatdan/podman
that referenced
this issue
Apr 12, 2021
Fixes: containers#9405 Add system runlabel tests. Signed-off-by: Daniel J Walsh <[email protected]>
This appears to fix the $NAME and $IMAGE bugs but not update the documentation regarding OPT1, OPT2, etc. Perhaps the issue should be reopened or something. |
@computator Do you want to open a PR to fix the OPT1, OPT2, OPT3 issue? |
mheon
pushed a commit
to mheon/libpod
that referenced
this issue
Apr 16, 2021
Fixes: containers#9405 Add system runlabel tests. Signed-off-by: Daniel J Walsh <[email protected]>
jmguzik
pushed a commit
to jmguzik/podman
that referenced
this issue
Apr 26, 2021
Fixes: containers#9405 Add system runlabel tests. Signed-off-by: Daniel J Walsh <[email protected]>
github-actions
bot
added
the
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
label
Sep 22, 2023
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
stale-issue
/kind bug
Description
The
runlabel
command does not behave in accordance with its documentation. Specifically, the command does not set reserved environment variables (e.g.,IMAGE
,NAME
) in therunlabel
context as documentation notes, and the mechanism for specifying custom environment variables (e.g.,OPT1
,OPT2
) is not covered in existing documentation.Steps to reproduce the issue:
INSTALL
label defined, following conventions outlined in the example docs.runlabel
.Describe the results you received:
The error message indicates that that environment variables were not expanded properly, resulting in a failure of the underlying
INSTALL
command.Describe the results you expected:
I expected the underlying
runlabel
command to succeed. Generally, I would expect Podman's documentation to be consistent with its behavior. Specifically, I would expect the implementation of labels to be aligned with the analogous feature that was built into Atomic (as the Podman documentation seems to suggest).Of note, I looked at the source and was able to see that method by which label strings are converted to fully qualified commands is rather assumptive. Specifically, we seem to rely on specific formatting of env vars for expansion (e.g.,
$NAME
, sans curly braces) or simply the env var key itself (e.g.,NAME
). Additionally, user-provided options are pulled from therunlabel
CLI opts, which isn't really documented anywhere. All that said, I was able to get the label command working with a user-provided option by updating theDockerfile
label to:and executing
runlabel
as follows:Additional information you deem important (e.g. issue happens only occasionally):
N/A
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?
No
Additional environment details (AWS, VirtualBox, physical, etc.):
CentOS v8.3 on EC2
The text was updated successfully, but these errors were encountered: