-
Bug
-
Resolution: Done
-
Critical
-
4.14
-
Critical
-
No
-
Proposed
-
False
-
Description of problem:
With new https://docs.rs/nmstate/latest/nmstate/struct.OvnConfiguration.html, Pod creation stuck on: failed to configure pod interface: timed out waiting for OVS port binding (ovn-installed) for 0a:58:0a:81:02:28 [10.129.2.40/23]
Version-Release number of selected component (if applicable):
4.14.0-0.nightly-2023-09-07-211548
How reproducible:
Always
Steps to Reproduce:
1. Create a OSP cluster 2. Install NMState CR 3. Create a new-project:test 4. Create a NNCP to mapping network 5. Create net-attach-def 6. Create a pod abosrbing the net-attach-def
Actual results:
Warning FailedCreatePodSandBox 37m kubelet Failed to create pod sandbox: rpc error: code = Unknown desc = failed to create pod network sandbox k8s_tenantblue-pod1_test_94ec7c4d-8c77-4922-a986-6ee55890802f_0(b1430d5257ecfab4c11fab692a8a5dfef97f80db7815efa850992ab1307bcbb6): error adding pod test_tenantblue-pod1 to CNI network "multus-cni-network": plugin type="multus-shim" name="multus-cni-network" failed (add): CmdAdd (shim): CNI request failed with status 400: '&{ContainerID:b1430d5257ecfab4c11fab692a8a5dfef97f80db7815efa850992ab1307bcbb6 Netns:/var/run/netns/255d3fe6-9d2f-4747-ac93-731af68835df IfName:eth0 Args:IgnoreUnknown=1;K8S_POD_NAMESPACE=test;K8S_POD_NAME=tenantblue-pod1;K8S_POD_INFRA_CONTAINER_ID=b1430d5257ecfab4c11fab692a8a5dfef97f80db7815efa850992ab1307bcbb6;K8S_POD_UID=94ec7c4d-8c77-4922-a986-6ee55890802f Path: StdinData:[123 34 98 105 110 68 105 114 34 58 34 47 118 97 114 47 108 105 98 47 99 110 105 47 98 105 110 34 44 34 99 108 117 115 116 101 114 78 101 116 119 111 114 107 34 58 34 47 104 111 115 116 47 114 117 110 47 109 117 108 116 117 115 47 99 110 105 47 110 101 116 46 100 47 49 48 45 111 118 110 45 107 117 98 101 114 110 101 116 101 115 46 99 111 110 102 34 44 34 99 110 105 86 101 114 115 105 111 110 34 58 34 48 46 51 46 49 34 44 34 100 97 101 109 111 110 83 111 99 107 101 116 68 105 114 34 58 34 47 114 117 110 47 109 117 108 116 117 115 47 115 111 99 107 101 116 34 44 34 103 108 111 98 97 108 78 97 109 101 115 112 97 99 101 115 34 58 34 100 101 102 97 117 108 116 44 111 112 101 110 115 104 105 102 116 45 109 117 108 116 117 115 44 111 112 101 110 115 104 105 102 116 45 115 114 105 111 118 45 110 101 116 119 111 114 107 45 111 112 101 114 97 116 111 114 34 44 34 108 111 103 76 101 118 101 108 34 58 34 118 101 114 98 111 115 101 34 44 34 108 111 103 84 111 83 116 100 101 114 114 34 58 116 114 117 101 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 110 97 109 101 115 112 97 99 101 73 115 111 108 97 116 105 111 110 34 58 116 114 117 101 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 115 116 47 114 117 110 47 109 117 108 116 117 115 47 99 110 105 47 110 101 116 46 100 47 49 48 45 111 118 110 45 107 117 98 101 114 110 101 116 101 115 46 99 111 110 102 34 44 34 116 121 112 101 34 58 34 109 117 108 116 117 115 45 115 104 105 109 34 44 10 32 32 32 32 34 99 110 105 86 101 114 115 105 111 110 34 58 32 34 48 46 51 46 49 34 44 10 32 32 32 32 34 99 104 114 111 111 116 68 105 114 34 58 32 34 47 104 111 115 116 114 111 111 116 34 44 10 32 32 32 32 34 108 111 103 84 111 83 116 100 101 114 114 34 58 32 116 114 117 101 44 10 32 32 32 32 34 108 111 103 76 101 118 101 108 34 58 32 34 118 101 114 98 111 115 101 34 44 10 32 32 32 32 34 98 105 110 68 105 114 34 58 32 34 47 118 97 114 47 108 105 98 47 99 110 105 47 98 105 110 34 44 10 32 32 32 32 34 99 110 105 67 111 110 102 105 103 68 105 114 34 58 32 34 47 104 111 115 116 47 101 116 99 47 99 110 105 47 110 101 116 46 100 34 44 10 32 32 32 32 34 109 117 108 116 117 115 67 111 110 102 105 103 70 105 108 101 34 58 32 34 97 117 116 111 34 44 10 32 32 32 32 34 109 117 108 116 117 115 65 117 116 111 99 111 110 102 105 103 68 105 114 34 58 32 34 47 104 111 115 116 47 114 117 110 47 109 117 108 116 117 115 47 99 110 105 47 110 101 116 46 100 34 44 10 32 32 32 32 34 110 97 109 101 115 112 97 99 101 73 115 111 108 97 116 105 111 110 34 58 32 116 114 117 101 44 10 32 32 32 32 34 103 108 111 98 97 108 78 97 109 101 115 112 97 99 101 115 34 58 32 34 100 101 102 97 117 108 116 44 111 112 101 110 115 104 105 102 116 45 109 117 108 116 117 115 44 111 112 101 110 115 104 105 102 116 45 115 114 105 111 118 45 110 101 116 119 111 114 107 45 111 112 101 114 97 116 111 114 34 44 10 32 32 32 32 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 32 34 47 104 111 115 116 47 114 117 110 47 109 117 108 116 117 115 47 99 110 105 47 110 101 116 46 100 47 49 48 45 111 118 110 45 107 117 98 101 114 110 101 116 101 115 46 99 111 110 102 34 44 10 32 32 32 32 34 100 97 101 109 111 110 83 111 99 107 101 116 68 105 114 34 58 32 34 47 114 117 110 47 109 117 108 116 117 115 47 115 111 99 107 101 116 34 44 10 32 32 32 32 34 115 111 99 107 101 116 68 105 114 34 58 32 34 47 104 111 115 116 47 114 117 110 47 109 117 108 116 117 115 47 115 111 99 107 101 116 34 10 125 10]} ContainerID:"b1430d5257ecfab4c11fab692a8a5dfef97f80db7815efa850992ab1307bcbb6" Netns:"/var/run/netns/255d3fe6-9d2f-4747-ac93-731af68835df" IfName:"eth0" Args:"IgnoreUnknown=1;K8S_POD_NAMESPACE=test;K8S_POD_NAME=tenantblue-pod1;K8S_POD_INFRA_CONTAINER_ID=b1430d5257ecfab4c11fab692a8a5dfef97f80db7815efa850992ab1307bcbb6;K8S_POD_UID=94ec7c4d-8c77-4922-a986-6ee55890802f" Path:"" ERRORED: error configuring pod [test/tenantblue-pod1] networking: [test/tenantblue-pod1/94ec7c4d-8c77-4922-a986-6ee55890802f:ovn-kubernetes]: error adding container to network "ovn-kubernetes": CNI request failed with status 400: '[test/tenantblue-pod1 b1430d5257ecfab4c11fab692a8a5dfef97f80db7815efa850992ab1307bcbb6 network default NAD default] [test/tenantblue-pod1 b1430d5257ecfab4c11fab692a8a5dfef97f80db7815efa850992ab1307bcbb6 network default NAD default] failed to configure pod interface: timed out waiting for OVS port binding (ovn-installed) for 0a:58:0a:81:02:28 [10.129.2.40/23] '
Expected results:
Pod can be Running
Additional info:
## NNCP.yaml apiVersion: nmstate.io/v1 kind: NodeNetworkConfigurationPolicy metadata: name: ovs-br2-multiple-networks spec: desiredState: ovn: bridge-mappings: - localnet: tenantblue bridge: ovsbr1 state: present ## NAD.yaml apiVersion: k8s.cni.cncf.io/v1 kind: NetworkAttachmentDefinition metadata: name: tenantblue spec: config: |2 { "cniVersion": "0.4.0", "name": "tenantblue", "type": "ovn-k8s-cni-overlay", "topology":"localnet", "subnets": "192.168.122.0/24", "excludeSubnets": "192.168.122.1/32", "netAttachDefName": "test/tenantblue" } ## pod.yaml kind: Pod apiVersion: v1 metadata: name: tenantblue-pod1 labels: name: tenantblue-pod1 annotations: k8s.v1.cni.cncf.io/networks: tenantblue spec: securityContext: runAsNonRoot: true seccompProfile: type: RuntimeDefault containers: - name: tenantblue-pod1 image: quay.io/openshifttest/hello-sdn@sha256:c89445416459e7adea9a5a416b3365ed3d74f2491beb904d61dc8d1eb89a72a4 securityContext: allowPrivilegeEscalation: false capabilities: drop: ["ALL"]
- is blocked by
-
OCPBUGS-18869 nmstate ovn bridge mappings API is clearing all other OVS table external IDs
- Closed