-
Notifications
You must be signed in to change notification settings - Fork 26
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
Unable to create Bond Interface #5
Comments
Hi @svallala could you capture the dmesg on host for i40e, iavf/i40evf module. Also, what version of the drivers you are using for PF and VFs? |
@svallala Can you add kernel and OS version ? I haven't been able to replicate this error |
[root@pocf02 ~]# uname -a Multus - Version 3.3 [root@pocf02 ~]# modinfo ixgbevf [ 3.420795] ixgbe: Intel(R) 10 Gigabit PCI Express Network Driver - version 5.1.0-k-rh7.6 |
@svallala did you figure out this issue? |
Closed as stale |
I am not able to create bond interface, when I manually specify the MAC addresses for both the SRIOV nics. If I use the same MAC address for both the NICs, then creation goes through fine.
Multus Error Logs, I will capture relevant snippets from the logs, please let me know if you need the entire logs.
2020-02-05T13:18:18-08:00 [debug] delegateAdd: set MAC address "52:45:00:21:00:90" to "net1"
2020-02-05T13:18:18-08:00 [verbose] Add: default:test-pod:sriov-network:net1 {"cniVersion":"0.4.0","interfaces":[{"name":"net1","sandbox":"/proc/21415/ns/net"}],"dns":{}}
2020-02-05T13:18:18-08:00 [debug] LoadNetworkStatus: Interfaces:[{Name:net1 Mac: Sandbox:/proc/21415/ns/net}], DNS:{Nameservers:[] Domain: Search:[] Options:[]}, sriov-network, false
2020-02-05T13:18:18-08:00 [debug] getIfname: &{{0.3.1 sriov-network sriov map[] {} {[] [] []} map[] } { false []} net2 52:45:00:21:00:91 false false [123 34 99 110 105 86 101 114 115 105 111 110 34 58 34 48 46 51 46 49 34 44 34 100 101 118 105 99 101 73 68 34 58 34 48 48 48 48 58 48 49 58 49 48 46 51 34 44 34 110 97 109 101 34 58 34 115 114 105 111 118 45 110 101 116 119 111 114 107 34 44 34 112 99 105 66 117 115 73 68 34 58 34 48 48 48 48 58 48 49 58 49 48 46 51 34 44 34 116 121 112 101 34 58 34 115 114 105 111 118 34 125]}, eth0, 2
2020-02-05T13:18:18-08:00 [debug] LoadCNIRuntimeConf: &{503e0271d83a0ed307cd1d364324f0cf2906b3208b4a2922557e4101363f49a2 /proc/21415/ns/net eth0 IgnoreUnknown=1;K8S_POD_NAMESPACE=default;K8S_POD_NAME=test-pod;K8S_POD_INFRA_CONTAINER_ID=503e0271d83a0ed307cd1d364324f0cf2906b3208b4a2922557e4101363f49a2 /opt/cni/bin [123 34 98 105 110 68 105 114 34 58 34 47 111 112 116 47 99 110 105 47 98 105 110 34 44 34 99 110 105 86 101 114 115 105 111 110 34 58 34 48 46 51 46 49 34 44 34 99 111 110 102 68 105 114 34 58 34 47 101 116 99 47 99 110 105 47 110 101 116 46 100 34 44 34 100 101 108 101 103 97 116 101 115 34 58 91 123 34 99 110 105 86 101 114 115 105 111 110 34 58 34 48 46 51 46 49 34 44 34 110 97 109 101 34 58 34 99 97 108 105 99 111 34 44 34 112 108 117 103 105 110 115 34 58 91 123 34 100 97 116 97 115 116 111 114 101 95 116 121 112 101 34 58 34 107 117 98 101 114 110 101 116 101 115 34 44 34 105 112 97 109 34 58 123 34 116 121 112 101 34 58 34 114 111 98 105 110 45 105 112 97 109 34 125 44 34 107 117 98 101 114 110 101 116 101 115 34 58 123 34 107 117 98 101 99 111 110 102 105 103 34 58 34 47 101 116 99 47 99 110 105 47 110 101 116 46 100 47 99 97 108 105 99 111 45 107 117 98 101 99 111 110 102 105 103 34 125 44 34 108 111 103 95 108 101 118 101 108 34 58 34 105 110 102 111 34 44 34 109 116 117 34 58 49 52 56 48 44 34 110 111 100 101 110 97 109 101 34 58 34 99 101 110 116 111 115 45 54 48 45 50 49 56 34 44 34 112 111 108 105 99 121 34 58 123 34 116 121 112 101 34 58 34 107 56 115 34 125 44 34 116 121 112 101 34 58 34 99 97 108 105 99 111 34 125 44 123 34 99 97 112 97 98 105 108 105 116 105 101 115 34 58 123 34 112 111 114 116 77 97 112 112 105 110 103 115 34 58 116 114 117 101 125 44 34 115 110 97 116 34 58 116 114 117 101 44 34 116 121 112 101 34 58 34 112 111 114 116 109 97 112 34 125 93 125 93 44 34 107 117 98 101 99 111 110 102 105 103 34 58 34 47 101 116 99 47 99 110 105 47 110 101 116 46 100 47 109 117 108 116 117 115 46 100 47 109 117 108 116 117 115 46 107 117 98 101 99 111 110 102 105 103 34 44 34 108 111 103 70 105 108 101 34 58 34 47 118 97 114 47 108 111 103 47 109 117 108 116 117 115 46 108 111 103 34 44 34 108 111 103 76 101 118 101 108 34 58 34 100 101 98 117 103 34 44 34 109 117 108 116 117 115 78 97 109 101 115 112 97 99 101 34 58 34 107 117 98 101 45 115 121 115 116 101 109 34 44 34 110 97 109 101 34 58 34 109 117 108 116 117 115 45 99 110 105 45 110 101 116 119 111 114 107 34 44 34 114 101 97 100 105 110 101 115 115 105 110 100 105 99 97 116 111 114 102 105 108 101 34 58 34 47 104 111 109 101 47 114 111 98 105 110 100 115 47 101 116 99 47 114 111 98 105 110 47 98 111 111 116 115 116 114 97 112 95 100 111 110 101 34 44 34 116 121 112 101 34 58 34 109 117 108 116 117 115 34 125]}, &{{true} test-pod default 503e0271d83a0ed307cd1d364324f0cf2906b3208b4a2922557e4101363f49a2}, net2,
2020-02-05T13:18:18-08:00 [debug] delegateAdd: , net2, &{{0.3.1 sriov-network sriov map[] {} {[] [] []} map[] } { false []} net2 52:45:00:21:00:91 false false [123 34 99 110 105 86 101 114 115 105 111 110 34 58 34 48 46 51 46 49 34 44 34 100 101 118 105 99 101 73 68 34 58 34 48 48 48 48 58 48 49 58 49 48 46 51 34 44 34 110 97 109 101 34 58 34 115 114 105 111 118 45 110 101 116 119 111 114 107 34 44 34 112 99 105 66 117 115 73 68 34 58 34 48 48 48 48 58 48 49 58 49 48 46 51 34 44 34 116 121 112 101 34 58 34 115 114 105 111 118 34 125]}, &{503e0271d83a0ed307cd1d364324f0cf2906b3208b4a2922557e4101363f49a2 /proc/21415/ns/net net2 [[IgnoreUnknown 1] [K8S_POD_NAMESPACE default] [K8S_POD_NAME test-pod] [K8S_POD_INFRA_CONTAINER_ID 503e0271d83a0ed307cd1d364324f0cf2906b3208b4a2922557e4101363f49a2]] map[] }, /opt/cni/bin
2020-02-05T13:18:18-08:00 [debug] validateIfName: /proc/21415/ns/net, net2
2020-02-05T13:18:18-08:00 [debug] delegateAdd: set MAC address "52:45:00:21:00:91" to "net2"
2020-02-05T13:18:18-08:00 [verbose] Add: default:test-pod:sriov-network:net2 {"cniVersion":"0.4.0","interfaces":[{"name":"net2","sandbox":"/proc/21415/ns/net"}],"dns":{}}
2020-02-05T13:18:18-08:00 [debug] LoadNetworkStatus: Interfaces:[{Name:net2 Mac: Sandbox:/proc/21415/ns/net}], DNS:{Nameservers:[] Domain: Search:[] Options:[]}, sriov-network, false
2020-02-05T13:18:18-08:00 [debug] delegateAdd: , bond10, &{{0.3.1 bond-net1 bond map[] {host-local} {[] [] []} map[] } { false []} bond10 false false [123 32 34 116 121 112 101 34 58 32 34 98 111 110 100 34 44 32 34 99 110 105 86 101 114 115 105 111 110 34 58 32 34 48 46 51 46 49 34 44 32 34 110 97 109 101 34 58 32 34 98 111 110 100 45 110 101 116 49 34 44 32 34 109 111 100 101 34 58 32 34 97 99 116 105 118 101 45 98 97 99 107 117 112 34 44 32 34 108 105 110 107 115 73 110 67 111 110 116 97 105 110 101 114 34 58 32 116 114 117 101 44 32 34 109 105 105 109 111 110 34 58 32 34 49 48 48 34 44 32 34 108 105 110 107 115 34 58 32 91 32 123 34 110 97 109 101 34 58 32 34 110 101 116 49 34 125 44 32 123 34 110 97 109 101 34 58 32 34 110 101 116 50 34 125 32 93 44 32 34 105 112 97 109 34 58 32 123 32 34 116 121 112 101 34 58 32 34 104 111 115 116 45 108 111 99 97 108 34 44 32 34 115 117 98 110 101 116 34 58 32 34 49 48 46 53 54 46 50 49 55 46 48 47 50 52 34 44 32 34 114 111 117 116 101 115 34 58 32 91 123 32 34 100 115 116 34 58 32 34 48 46 48 46 48 46 48 47 48 34 32 125 93 44 32 34 103 97 116 101 119 97 121 34 58 32 34 49 48 46 53 54 46 50 49 55 46 49 34 32 125 32 125]}, &{503e0271d83a0ed307cd1d364324f0cf2906b3208b4a2922557e4101363f49a2 /proc/21415/ns/net bond10 [[IgnoreUnknown 1] [K8S_POD_NAMESPACE default] [K8S_POD_NAME test-pod] [K8S_POD_INFRA_CONTAINER_ID 503e0271d83a0ed307cd1d364324f0cf2906b3208b4a2922557e4101363f49a2]] map[] }, /opt/cni/bin
2020-02-05T13:18:18-08:00 [debug] validateIfName: /proc/21415/ns/net, bond10
2020-02-05T13:18:18-08:00 [error] delegateAdd: error invoking DelegateAdd - "bond": Failed to attached links to bond, error: Failed to set link: net2 MASTER, master index used: 6, error: operation not permitted
2020-02-05T13:18:18-08:00 [debug] delPlugins: , eth0, [0xc0002a7600 0xc000570000 0xc000134000 0xc0001349a0], 3, &{503e0271d83a0ed307cd1d364324f0cf2906b3208b4a2922557e4101363f49a2 /proc/21415/ns/net bond10 [[IgnoreUnknown 1] [K8S_POD_NAMESPACE default] [K8S_POD_NAME test-pod] [K8S_POD_INFRA_CONTAINER_ID 503e0271d83a0ed307cd1d364324f0cf2906b3208b4a2922557e4101363f49a2]] map[] }, /opt/cni/bin
2020-02-05T13:18:18-08:00 [debug] getIfname: &{{0.3.1 bond-net1 bond map[] {host-local} {[] [] []} map[] } { false []} bond10 false false [123 32 34 116 121 112 101 34 58 32 34 98 111 110 100 34 44 32 34 99 110 105 86 101 114 115 105 111 110 34 58 32 34 48 46 51 46 49 34 44 32 34 110 97 109 101 34 58 32 34 98 111 110 100 45 110 101 116 49 34 44 32 34 109 111 100 101 34 58 32 34 97 99 116 105 118 101 45 98 97 99 107 117 112 34 44 32 34 108 105 110 107 115 73 110 67 111 110 116 97 105 110 101 114 34 58 32 116 114 117 101 44 32 34 109 105 105 109 111 110 34 58 32 34 49 48 48 34 44 32 34 108 105 110 107 115 34 58 32 91 32 123 34 110 97 109 101 34 58 32 34 110 101 116 49 34 125 44 32 123 34 110 97 109 101 34 58 32 34 110 101 116 50 34 125 32 93 44 32 34 105 112 97 109 34 58 32 123 32 34 116 121 112 101 34 58 32 34 104 111 115 116 45 108 111 99 97 108 34 44 32 34 115 117 98 110 101 116 34 58 32 34 49 48 46 53 54 46 50 49 55 46 48 47 50 52 34 44 32 34 114 111 117 116 101 115 34 58 32 91 123 32 34 100 115 116 34 58 32 34 48 46 48 46 48 46 48 47 48 34 32 125 93 44 32 34 103 97 116 101 119 97 121 34 58 32 34 49 48 46 53 54 46 50 49 55 46 49 34 32 125 32 125]}, eth0, 3
YAML files
apiVersion: "k8s.cni.cncf.io/v1"
kind: NetworkAttachmentDefinition
metadata:
name: bond-sriov-net1
namespace: kube-system
annotations:
k8s.v1.cni.cncf.io/resourceName: intel.com/sriov0
spec:
config: '{
"type": "sriov",
"cniVersion": "0.3.1",
"name": "sriov-network"
}'
apiVersion: "k8s.cni.cncf.io/v1"
kind: NetworkAttachmentDefinition
metadata:
name: bond-net1
namespace: kube-system
spec:
config: '{
"type": "bond",
"cniVersion": "0.3.1",
"name": "bond-net1",
"mode": "active-backup",
"linksInContainer": true,
"miimon": "100",
"links": [
{"name": "net1"},
{"name": "net2"}
],
"ipam": {
"type": "host-local",
"subnet": "10.56.217.0/24",
"routes": [{
"dst": "0.0.0.0/0"
}],
"gateway": "10.56.217.1"
}
}'
apiVersion: v1
kind: Pod
metadata:
name: test-pod
annotations:
k8s.v1.cni.cncf.io/networks: '[
{"name": "bond-sriov-net1",
"mac": "52:45:00:21:00:90",
"interface": "net1",
"namespace": "kube-system"
},
{"name": "bond-sriov-net1",
"mac": "52:45:00:21:00:91",
"interface": "net2",
"namespace": "kube-system"
},
{"name": "bond-net1",
"interface": "bond10",
"namespace": "kube-system"
}]'
spec: # specification of the pod's contents
restartPolicy: Never
containers:
image: alpine:latest
command:
imagePullPolicy: IfNotPresent
resources:
requests:
intel.com/sriov0: '2'
limits:
intel.com/sriov0: '2'
The text was updated successfully, but these errors were encountered: