Bug 1819726

Summary: Bridge network interface only created on one node, and not another.
Product: Container Native Virtualization (CNV) Reporter: Tomasz Barański <tbaransk>
Component: NetworkingAssignee: Quique Llorente <ellorent>
Status: CLOSED WORKSFORME QA Contact: Meni Yakove <myakove>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.3.0CC: cnv-qe-bugs, ncredi, phoracek
Target Milestone: ---   
Target Release: future   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-09-03 12:12:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
netutil daemonset spec
none
Node network config policy
none
Longs fro nmstate-handler-worker none

Description Tomasz Barański 2020-04-01 11:43:27 UTC
Created attachment 1675387 [details]
netutil daemonset spec

Description of problem:

I'm running cnv-tests on a local kubevirtci cluster using k8s-1.17 provider. A lot of networking test fails due to failure creating bridge network. I was able to narrow down the problem to failure in applying the following policy:

{'apiVersion': 'nmstate.io/v1alpha1', 'kind': 'NodeNetworkConfigurationPolicy', 'metadata': {'name': 'test-network-operator'}, 'spec': {'desiredState': {'interfaces': [{'name': 'br1test', 'type': 'linux-bridge', 'state': 'up', 'bridge': {'options': {'stp': {'enabled': False}}, 'port': []}}]}}}


How reproducible:
100%

Steps to Reproduce:
1. Start kubevirt cluster (cd kubevirtci; make cluster-up; cd cnv-tests; UPSTREAM=1 make cluster-install-hco)
2. Create netutils daemonset (kubectl create -f netutil-deamon-set.yaml, attached)
3. Create namespace (kubectl create namespace cluster-addons-operator-test-network-addons-operator)
4. Create policy (kubectl create -f node-network-config.yaml, attached)

Actual results:
Interface br1test created on node01 but not on node02.

Expected results:
Interface br1test created on node01 and node02.

Additional info:

$ export | grep KUBE
declare -x KUBEVIRT_NUM_NODES="2"
declare -x KUBEVIRT_NUM_SECONDARY_NICS="1"
declare -x KUBEVIRT_PROVIDER="k8s-1.17"

Comment 1 Tomasz Barański 2020-04-01 11:44:32 UTC
Created attachment 1675388 [details]
Node network config policy

Comment 2 Tomasz Barański 2020-04-01 11:45:42 UTC
Created attachment 1675389 [details]
Longs fro nmstate-handler-worker

Comment 3 Petr Horáček 2020-04-01 11:50:05 UTC
Thanks Tomasz!

Since this is not the only issue with reporting on knmstate, we may be able to piggy-pack it to 2.3. We will need an ack for blocker though.

Comment 4 Petr Horáček 2020-04-02 10:22:42 UTC
Taking a second look. This happened only on virtualized provider and we were not able to reproduce it. I'm moving it to future and keeping this in case we reproduce it on D/S.

Comment 5 Nelly Credi 2020-04-06 06:47:32 UTC
should this move back to NEW?

Comment 6 Petr Horáček 2020-09-03 12:12:47 UTC
Please feel to reopen this if it happens again.