Pod using the bond CNI plugin experiences an error: "multus-cni-network" failed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Medium
|
Steven Webster |
Bug Description
Brief Description
-----------------
Using the bond cni plugin as a network attachment definition in a pod causes the pod to fail to launch. A describe on the pod will reveal:
Pod describe error is showing “failed to find plugin "bond" in path [/opt/cni/bin /opt/cni/bin]”
Somewhat recently the plugins were moved to /opt/bin/cni/ from /usr/libexec/cni/ , but the bond plugin was missed.
Severity
--------
Major: System/Feature is usable but degraded
Steps to Reproduce
------------------
The following pod/network attachment definition specs can be used to show the problem:
apiVersion: crd.projectcali
kind: IPPool
metadata:
name: mypool
spec:
cidr: "10.10.20.0/24"
ipipMode: "Never"
natOutgoing: True
---
apiVersion: "k8s.cni.
kind: NetworkAttachme
metadata:
name: bond0
spec:
config: '{
"cniVersion": "0.3.1",
"name": "bond0",
"type": "bond",
"ifname": "net1",
"mode": "active-backup",
"miimon": "100",
"failOverMac": 1,
"links": [
{
"name": "eth1000"
},
{
"name": "eth1001"
}
],
"ipam": {
"type": "calico-ipam",
"
"ipv4_pools": ["mypool"]
},
"kubernetes": {
"kubeconfig": "/etc/cni/
},
"datastore_
}'
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: bonding
namespace: default
labels:
tier: node
spec:
selector:
matchLabels:
tier: node
template:
metadata:
labels:
tier: node
app: bonding
annotations:
{ "name": "bond0" }
]'
spec:
containers:
- name: bonding1
image: centos/tools
command: [ "/bin/bash", "-c", "--" ]
args: [ "while true; do sleep 300000; done;" ]
add:
- NET_ADMIN
Expected Behavior
------------------
One should be able to use the bond plugin in a network attachment definition
Actual Behavior
----------------
The bond plugin cannot be found and the pod will fail to launch.
Reproducibility
---------------
100%
System Configuration
-------
N/A
Branch/Pull Time/Commit
-------
The problem would have been seen since commit:
https:/
Last Pass
---------
Anytime since the bond plugin was introduced up to the following commit:
https:/
Timestamp/Logs
--------------
N/A
Test Activity
-------------
Feature Testing
Workaround
----------
Manually move /usr/libexec/
Changed in starlingx: | |
importance: | Undecided → Medium |
tags: | added: stx.7.0 stx.debian |
Fix proposed to branch: master /review. opendev. org/c/starlingx /integ/ +/843965
Review: https:/