RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2094631 - Failed to remove linux bridge while a tun is attached
Summary: Failed to remove linux bridge while a tun is attached
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: nmstate
Version: 9.1
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Gris Ge
QA Contact: Mingyu Shi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-06-08 02:56 UTC by Mingyu Shi
Modified: 2023-05-09 08:19 UTC (History)
6 users (show)

Fixed In Version: nmstate-2.2.1-1.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-05-09 07:31:01 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-124604 0 None None None 2022-06-08 03:01:44 UTC
Red Hat Product Errata RHBA-2023:2190 0 None None None 2023-05-09 07:31:15 UTC

Description Mingyu Shi 2022-06-08 02:56:47 UTC
Description of problem:
This is a consequent regression of https://bugzilla.redhat.com/show_bug.cgi?id=1861668 , but happened in env cleaning phase(remove the interfaces)

Version-Release number of selected component (if applicable):
nmstate-2.1.1-0.alpha.20220602.5accbd1.el9.x86_64
NetworkManager-1.39.5-1.el9.x86_64
DISTRO=RHEL-9.1.0-20220606.1

How reproducible:
100%

Steps to Reproduce:
ip link add veth0 type veth peer name veth0_ep
ip link set veth0 up
ip link set veth0_ep up
nmcli device set veth0 managed yes
nmcli device set veth0_ep managed yes

ip tuntap add name tap0 mode tap
ip link add br0 type bridge
ip link set tap0 master br0
ip link set tap0 up
ip link set br0 up

cat << EOF > target.yaml
---
interfaces:
  - name: br0
    type: linux-bridge
    state: up
    bridge:
      port:
        - name: veth0
EOF

nmstatectl apply target.yaml

echo "
interfaces:
  - name: br0
    type: linux-bridge
    state: absent
  - name: veth0
    type: ethernet
    state: absent
" | nmstatectl apply

Actual results:
[2022-06-08T02:53:59Z INFO  nmstate::nispor::base_iface] Got unsupported interface type Tun: tap0, ignoring
[2022-06-08T02:53:59Z INFO  nmstate::nispor::show] Got unsupported interface tap0 type Tun
[2022-06-08T02:53:59Z INFO  nmstate::nispor::show] Got unsupported interface lo type Loopback
[2022-06-08T02:53:59Z INFO  nmstate::nm::show] Got unsupported interface type generic: lo, ignoring
[2022-06-08T02:53:59Z INFO  nmstate::nispor::base_iface] Got unsupported interface type Tun: tap0, ignoring
[2022-06-08T02:53:59Z INFO  nmstate::nispor::show] Got unsupported interface tap0 type Tun
[2022-06-08T02:53:59Z INFO  nmstate::nispor::show] Got unsupported interface lo type Loopback
[2022-06-08T02:54:00Z INFO  nmstate::nm::show] Got unsupported interface type generic: lo, ignoring
[2022-06-08T02:54:00Z INFO  nmstate::net_state] Ignoring kernel interface lo
[2022-06-08T02:54:00Z INFO  nmstate::net_state] Ignoring user space interface tap0 with type Tun
[2022-06-08T02:54:00Z INFO  nmstate::ifaces::inter_ifaces] Deleting interface br0/linux-bridge
[2022-06-08T02:54:00Z INFO  nmstate::ifaces::inter_ifaces] Deleting interface veth0/ethernet
[2022-06-08T02:54:00Z INFO  nmstate::net_state] Created checkpoint /org/freedesktop/NetworkManager/Checkpoint/124
[2022-06-08T02:54:00Z INFO  nmstate::nm::apply] Deleting NM connection for absent interface br0/linux-bridge: f50a309f-e72a-4a83-8542-e42e9237e37f
[2022-06-08T02:54:00Z INFO  nmstate::nm::apply] Deleting NM connection for absent interface veth0/ethernet: 4a12fe61-66dd-4310-93ee-61bee8c1ca87
[2022-06-08T02:54:00Z INFO  nmstate::nispor::show] Got unsupported interface lo type Loopback
[2022-06-08T02:54:00Z INFO  nmstate::nispor::base_iface] Got unsupported interface type Tun: tap0, ignoring
[2022-06-08T02:54:00Z INFO  nmstate::nispor::show] Got unsupported interface tap0 type Tun
[2022-06-08T02:54:00Z INFO  nmstate::nm::show] Got unsupported interface type generic: lo, ignoring
[2022-06-08T02:54:00Z INFO  nmstate::nm::show] Got unsupported interface type tun: tap0, ignoring
[2022-06-08T02:54:00Z ERROR nmstate::ifaces::inter_ifaces] VerificationError: Absent/Down interface br0/linux-bridge still found as LinuxBridge(LinuxBridgeInterface { base: BaseInterface { name: "br0", description: None, prop_list: ["name", "state", "iface_type", "ipv4", "ipv6", "mac_address", "controller", "mtu", "accept_all_mac_addresses", "ethtool"], iface_type: LinuxBridge, state: Down, mac_address: Some("00:00:00:00:00:00"), permanent_mac_address: None, mtu: Some(1500), ipv4: Some(InterfaceIpv4 { enabled: false, prop_list: ["enabled"], dhcp: None, dhcp_client_id: None, addresses: None, dns: None, auto_dns: None, auto_gateway: None, auto_routes: None, auto_table_id: None }), ipv6: Some(InterfaceIpv6 { enabled: false, prop_list: ["enabled"], dhcp: None, dhcp_duid: None, autoconf: None, addr_gen_mode: None, addresses: None, dns: None, auto_dns: None, auto_gateway: None, auto_routes: None, auto_table_id: None }), controller: None, accept_all_mac_addresses: Some(false), copy_mac_from: None, ovsdb: None, ieee8021x: None, lldp: None, ethtool: Some(EthtoolConfig { pause: None, feature: Some({"tx-gso-partial": true, "tx-ipxip4-segmentation": true, "tx-sctp-segmentation": true, "tx-tcp-ecn-segmentation": true, "tx-gso-robust": true, "tx-udp_tnl-csum-segmentation": true, "tx-esp-segmentation": true, "tx-udp-segmentation": true, "tx-gso-list": true, "tx-fcoe-segmentation": true, "tx-tcp6-segmentation": true, "tx-vlan-stag-hw-insert": true, "rx-gro-list": false, "tx-nocache-copy": false, "tx-tcp-mangleid-segmentation": true, "tx-gre-segmentation": true, "rx-udp-gro-forwarding": false, "tx-tcp-segmentation": true, "highdma": true, "tx-checksum-ip-generic": true, "tx-generic-segmentation": true, "tx-tunnel-remcsum-segmentation": true, "tx-ipxip6-segmentation": true, "tx-vlan-hw-insert": true, "tx-scatter-gather-fraglist": true, "rx-gro": true, "tx-udp_tnl-segmentation": true, "tx-gre-csum-segmentation": true}), coalesce: None, ring: None }), controller_type: None, up_priority: 0, routes: None, rules: None, _other: {} }, bridge: Some(LinuxBridgeConfig { options: Some(LinuxBridgeOptions { gc_timer: Some(10334), group_addr: Some("01:80:C2:00:00:00"), group_forward_mask: Some(0), group_fwd_mask: Some(0), hash_max: Some(4096), hello_timer: Some(0), mac_ageing_time: Some(300), multicast_last_member_count: Some(2), multicast_last_member_interval: Some(100), multicast_membership_interval: Some(26000), multicast_querier: Some(false), multicast_querier_interval: Some(25500), multicast_query_interval: Some(12500), multicast_query_response_interval: Some(1000), multicast_query_use_ifaddr: Some(false), multicast_router: Some(Auto), multicast_snooping: Some(true), multicast_startup_query_count: Some(2), multicast_startup_query_interval: Some(3125), stp: Some(LinuxBridgeStpOptions { enabled: Some(false), forward_delay: Some(15), hello_time: Some(2), max_age: Some(20), priority: Some(32768) }) }), port: Some([]) }) })
[2022-06-08T02:54:00Z INFO  nmstate::net_state] Retrying on verification failure: VerificationError: Absent/Down interface br0/linux-bridge still found as LinuxBridge(LinuxBridgeInterface { base: BaseInterface { name: "br0", description: None, prop_list: ["name", "state", "iface_type", "ipv4", "ipv6", "mac_address", "controller", "mtu", "accept_all_mac_addresses", "ethtool"], iface_type: LinuxBridge, state: Down, mac_address: Some("00:00:00:00:00:00"), permanent_mac_address: None, mtu: Some(1500), ipv4: Some(InterfaceIpv4 { enabled: false, prop_list: ["enabled"], dhcp: None, dhcp_client_id: None, addresses: None, dns: None, auto_dns: None, auto_gateway: None, auto_routes: None, auto_table_id: None }), ipv6: Some(InterfaceIpv6 { enabled: false, prop_list: ["enabled"], dhcp: None, dhcp_duid: None, autoconf: None, addr_gen_mode: None, addresses: None, dns: None, auto_dns: None, auto_gateway: None, auto_routes: None, auto_table_id: None }), controller: None, accept_all_mac_addresses: Some(false), copy_mac_from: None, ovsdb: None, ieee8021x: None, lldp: None, ethtool: Some(EthtoolConfig { pause: None, feature: Some({"tx-gso-partial": true, "tx-ipxip4-segmentation": true, "tx-sctp-segmentation": true, "tx-tcp-ecn-segmentation": true, "tx-gso-robust": true, "tx-udp_tnl-csum-segmentation": true, "tx-esp-segmentation": true, "tx-udp-segmentation": true, "tx-gso-list": true, "tx-fcoe-segmentation": true, "tx-tcp6-segmentation": true, "tx-vlan-stag-hw-insert": true, "rx-gro-list": false, "tx-nocache-copy": false, "tx-tcp-mangleid-segmentation": true, "tx-gre-segmentation": true, "rx-udp-gro-forwarding": false, "tx-tcp-segmentation": true, "highdma": true, "tx-checksum-ip-generic": true, "tx-generic-segmentation": true, "tx-tunnel-remcsum-segmentation": true, "tx-ipxip6-segmentation": true, "tx-vlan-hw-insert": true, "tx-scatter-gather-fraglist": true, "rx-gro": true, "tx-udp_tnl-segmentation": true, "tx-gre-csum-segmentation": true}), coalesce: None, ring: None }), controller_type: None, up_priority: 0, routes: None, rules: None, _other: {} }, bridge: Some(LinuxBridgeConfig { options: Some(LinuxBridgeOptions { gc_timer: Some(10334), group_addr: Some("01:80:C2:00:00:00"), group_forward_mask: Some(0), group_fwd_mask: Some(0), hash_max: Some(4096), hello_timer: Some(0), mac_ageing_time: Some(300), multicast_last_member_count: Some(2), multicast_last_member_interval: Some(100), multicast_membership_interval: Some(26000), multicast_querier: Some(false), multicast_querier_interval: Some(25500), multicast_query_interval: Some(12500), multicast_query_response_interval: Some(1000), multicast_query_use_ifaddr: Some(false), multicast_router: Some(Auto), multicast_snooping: Some(true), multicast_startup_query_count: Some(2), multicast_startup_query_interval: Some(3125), stp: Some(LinuxBridgeStpOptions { enabled: Some(false), forward_delay: Some(15), hello_time: Some(2), max_age: Some(20), priority: Some(32768) }) }), port: Some([]) }) })
[2022-06-08T02:54:01Z INFO  nmstate::nispor::base_iface] Got unsupported interface type Tun: tap0, ignoring
[2022-06-08T02:54:01Z INFO  nmstate::nispor::show] Got unsupported interface tap0 type Tun
[2022-06-08T02:54:01Z INFO  nmstate::nispor::show] Got unsupported interface lo type Loopback
[2022-06-08T02:54:01Z INFO  nmstate::nm::show] Got unsupported interface type generic: lo, ignoring
[2022-06-08T02:54:01Z INFO  nmstate::nm::show] Got unsupported interface type tun: tap0, ignoring
[2022-06-08T02:54:01Z ERROR nmstate::ifaces::inter_ifaces] VerificationError: Absent/Down interface br0/linux-bridge still found as LinuxBridge(LinuxBridgeInterface { base: BaseInterface { name: "br0", description: None, prop_list: ["name", "state", "iface_type", "ipv4", "ipv6", "mac_address", "controller", "mtu", "accept_all_mac_addresses", "ethtool"], iface_type: LinuxBridge, state: Down, mac_address: Some("00:00:00:00:00:00"), permanent_mac_address: None, mtu: Some(1500), ipv4: Some(InterfaceIpv4 { enabled: false, prop_list: ["enabled"], dhcp: None, dhcp_client_id: None, addresses: None, dns: None, auto_dns: None, auto_gateway: None, auto_routes: None, auto_table_id: None }), ipv6: Some(InterfaceIpv6 { enabled: false, prop_list: ["enabled"], dhcp: None, dhcp_duid: None, autoconf: None, addr_gen_mode: None, addresses: None, dns: None, auto_dns: None, auto_gateway: None, auto_routes: None, auto_table_id: None }), controller: None, accept_all_mac_addresses: Some(false), copy_mac_from: None, ovsdb: None, ieee8021x: None, lldp: None, ethtool: Some(EthtoolConfig { pause: None, feature: Some({"tx-fcoe-segmentation": true, "tx-udp_tnl-segmentation": true, "tx-ipxip6-segmentation": true, "tx-sctp-segmentation": true, "tx-gre-csum-segmentation": true, "tx-tcp-mangleid-segmentation": true, "tx-tcp6-segmentation": true, "tx-udp-segmentation": true, "tx-checksum-ip-generic": true, "tx-gre-segmentation": true, "tx-ipxip4-segmentation": true, "tx-gso-partial": true, "tx-tcp-segmentation": true, "rx-gro": true, "tx-esp-segmentation": true, "tx-tunnel-remcsum-segmentation": true, "tx-gso-list": true, "tx-scatter-gather-fraglist": true, "tx-generic-segmentation": true, "highdma": true, "tx-gso-robust": true, "tx-tcp-ecn-segmentation": true, "tx-nocache-copy": false, "tx-udp_tnl-csum-segmentation": true, "tx-vlan-stag-hw-insert": true, "tx-vlan-hw-insert": true, "rx-gro-list": false, "rx-udp-gro-forwarding": false}), coalesce: None, ring: None }), controller_type: None, up_priority: 0, routes: None, rules: None, _other: {} }, bridge: Some(LinuxBridgeConfig { options: Some(LinuxBridgeOptions { gc_timer: Some(10230), group_addr: Some("01:80:C2:00:00:00"), group_forward_mask: Some(0), group_fwd_mask: Some(0), hash_max: Some(4096), hello_timer: Some(0), mac_ageing_time: Some(300), multicast_last_member_count: Some(2), multicast_last_member_interval: Some(100), multicast_membership_interval: Some(26000), multicast_querier: Some(false), multicast_querier_interval: Some(25500), multicast_query_interval: Some(12500), multicast_query_response_interval: Some(1000), multicast_query_use_ifaddr: Some(false), multicast_router: Some(Auto), multicast_snooping: Some(true), multicast_startup_query_count: Some(2), multicast_startup_query_interval: Some(3125), stp: Some(LinuxBridgeStpOptions { enabled: Some(false), forward_delay: Some(15), hello_time: Some(2), max_age: Some(20), priority: Some(32768) }) }), port: Some([]) }) })
[2022-06-08T02:54:01Z INFO  nmstate::net_state] Retrying on verification failure: VerificationError: Absent/Down interface br0/linux-bridge still found as LinuxBridge(LinuxBridgeInterface { base: BaseInterface { name: "br0", description: None, prop_list: ["name", "state", "iface_type", "ipv4", "ipv6", "mac_address", "controller", "mtu", "accept_all_mac_addresses", "ethtool"], iface_type: LinuxBridge, state: Down, mac_address: Some("00:00:00:00:00:00"), permanent_mac_address: None, mtu: Some(1500), ipv4: Some(InterfaceIpv4 { enabled: false, prop_list: ["enabled"], dhcp: None, dhcp_client_id: None, addresses: None, dns: None, auto_dns: None, auto_gateway: None, auto_routes: None, auto_table_id: None }), ipv6: Some(InterfaceIpv6 { enabled: false, prop_list: ["enabled"], dhcp: None, dhcp_duid: None, autoconf: None, addr_gen_mode: None, addresses: None, dns: None, auto_dns: None, auto_gateway: None, auto_routes: None, auto_table_id: None }), controller: None, accept_all_mac_addresses: Some(false), copy_mac_from: None, ovsdb: None, ieee8021x: None, lldp: None, ethtool: Some(EthtoolConfig { pause: None, feature: Some({"tx-fcoe-segmentation": true, "tx-udp_tnl-segmentation": true, "tx-ipxip6-segmentation": true, "tx-sctp-segmentation": true, "tx-gre-csum-segmentation": true, "tx-tcp-mangleid-segmentation": true, "tx-tcp6-segmentation": true, "tx-udp-segmentation": true, "tx-checksum-ip-generic": true, "tx-gre-segmentation": true, "tx-ipxip4-segmentation": true, "tx-gso-partial": true, "tx-tcp-segmentation": true, "rx-gro": true, "tx-esp-segmentation": true, "tx-tunnel-remcsum-segmentation": true, "tx-gso-list": true, "tx-scatter-gather-fraglist": true, "tx-generic-segmentation": true, "highdma": true, "tx-gso-robust": true, "tx-tcp-ecn-segmentation": true, "tx-nocache-copy": false, "tx-udp_tnl-csum-segmentation": true, "tx-vlan-stag-hw-insert": true, "tx-vlan-hw-insert": true, "rx-gro-list": false, "rx-udp-gro-forwarding": false}), coalesce: None, ring: None }), controller_type: None, up_priority: 0, routes: None, rules: None, _other: {} }, bridge: Some(LinuxBridgeConfig { options: Some(LinuxBridgeOptions { gc_timer: Some(10230), group_addr: Some("01:80:C2:00:00:00"), group_forward_mask: Some(0), group_fwd_mask: Some(0), hash_max: Some(4096), hello_timer: Some(0), mac_ageing_time: Some(300), multicast_last_member_count: Some(2), multicast_last_member_interval: Some(100), multicast_membership_interval: Some(26000), multicast_querier: Some(false), multicast_querier_interval: Some(25500), multicast_query_interval: Some(12500), multicast_query_response_interval: Some(1000), multicast_query_use_ifaddr: Some(false), multicast_router: Some(Auto), multicast_snooping: Some(true), multicast_startup_query_count: Some(2), multicast_startup_query_interval: Some(3125), stp: Some(LinuxBridgeStpOptions { enabled: Some(false), forward_delay: Some(15), hello_time: Some(2), max_age: Some(20), priority: Some(32768) }) }), port: Some([]) }) })
[2022-06-08T02:54:02Z INFO  nmstate::nispor::base_iface] Got unsupported interface type Tun: tap0, ignoring
[2022-06-08T02:54:02Z INFO  nmstate::nispor::show] Got unsupported interface tap0 type Tun
[2022-06-08T02:54:02Z INFO  nmstate::nispor::show] Got unsupported interface lo type Loopback
[2022-06-08T02:54:02Z INFO  nmstate::nm::show] Got unsupported interface type generic: lo, ignoring
[2022-06-08T02:54:02Z INFO  nmstate::nm::show] Got unsupported interface type tun: tap0, ignoring
[2022-06-08T02:54:02Z ERROR nmstate::ifaces::inter_ifaces] VerificationError: Absent/Down interface br0/linux-bridge still found as LinuxBridge(LinuxBridgeInterface { base: BaseInterface { name: "br0", description: None, prop_list: ["name", "state", "iface_type", "ipv4", "ipv6", "mac_address", "controller", "mtu", "accept_all_mac_addresses", "ethtool"], iface_type: LinuxBridge, state: Down, mac_address: Some("00:00:00:00:00:00"), permanent_mac_address: None, mtu: Some(1500), ipv4: Some(InterfaceIpv4 { enabled: false, prop_list: ["enabled"], dhcp: None, dhcp_client_id: None, addresses: None, dns: None, auto_dns: None, auto_gateway: None, auto_routes: None, auto_table_id: None }), ipv6: Some(InterfaceIpv6 { enabled: false, prop_list: ["enabled"], dhcp: None, dhcp_duid: None, autoconf: None, addr_gen_mode: None, addresses: None, dns: None, auto_dns: None, auto_gateway: None, auto_routes: None, auto_table_id: None }), controller: None, accept_all_mac_addresses: Some(false), copy_mac_from: None, ovsdb: None, ieee8021x: None, lldp: None, ethtool: Some(EthtoolConfig { pause: None, feature: Some({"highdma": true, "tx-fcoe-segmentation": true, "tx-sctp-segmentation": true, "tx-checksum-ip-generic": true, "tx-ipxip6-segmentation": true, "tx-generic-segmentation": true, "tx-udp-segmentation": true, "tx-gso-robust": true, "tx-udp_tnl-csum-segmentation": true, "tx-tunnel-remcsum-segmentation": true, "tx-gso-list": true, "tx-nocache-copy": false, "tx-vlan-stag-hw-insert": true, "tx-vlan-hw-insert": true, "rx-gro-list": false, "tx-ipxip4-segmentation": true, "tx-gso-partial": true, "tx-tcp-mangleid-segmentation": true, "rx-udp-gro-forwarding": false, "tx-tcp-ecn-segmentation": true, "tx-tcp-segmentation": true, "rx-gro": true, "tx-tcp6-segmentation": true, "tx-udp_tnl-segmentation": true, "tx-scatter-gather-fraglist": true, "tx-gre-csum-segmentation": true, "tx-esp-segmentation": true, "tx-gre-segmentation": true}), coalesce: None, ring: None }), controller_type: None, up_priority: 0, routes: None, rules: None, _other: {} }, bridge: Some(LinuxBridgeConfig { options: Some(LinuxBridgeOptions { gc_timer: Some(10124), group_addr: Some("01:80:C2:00:00:00"), group_forward_mask: Some(0), group_fwd_mask: Some(0), hash_max: Some(4096), hello_timer: Some(0), mac_ageing_time: Some(300), multicast_last_member_count: Some(2), multicast_last_member_interval: Some(100), multicast_membership_interval: Some(26000), multicast_querier: Some(false), multicast_querier_interval: Some(25500), multicast_query_interval: Some(12500), multicast_query_response_interval: Some(1000), multicast_query_use_ifaddr: Some(false), multicast_router: Some(Auto), multicast_snooping: Some(true), multicast_startup_query_count: Some(2), multicast_startup_query_interval: Some(3125), stp: Some(LinuxBridgeStpOptions { enabled: Some(false), forward_delay: Some(15), hello_time: Some(2), max_age: Some(20), priority: Some(32768) }) }), port: Some([]) }) })
[2022-06-08T02:54:02Z INFO  nmstate::net_state] Retrying on verification failure: VerificationError: Absent/Down interface br0/linux-bridge still found as LinuxBridge(LinuxBridgeInterface { base: BaseInterface { name: "br0", description: None, prop_list: ["name", "state", "iface_type", "ipv4", "ipv6", "mac_address", "controller", "mtu", "accept_all_mac_addresses", "ethtool"], iface_type: LinuxBridge, state: Down, mac_address: Some("00:00:00:00:00:00"), permanent_mac_address: None, mtu: Some(1500), ipv4: Some(InterfaceIpv4 { enabled: false, prop_list: ["enabled"], dhcp: None, dhcp_client_id: None, addresses: None, dns: None, auto_dns: None, auto_gateway: None, auto_routes: None, auto_table_id: None }), ipv6: Some(InterfaceIpv6 { enabled: false, prop_list: ["enabled"], dhcp: None, dhcp_duid: None, autoconf: None, addr_gen_mode: None, addresses: None, dns: None, auto_dns: None, auto_gateway: None, auto_routes: None, auto_table_id: None }), controller: None, accept_all_mac_addresses: Some(false), copy_mac_from: None, ovsdb: None, ieee8021x: None, lldp: None, ethtool: Some(EthtoolConfig { pause: None, feature: Some({"highdma": true, "tx-fcoe-segmentation": true, "tx-sctp-segmentation": true, "tx-checksum-ip-generic": true, "tx-ipxip6-segmentation": true, "tx-generic-segmentation": true, "tx-udp-segmentation": true, "tx-gso-robust": true, "tx-udp_tnl-csum-segmentation": true, "tx-tunnel-remcsum-segmentation": true, "tx-gso-list": true, "tx-nocache-copy": false, "tx-vlan-stag-hw-insert": true, "tx-vlan-hw-insert": true, "rx-gro-list": false, "tx-ipxip4-segmentation": true, "tx-gso-partial": true, "tx-tcp-mangleid-segmentation": true, "rx-udp-gro-forwarding": false, "tx-tcp-ecn-segmentation": true, "tx-tcp-segmentation": true, "rx-gro": true, "tx-tcp6-segmentation": true, "tx-udp_tnl-segmentation": true, "tx-scatter-gather-fraglist": true, "tx-gre-csum-segmentation": true, "tx-esp-segmentation": true, "tx-gre-segmentation": true}), coalesce: None, ring: None }), controller_type: None, up_priority: 0, routes: None, rules: None, _other: {} }, bridge: Some(LinuxBridgeConfig { options: Some(LinuxBridgeOptions { gc_timer: Some(10124), group_addr: Some("01:80:C2:00:00:00"), group_forward_mask: Some(0), group_fwd_mask: Some(0), hash_max: Some(4096), hello_timer: Some(0), mac_ageing_time: Some(300), multicast_last_member_count: Some(2), multicast_last_member_interval: Some(100), multicast_membership_interval: Some(26000), multicast_querier: Some(false), multicast_querier_interval: Some(25500), multicast_query_interval: Some(12500), multicast_query_response_interval: Some(1000), multicast_query_use_ifaddr: Some(false), multicast_router: Some(Auto), multicast_snooping: Some(true), multicast_startup_query_count: Some(2), multicast_startup_query_interval: Some(3125), stp: Some(LinuxBridgeStpOptions { enabled: Some(false), forward_delay: Some(15), hello_time: Some(2), max_age: Some(20), priority: Some(32768) }) }), port: Some([]) }) })
[2022-06-08T02:54:03Z INFO  nmstate::nispor::base_iface] Got unsupported interface type Tun: tap0, ignoring
[2022-06-08T02:54:03Z INFO  nmstate::nispor::show] Got unsupported interface tap0 type Tun
[2022-06-08T02:54:03Z INFO  nmstate::nispor::show] Got unsupported interface lo type Loopback
[2022-06-08T02:54:03Z INFO  nmstate::nm::show] Got unsupported interface type generic: lo, ignoring
[2022-06-08T02:54:03Z INFO  nmstate::nm::show] Got unsupported interface type tun: tap0, ignoring
[2022-06-08T02:54:03Z ERROR nmstate::ifaces::inter_ifaces] VerificationError: Absent/Down interface br0/linux-bridge still found as LinuxBridge(LinuxBridgeInterface { base: BaseInterface { name: "br0", description: None, prop_list: ["name", "state", "iface_type", "ipv4", "ipv6", "mac_address", "controller", "mtu", "accept_all_mac_addresses", "ethtool"], iface_type: LinuxBridge, state: Down, mac_address: Some("00:00:00:00:00:00"), permanent_mac_address: None, mtu: Some(1500), ipv4: Some(InterfaceIpv4 { enabled: false, prop_list: ["enabled"], dhcp: None, dhcp_client_id: None, addresses: None, dns: None, auto_dns: None, auto_gateway: None, auto_routes: None, auto_table_id: None }), ipv6: Some(InterfaceIpv6 { enabled: false, prop_list: ["enabled"], dhcp: None, dhcp_duid: None, autoconf: None, addr_gen_mode: None, addresses: None, dns: None, auto_dns: None, auto_gateway: None, auto_routes: None, auto_table_id: None }), controller: None, accept_all_mac_addresses: Some(false), copy_mac_from: None, ovsdb: None, ieee8021x: None, lldp: None, ethtool: Some(EthtoolConfig { pause: None, feature: Some({"tx-gre-segmentation": true, "tx-vlan-hw-insert": true, "tx-tcp-ecn-segmentation": true, "tx-fcoe-segmentation": true, "tx-tcp-segmentation": true, "tx-vlan-stag-hw-insert": true, "tx-gso-partial": true, "rx-gro-list": false, "tx-gre-csum-segmentation": true, "tx-gso-list": true, "tx-tcp-mangleid-segmentation": true, "tx-nocache-copy": false, "tx-esp-segmentation": true, "tx-udp-segmentation": true, "tx-gso-robust": true, "tx-tcp6-segmentation": true, "tx-udp_tnl-segmentation": true, "tx-udp_tnl-csum-segmentation": true, "tx-ipxip6-segmentation": true, "rx-gro": true, "tx-sctp-segmentation": true, "rx-udp-gro-forwarding": false, "tx-ipxip4-segmentation": true, "tx-tunnel-remcsum-segmentation": true, "tx-checksum-ip-generic": true, "tx-generic-segmentation": true, "tx-scatter-gather-fraglist": true, "highdma": true}), coalesce: None, ring: None }), controller_type: None, up_priority: 0, routes: None, rules: None, _other: {} }, bridge: Some(LinuxBridgeConfig { options: Some(LinuxBridgeOptions { gc_timer: Some(10020), group_addr: Some("01:80:C2:00:00:00"), group_forward_mask: Some(0), group_fwd_mask: Some(0), hash_max: Some(4096), hello_timer: Some(0), mac_ageing_time: Some(300), multicast_last_member_count: Some(2), multicast_last_member_interval: Some(100), multicast_membership_interval: Some(26000), multicast_querier: Some(false), multicast_querier_interval: Some(25500), multicast_query_interval: Some(12500), multicast_query_response_interval: Some(1000), multicast_query_use_ifaddr: Some(false), multicast_router: Some(Auto), multicast_snooping: Some(true), multicast_startup_query_count: Some(2), multicast_startup_query_interval: Some(3125), stp: Some(LinuxBridgeStpOptions { enabled: Some(false), forward_delay: Some(15), hello_time: Some(2), max_age: Some(20), priority: Some(32768) }) }), port: Some([]) }) })
[2022-06-08T02:54:03Z INFO  nmstate::net_state] Retrying on verification failure: VerificationError: Absent/Down interface br0/linux-bridge still found as LinuxBridge(LinuxBridgeInterface { base: BaseInterface { name: "br0", description: None, prop_list: ["name", "state", "iface_type", "ipv4", "ipv6", "mac_address", "controller", "mtu", "accept_all_mac_addresses", "ethtool"], iface_type: LinuxBridge, state: Down, mac_address: Some("00:00:00:00:00:00"), permanent_mac_address: None, mtu: Some(1500), ipv4: Some(InterfaceIpv4 { enabled: false, prop_list: ["enabled"], dhcp: None, dhcp_client_id: None, addresses: None, dns: None, auto_dns: None, auto_gateway: None, auto_routes: None, auto_table_id: None }), ipv6: Some(InterfaceIpv6 { enabled: false, prop_list: ["enabled"], dhcp: None, dhcp_duid: None, autoconf: None, addr_gen_mode: None, addresses: None, dns: None, auto_dns: None, auto_gateway: None, auto_routes: None, auto_table_id: None }), controller: None, accept_all_mac_addresses: Some(false), copy_mac_from: None, ovsdb: None, ieee8021x: None, lldp: None, ethtool: Some(EthtoolConfig { pause: None, feature: Some({"tx-gre-segmentation": true, "tx-vlan-hw-insert": true, "tx-tcp-ecn-segmentation": true, "tx-fcoe-segmentation": true, "tx-tcp-segmentation": true, "tx-vlan-stag-hw-insert": true, "tx-gso-partial": true, "rx-gro-list": false, "tx-gre-csum-segmentation": true, "tx-gso-list": true, "tx-tcp-mangleid-segmentation": true, "tx-nocache-copy": false, "tx-esp-segmentation": true, "tx-udp-segmentation": true, "tx-gso-robust": true, "tx-tcp6-segmentation": true, "tx-udp_tnl-segmentation": true, "tx-udp_tnl-csum-segmentation": true, "tx-ipxip6-segmentation": true, "rx-gro": true, "tx-sctp-segmentation": true, "rx-udp-gro-forwarding": false, "tx-ipxip4-segmentation": true, "tx-tunnel-remcsum-segmentation": true, "tx-checksum-ip-generic": true, "tx-generic-segmentation": true, "tx-scatter-gather-fraglist": true, "highdma": true}), coalesce: None, ring: None }), controller_type: None, up_priority: 0, routes: None, rules: None, _other: {} }, bridge: Some(LinuxBridgeConfig { options: Some(LinuxBridgeOptions { gc_timer: Some(10020), group_addr: Some("01:80:C2:00:00:00"), group_forward_mask: Some(0), group_fwd_mask: Some(0), hash_max: Some(4096), hello_timer: Some(0), mac_ageing_time: Some(300), multicast_last_member_count: Some(2), multicast_last_member_interval: Some(100), multicast_membership_interval: Some(26000), multicast_querier: Some(false), multicast_querier_interval: Some(25500), multicast_query_interval: Some(12500), multicast_query_response_interval: Some(1000), multicast_query_use_ifaddr: Some(false), multicast_router: Some(Auto), multicast_snooping: Some(true), multicast_startup_query_count: Some(2), multicast_startup_query_interval: Some(3125), stp: Some(LinuxBridgeStpOptions { enabled: Some(false), forward_delay: Some(15), hello_time: Some(2), max_age: Some(20), priority: Some(32768) }) }), port: Some([]) }) })
[2022-06-08T02:54:04Z INFO  nmstate::nispor::base_iface] Got unsupported interface type Tun: tap0, ignoring
[2022-06-08T02:54:04Z INFO  nmstate::nispor::show] Got unsupported interface tap0 type Tun
[2022-06-08T02:54:04Z INFO  nmstate::nispor::show] Got unsupported interface lo type Loopback
[2022-06-08T02:54:04Z INFO  nmstate::nm::show] Got unsupported interface type generic: lo, ignoring
[2022-06-08T02:54:04Z INFO  nmstate::nm::show] Got unsupported interface type tun: tap0, ignoring
[2022-06-08T02:54:04Z ERROR nmstate::ifaces::inter_ifaces] VerificationError: Absent/Down interface br0/linux-bridge still found as LinuxBridge(LinuxBridgeInterface { base: BaseInterface { name: "br0", description: None, prop_list: ["name", "state", "iface_type", "ipv4", "ipv6", "mac_address", "controller", "mtu", "accept_all_mac_addresses", "ethtool"], iface_type: LinuxBridge, state: Down, mac_address: Some("00:00:00:00:00:00"), permanent_mac_address: None, mtu: Some(1500), ipv4: Some(InterfaceIpv4 { enabled: false, prop_list: ["enabled"], dhcp: None, dhcp_client_id: None, addresses: None, dns: None, auto_dns: None, auto_gateway: None, auto_routes: None, auto_table_id: None }), ipv6: Some(InterfaceIpv6 { enabled: false, prop_list: ["enabled"], dhcp: None, dhcp_duid: None, autoconf: None, addr_gen_mode: None, addresses: None, dns: None, auto_dns: None, auto_gateway: None, auto_routes: None, auto_table_id: None }), controller: None, accept_all_mac_addresses: Some(false), copy_mac_from: None, ovsdb: None, ieee8021x: None, lldp: None, ethtool: Some(EthtoolConfig { pause: None, feature: Some({"tx-vlan-hw-insert": true, "tx-tcp-ecn-segmentation": true, "tx-sctp-segmentation": true, "tx-tcp-mangleid-segmentation": true, "tx-nocache-copy": false, "rx-gro": true, "tx-generic-segmentation": true, "tx-tunnel-remcsum-segmentation": true, "highdma": true, "tx-checksum-ip-generic": true, "tx-gso-robust": true, "tx-scatter-gather-fraglist": true, "tx-tcp6-segmentation": true, "tx-tcp-segmentation": true, "tx-gso-partial": true, "tx-udp-segmentation": true, "tx-gre-csum-segmentation": true, "tx-ipxip4-segmentation": true, "tx-fcoe-segmentation": true, "tx-udp_tnl-csum-segmentation": true, "tx-gre-segmentation": true, "tx-esp-segmentation": true, "tx-gso-list": true, "tx-vlan-stag-hw-insert": true, "tx-udp_tnl-segmentation": true, "tx-ipxip6-segmentation": true, "rx-gro-list": false, "rx-udp-gro-forwarding": false}), coalesce: None, ring: None }), controller_type: None, up_priority: 0, routes: None, rules: None, _other: {} }, bridge: Some(LinuxBridgeConfig { options: Some(LinuxBridgeOptions { gc_timer: Some(9914), group_addr: Some("01:80:C2:00:00:00"), group_forward_mask: Some(0), group_fwd_mask: Some(0), hash_max: Some(4096), hello_timer: Some(0), mac_ageing_time: Some(300), multicast_last_member_count: Some(2), multicast_last_member_interval: Some(100), multicast_membership_interval: Some(26000), multicast_querier: Some(false), multicast_querier_interval: Some(25500), multicast_query_interval: Some(12500), multicast_query_response_interval: Some(1000), multicast_query_use_ifaddr: Some(false), multicast_router: Some(Auto), multicast_snooping: Some(true), multicast_startup_query_count: Some(2), multicast_startup_query_interval: Some(3125), stp: Some(LinuxBridgeStpOptions { enabled: Some(false), forward_delay: Some(15), hello_time: Some(2), max_age: Some(20), priority: Some(32768) }) }), port: Some([]) }) })
[2022-06-08T02:54:04Z INFO  nmstate::net_state] Rollbacked to checkpoint /org/freedesktop/NetworkManager/Checkpoint/124
NmstateError: VerificationError: Absent/Down interface br0/linux-bridge still found as LinuxBridge(LinuxBridgeInterface { base: BaseInterface { name: "br0", description: None, prop_list: ["name", "state", "iface_type", "ipv4", "ipv6", "mac_address", "controller", "mtu", "accept_all_mac_addresses", "ethtool"], iface_type: LinuxBridge, state: Down, mac_address: Some("00:00:00:00:00:00"), permanent_mac_address: None, mtu: Some(1500), ipv4: Some(InterfaceIpv4 { enabled: false, prop_list: ["enabled"], dhcp: None, dhcp_client_id: None, addresses: None, dns: None, auto_dns: None, auto_gateway: None, auto_routes: None, auto_table_id: None }), ipv6: Some(InterfaceIpv6 { enabled: false, prop_list: ["enabled"], dhcp: None, dhcp_duid: None, autoconf: None, addr_gen_mode: None, addresses: None, dns: None, auto_dns: None, auto_gateway: None, auto_routes: None, auto_table_id: None }), controller: None, accept_all_mac_addresses: Some(false), copy_mac_from: None, ovsdb: None, ieee8021x: None, lldp: None, ethtool: Some(EthtoolConfig { pause: None, feature: Some({"tx-vlan-hw-insert": true, "tx-tcp-ecn-segmentation": true, "tx-sctp-segmentation": true, "tx-tcp-mangleid-segmentation": true, "tx-nocache-copy": false, "rx-gro": true, "tx-generic-segmentation": true, "tx-tunnel-remcsum-segmentation": true, "highdma": true, "tx-checksum-ip-generic": true, "tx-gso-robust": true, "tx-scatter-gather-fraglist": true, "tx-tcp6-segmentation": true, "tx-tcp-segmentation": true, "tx-gso-partial": true, "tx-udp-segmentation": true, "tx-gre-csum-segmentation": true, "tx-ipxip4-segmentation": true, "tx-fcoe-segmentation": true, "tx-udp_tnl-csum-segmentation": true, "tx-gre-segmentation": true, "tx-esp-segmentation": true, "tx-gso-list": true, "tx-vlan-stag-hw-insert": true, "tx-udp_tnl-segmentation": true, "tx-ipxip6-segmentation": true, "rx-gro-list": false, "rx-udp-gro-forwarding": false}), coalesce: None, ring: None }), controller_type: None, up_priority: 0, routes: None, rules: None, _other: {} }, bridge: Some(LinuxBridgeConfig { options: Some(LinuxBridgeOptions { gc_timer: Some(9914), group_addr: Some("01:80:C2:00:00:00"), group_forward_mask: Some(0), group_fwd_mask: Some(0), hash_max: Some(4096), hello_timer: Some(0), mac_ageing_time: Some(300), multicast_last_member_count: Some(2), multicast_last_member_interval: Some(100), multicast_membership_interval: Some(26000), multicast_querier: Some(false), multicast_querier_interval: Some(25500), multicast_query_interval: Some(12500), multicast_query_response_interval: Some(1000), multicast_query_use_ifaddr: Some(false), multicast_router: Some(Auto), multicast_snooping: Some(true), multicast_startup_query_count: Some(2), multicast_startup_query_interval: Some(3125), stp: Some(LinuxBridgeStpOptions { enabled: Some(false), forward_delay: Some(15), hello_time: Some(2), max_age: Some(20), priority: Some(32768) }) }), port: Some([]) }) })

Expected results:
No failure

Additional info:
In this case, nmstate-rust is able to recognize "type: Tun", but even removing br0 and tap0 in one transaction failed too.

Comment 1 Gris Ge 2022-07-20 09:24:01 UTC
Hi Mingyu,

We don't support TUN interface, hence it is reasonable to fail the deletion of this bridge when it has unmanaged interface attached.

Can you check what does nmstate did on RHEL 8.6 ?

Comment 2 Gris Ge 2022-11-17 14:04:10 UTC
Issue fixed on nmstate-2.2.1-1.el9

Comment 6 Mingyu Shi 2022-12-27 05:00:13 UTC
Verified with:
nmstate-1.4.0-1.el8.x86_64
nispor-1.2.7-1.el8.x86_64
NetworkManager-1.40.4-1.el8.x86_64

Comment 7 Mingyu Shi 2022-12-27 05:26:36 UTC
Verified with:
nmstate-2.2.2-2.el9.x86_64
nispor-1.2.9-1.el9.x86_64
NetworkManager-1.41.7-2.el9.x86_64

Comment 9 errata-xmlrpc 2023-05-09 07:31:01 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (nmstate bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:2190


Note You need to log in before you can comment on or make changes to this bug.