-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[v3.1-dev] [rootless] binaries in same path make podman throw a warning #9389
[v3.1-dev] [rootless] binaries in same path make podman throw a warning #9389
Comments
I tried this exact test and could not get the error you are seeing to happen. I even did I have no idea what is causing your issue. The code looks correct as well. |
Try this:
This gives me (with my paths):
But podman keeps on running. The warnings really appear multiple times. |
I'm just guessing here: With Podman v3.0.1, I'm seeing a similar warning.
Note, my system has a
Assuming the warning comes from
That is within the function
Looking for usage of the function
The only use of that function seems to be
Just before using it, the
In other words, the warning
does not make sense because ~/.config/containers/containers.conf is not involved here. (The checked paths just before the warning are hard coded paths from the source code and not from the configuration file containers.conf)- |
Interested in opening a PR to fix? |
Don't we need a fix to open a PR? :-) |
I'm planning to learn how to write Golang but I haven't gotten to it yet. |
A friendly reminder that this issue had no activity for 30 days. |
@tobwen is this still an issue? |
Let me recompile it in some hours. I'll report then. |
I made a demo of the issue in a GitHub Actions workflow There the bug is still reproducible I'm not exactly sure what part of the setup is needed. (It might be possible to simplify the demo) |
Rephrase the log message and change the log level from "warning" to "trace". Fixes containers#9389 Signed-off-by: Erik Sjölund <erik.sjolund@gmail.com>
Rephrase the log message and change the log level from "warning" to "trace". Fixes: containers/podman#9389 Signed-off-by: Erik Sjölund <erik.sjolund@gmail.com>
Rephrase the log message and change the log level from "warning" to "debug". Fixes: containers/podman#9389 Signed-off-by: Erik Sjölund <erik.sjolund@gmail.com>
Rephrase the log message and change the log level from "warning" to "debug". Fixes: containers/podman#9389 Signed-off-by: Erik Sjölund <erik.sjolund@gmail.com>
* Add fix_podman_issue_9389.bash The Podman issue 9389 has already been fixed in the Podman master branch (See containers/podman#9389) Remove this workaround later Signed-off-by: Erik Sjölund <erik.sjolund@gmail.com>
/kind bug
Description
When podman and crun are in path, podman throws a warning. Although this warning is wrong since the runtime has been defined in containers.conf
Steps to reproduce the issue:
$ PATH="$PATH:/home/tobwen/podman/usr/local/bin" /home/tobwen/podman/usr/local/bin/podman info
$ /home/tobwen/podman/usr/local/bin/podman info
Describe the results you received:
Only first step throws a warning:
Describe the results you expected:
I expect both commands to output
Additional information you deem important (e.g. issue happens only occasionally):
Files in /home/tobwen/podman/usr/local/bin/:
/home/tobwen/.config/containers/containers.conf
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?
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
Debian 10, AMD64, physical.
The text was updated successfully, but these errors were encountered: