CNI returns wrong interface name
Bug #1835038 reported by
Michal Dulko
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kuryr-kubernetes |
Fix Released
|
High
|
Alexey Perevalov |
Bug Description
As "name" field on CNI result we write down this from the VIF ovo: "vif_name"
"interfaces describes specific network interfaces the plugin created. If the CNI_IFNAME variable exists the plugin must use that name for the sandbox/hypervisor interface or return an error if it cannot."
Changed in kuryr-kubernetes: | |
assignee: | nobody → Alexey Perevalov (alexeyperevalov) |
status: | Confirmed → In Progress |
To post a comment you must log in.
Reviewed: https:/ /review. opendev. org/670141 /git.openstack. org/cgit/ openstack/ kuryr-kubernete s/commit/ ?id=ca222d4f5b9 ed38122ceec32d2 e98cf9abc3911f
Committed: https:/
Submitter: Zuul
Branch: master
commit ca222d4f5b9ed38 122ceec32d2e98c f9abc3911f
Author: Alexey Perevalov <email address hidden>
Date: Wed Jul 10 18:05:44 2019 +0300
Use CNI_IFNAME environment variable
According to CNI spec kubelet expects CNI_IFNAME (the name
inside container) if sandbox is not empty.
Both python and golang implementation was done unconditionally,
IOW we can add both empty sandbox and interface name on the
host and nonempty sandbox and container's iface name.
Closes-Bug: #1835038 79ee81db361cd07 2609a0a3169
Change-Id: I3f21bc0c0790bb
Signed-off-by: Alexey Perevalov <email address hidden>