-
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
podman is overwriting user's CNI_ARGS to the CNI plugin #4398
Comments
IPAM static is also not working with CNI_ARGS. Configure a minimal static network
Try changing the IP address: The addresses array is supposed to be optional. However if it is omitted and an IP address is attempted with CNI_ARGS
|
The user's CNI_ARGS seems to be replaced by podman with
|
The following hack restores the "correct" behaviour:
Then
This works (!). |
@baude @mheon Can we extend the ARGS rather then truncating them? |
This is all in OCICNI - we don't touch any of it in Libpod land |
@dcbw FYI |
@rhatdan happy to PR - where is the "upstream" is it |
@space88man The upstream is github.com/cri-o/ocicni |
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. |
I think this is still an issue. |
Still an issue. |
Is this our issue or CNI? |
CNI -> cri-o/ocicni#65 |
@rhatdan cri-o/ocicni#70 PTAL, does this work for podman? |
we w ould just need to know to vendor in when it is merged |
This Issue is like the never ending story... |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
podman seems to be overwriting the user supplied
CNI_ARGS
so some settings are not transmitted to the CNI plugin.When dumping the environment of a plugin I see
instead of the value provided.
When using a user network (pre existing bridge) , the CNI_ARGS environment variable doesn't assign a static IP address. This affects both host-local and static plugins.
Steps to reproduce the issue:
Describe the results you received:
The IP address is randomly assigned by host-local IPAM. CNI_ARGS is not respected by plugin.
Describe the results you expected:
Static IP address assignment from CNI_ARGS environment variable.
Additional information you deem important (e.g. issue happens only occasionally):
Try with and without network prefix; lowercase and all caps.
Output of
podman version
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Additional environment details (AWS, VirtualBox, physical, etc.):
The text was updated successfully, but these errors were encountered: