Bug 2176728

Summary: Sometimes fail to attach linux bond interface to ovs-bridge
Product: Red Hat Enterprise Linux 9 Reporter: Mingyu Shi <mshi>
Component: nmstateAssignee: Gris Ge <fge>
Status: CLOSED DUPLICATE QA Contact: Mingyu Shi <mshi>
Severity: medium Docs Contact:
Priority: medium    
Version: 9.2CC: ferferna, jiji, jishi, network-qe, till
Target Milestone: rcKeywords: Regression
Target Release: ---Flags: pm-rhel: mirror+
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: 2023-03-21 02:51:39 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:
Bug Depends On:    
Bug Blocks: 2144442    

Description Mingyu Shi 2023-03-09 04:44:42 UTC
Description of problem:
A regression of https://bugzilla.redhat.com/show_bug.cgi?id=2005240

Version-Release number of selected component (if applicable):
nmstate-2.2.7-1.el9.x86_64
nispor-1.2.10-1.el9.x86_64
NetworkManager-1.42.2-1.el9.x86_64
openvswitch2.15-2.15.0-81.el9fdp.x86_64

How reproducible:
Very high

Steps to Reproduce:
ip netns add tmp
ip link add eth2 type veth peer name eth2peer
ip link add eth1 type veth peer name eth1peer
ip link set eth1 up
ip link set eth2 up
ip link set eth1peer netns tmp
ip link set eth2peer netns tmp
ip netns exec tmp ip link set eth1peer up
ip netns exec tmp ip link set eth2peer up
nmcli device set eth1 managed yes
nmcli device set eth2 managed yes
echo 'interfaces:
- link-aggregation:
    mode: active-backup
    options:
        miimon: 140
        primary: eth1
    port:
        - eth1
        - eth2
  name: bond101
  state: up
  type: bond
- bridge:
    options:
        stp: false
    port:
        - name: bond101
  name: br22
  state: up
  type: ovs-bridge' | nmstatectl apply

Actual results:
[2023-03-09T04:27:48Z INFO  nmstate::query_apply::net_state] Created checkpoint /org/freedesktop/NetworkManager/Checkpoint/34
[2023-03-09T04:27:48Z INFO  nmstate::iface] Include interface eth2 to edit as its controller required so
[2023-03-09T04:27:48Z INFO  nmstate::iface] Include interface eth1 to edit as its controller required so
[2023-03-09T04:27:48Z INFO  nmstate::nm::query_apply::profile] Creating connection UUID Some("7627d71d-579b-4cc9-8f1d-de799b6b58e2"), ID Some("br22-br"), type Some("ovs-bridge") name Some("br22")
[2023-03-09T04:27:48Z INFO  nmstate::nm::query_apply::profile] Creating connection UUID Some("26c236ce-b784-4ec4-8ea7-8cec8835e42f"), ID Some("bond101-port"), type Some("ovs-port") name Some("bond101")
[2023-03-09T04:27:48Z INFO  nmstate::nm::query_apply::profile] Creating connection UUID Some("54a77b64-38e6-4edd-ab89-58a0761cd107"), ID Some("bond101"), type Some("bond") name Some("bond101")
[2023-03-09T04:27:48Z INFO  nmstate::nm::query_apply::profile] Modifying connection UUID Some("0f1d953c-cbb9-422a-8ebb-a56476c7a049"), ID Some("eth1"), type Some("802-3-ethernet") name Some("eth1")
[2023-03-09T04:27:48Z INFO  nmstate::nm::query_apply::profile] Modifying connection UUID Some("e9de59e0-7277-470b-9d61-fdb2e2d01032"), ID Some("eth2"), type Some("802-3-ethernet") name Some("eth2")
[2023-03-09T04:27:48Z INFO  nmstate::nm::query_apply::profile] Activating connection 7627d71d-579b-4cc9-8f1d-de799b6b58e2: br22/ovs-bridge
[2023-03-09T04:27:48Z INFO  nmstate::nm::query_apply::profile] Activating connection 26c236ce-b784-4ec4-8ea7-8cec8835e42f: bond101/ovs-port
[2023-03-09T04:27:48Z INFO  nmstate::nm::query_apply::profile] Activating connection 54a77b64-38e6-4edd-ab89-58a0761cd107: bond101/bond
[2023-03-09T04:27:48Z INFO  nmstate::nm::query_apply::profile] Activating connection 0f1d953c-cbb9-422a-8ebb-a56476c7a049: eth1/802-3-ethernet
[2023-03-09T04:27:48Z INFO  nmstate::nm::query_apply::profile] Activating connection e9de59e0-7277-470b-9d61-fdb2e2d01032: eth2/802-3-ethernet
[2023-03-09T04:27:48Z INFO  nmstate::nm::query_apply::profile] Deactivating connection 0f1d953c-cbb9-422a-8ebb-a56476c7a049: eth1/802-3-ethernet
[2023-03-09T04:27:48Z INFO  nmstate::nm::query_apply::profile] Deactivating connection e9de59e0-7277-470b-9d61-fdb2e2d01032: eth2/802-3-ethernet
[2023-03-09T04:27:49Z WARN  nmstate::state] Bond option miss-match: bond101.interface.link-aggregation.options.primary desire '"eth1"', current 'null'
[2023-03-09T04:27:49Z INFO  nmstate::query_apply::net_state] Retrying on: VerificationError: Verification failure: bond101.interface.link-aggregation.port desire '["eth1","eth2"]', current '[]'
[2023-03-09T04:27:50Z WARN  nmstate::state] Bond option miss-match: bond101.interface.link-aggregation.options.primary desire '"eth1"', current 'null'
[2023-03-09T04:27:50Z INFO  nmstate::query_apply::net_state] Retrying on: VerificationError: Verification failure: bond101.interface.link-aggregation.port desire '["eth1","eth2"]', current '[]'
[2023-03-09T04:27:51Z WARN  nmstate::state] Bond option miss-match: bond101.interface.link-aggregation.options.primary desire '"eth1"', current 'null'
[2023-03-09T04:27:51Z INFO  nmstate::query_apply::net_state] Retrying on: VerificationError: Verification failure: bond101.interface.link-aggregation.port desire '["eth1","eth2"]', current '[]'
[2023-03-09T04:27:52Z WARN  nmstate::state] Bond option miss-match: bond101.interface.link-aggregation.options.primary desire '"eth1"', current 'null'
[2023-03-09T04:27:52Z INFO  nmstate::query_apply::net_state] Retrying on: VerificationError: Verification failure: bond101.interface.link-aggregation.port desire '["eth1","eth2"]', current '[]'
[2023-03-09T04:27:53Z WARN  nmstate::state] Bond option miss-match: bond101.interface.link-aggregation.options.primary desire '"eth1"', current 'null'
[2023-03-09T04:27:53Z INFO  nmstate::query_apply::net_state] Retrying on: VerificationError: Verification failure: bond101.interface.link-aggregation.port desire '["eth1","eth2"]', current '[]'
[2023-03-09T04:27:54Z INFO  nmstate::nm::query_apply::profile] Modifying connection UUID Some("7627d71d-579b-4cc9-8f1d-de799b6b58e2"), ID Some("br22-br"), type Some("ovs-bridge") name Some("br22")
[2023-03-09T04:27:54Z INFO  nmstate::nm::query_apply::profile] Modifying connection UUID Some("26c236ce-b784-4ec4-8ea7-8cec8835e42f"), ID Some("bond101-port"), type Some("ovs-port") name Some("bond101")
[2023-03-09T04:27:54Z INFO  nmstate::nm::query_apply::profile] Modifying connection UUID Some("54a77b64-38e6-4edd-ab89-58a0761cd107"), ID Some("bond101"), type Some("bond") name Some("bond101")
[2023-03-09T04:27:54Z INFO  nmstate::nm::query_apply::profile] Modifying connection UUID Some("0f1d953c-cbb9-422a-8ebb-a56476c7a049"), ID Some("eth1"), type Some("802-3-ethernet") name Some("eth1")
[2023-03-09T04:27:54Z INFO  nmstate::nm::query_apply::profile] Modifying connection UUID Some("e9de59e0-7277-470b-9d61-fdb2e2d01032"), ID Some("eth2"), type Some("802-3-ethernet") name Some("eth2")
[2023-03-09T04:27:54Z INFO  nmstate::nm::query_apply::profile] Activating connection 7627d71d-579b-4cc9-8f1d-de799b6b58e2: br22/ovs-bridge
[2023-03-09T04:27:54Z INFO  nmstate::nm::query_apply::profile] Activating connection 26c236ce-b784-4ec4-8ea7-8cec8835e42f: bond101/ovs-port
[2023-03-09T04:27:54Z INFO  nmstate::nm::query_apply::profile] Activating connection 54a77b64-38e6-4edd-ab89-58a0761cd107: bond101/bond
[2023-03-09T04:27:54Z INFO  nmstate::nm::query_apply::profile] Activating connection 0f1d953c-cbb9-422a-8ebb-a56476c7a049: eth1/802-3-ethernet
[2023-03-09T04:27:54Z INFO  nmstate::nm::query_apply::profile] Activating connection e9de59e0-7277-470b-9d61-fdb2e2d01032: eth2/802-3-ethernet
[2023-03-09T04:27:54Z INFO  nmstate::nm::query_apply::profile] Deactivating connection 0f1d953c-cbb9-422a-8ebb-a56476c7a049: eth1/802-3-ethernet
[2023-03-09T04:27:54Z INFO  nmstate::nm::query_apply::profile] Deactivating connection e9de59e0-7277-470b-9d61-fdb2e2d01032: eth2/802-3-ethernet
[2023-03-09T04:27:54Z WARN  nmstate::state] Bond option miss-match: bond101.interface.link-aggregation.options.primary desire '"eth1"', current 'null'
[2023-03-09T04:27:54Z INFO  nmstate::query_apply::net_state] Retrying on: VerificationError: Verification failure: bond101.interface.link-aggregation.port desire '["eth1","eth2"]', current '[]'
[2023-03-09T04:27:55Z WARN  nmstate::state] Bond option miss-match: bond101.interface.link-aggregation.options.primary desire '"eth1"', current 'null'
[2023-03-09T04:27:55Z INFO  nmstate::query_apply::net_state] Retrying on: VerificationError: Verification failure: bond101.interface.link-aggregation.port desire '["eth1","eth2"]', current '[]'
[2023-03-09T04:27:56Z WARN  nmstate::state] Bond option miss-match: bond101.interface.link-aggregation.options.primary desire '"eth1"', current 'null'
[2023-03-09T04:27:56Z INFO  nmstate::query_apply::net_state] Retrying on: VerificationError: Verification failure: bond101.interface.link-aggregation.port desire '["eth1","eth2"]', current '[]'
[2023-03-09T04:27:57Z WARN  nmstate::state] Bond option miss-match: bond101.interface.link-aggregation.options.primary desire '"eth1"', current 'null'
[2023-03-09T04:27:57Z INFO  nmstate::query_apply::net_state] Retrying on: VerificationError: Verification failure: bond101.interface.link-aggregation.port desire '["eth1","eth2"]', current '[]'
[2023-03-09T04:27:58Z WARN  nmstate::state] Bond option miss-match: bond101.interface.link-aggregation.options.primary desire '"eth1"', current 'null'
[2023-03-09T04:27:58Z INFO  nmstate::query_apply::net_state] Rollbacked to checkpoint /org/freedesktop/NetworkManager/Checkpoint/34
NmstateError: VerificationError: Verification failure: bond101.interface.link-aggregation.port desire '["eth1","eth2"]', current '[]'

Expected results:
No failure

Additional info:

Comment 1 Gris Ge 2023-03-20 05:32:07 UTC
This might be duplicate report of https://bugzilla.redhat.com/show_bug.cgi?id=2177592

Please use `dnf copr enable packit/nmstate-nmstate-2280 ` to check whether it fix your problem.

Thanks!

Comment 3 Mingyu Shi 2023-03-21 02:51:39 UTC

*** This bug has been marked as a duplicate of bug 2177592 ***