-
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
better error message required in case error in CNI plugin. #2909
Comments
It may not be clean to show error messages of CNI config as, all CNI configs are loaded during If we have some additional commands like This may be also helpful, to understand end user (not familiar with CNI), to see options of network available on system without looking at CNI config path. |
Hm. The CNI plugins load and try to parse the network, fail, and this is only considered a warning? Part of me thinks we should upgrade that to an error, in which case we fail much earlier (when first trying to load the runtime) and more descriptively (an explicit error about parsing a config) |
The issue with making the parse error as Error and stop container creation would be, failing e.g. with above config file, simply |
I don't know if that's a bad thing... It's an invalid configuration file and we can't know what we won't be using it. |
I don't have very strong opinion on the error. I can create PR for this. Will listing available network will also be helpful? e.g. |
If we're going to start adding |
I have created a PR cri-o/ocicni#30 to return error instead of logging warning during |
@kunalkushwaha Are you still interested in this? |
@rhatdan Sorry for no progress.. Will followup again with ocicni maintainers. I still think, CNI library behaviour should be same across implementation, so this will help end users. |
I just got bit by this. I would prefer that
versus https://docs.docker.com/engine/reference/commandline/network_ls/ |
Will be in 1.5.2 |
Just hit this issue with FCoS IoT and I was testing to make sure that systemd could help gracefully handle a reboot cycle, but my |
This issue had no activity for 30 days. In the absence of activity or the "do-not-close" label, the issue will be automatically closed within 7 days. |
Any updates on this issue? |
@mheon Is this fixed in 1.5.2? |
No. That's |
if one of the cni conf files is badly formatted or cannot be loaded, we now display the error as well as the filename. Fixes: containers#2909 Signed-off-by: Brent Baude <[email protected]>
I believe #5008 will simplify learning that you have a bad cni conf file. For example, i purposely made a bad conf file named
|
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
In case of any error in CNI config file, the error message while creating container with network of CNI plugin simply show error
CNI network "<network-name>" not found
. This error message is confusing for end user.A better error message will be helpful to understand where actually error is.
Raised by podman end user:
Steps to reproduce the issue:
myvlan
network.podman create
with--log-level-debug
option.Describe the results you received:
Describe the results you expected:
A better error message suggesting where error exist.
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:Additional environment details (AWS, VirtualBox, physical, etc.):
The text was updated successfully, but these errors were encountered: