Bug 2192544

Summary: Verification failure while setting IP address and MTU on DPDK bridges / interface
Product: Red Hat Enterprise Linux 9 Reporter: Karthik Sundaravel <ksundara>
Component: nmstateAssignee: Gris Ge <fge>
Status: VERIFIED --- QA Contact: Mingyu Shi <mshi>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.1CC: ferferna, jiji, jishi, network-qe, sfaye, till, vcandapp
Target Milestone: rcKeywords: Triaged, ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: nmstate-2.2.11-1.el9 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of:
: 2196434 (view as bug list) Environment:
Last Closed: 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: 2196434    
Attachments:
Description Flags
dpdk_mtu_fail.yaml none

Description Karthik Sundaravel 2023-05-02 08:36:35 UTC
Created attachment 1961618 [details]
dpdk_mtu_fail.yaml

I have attached the nmstate templates (dpdk_mtu_fail.yaml). On applying the same with --no-verify, the configuration is applied and the the IP address/MTU are set. But the same yaml is applied with --verify, the configuration fails at the verification stage and its reverted.

[root@dell-r640-oss-14 ~]# nmstatectl apply nm_dpdk_mtu_fail.yaml  --no-verify
[2023-05-02T08:15:46Z INFO  nmstate::query_apply::net_state] Created checkpoint /org/freedesktop/NetworkManager/Checkpoint/61
[2023-05-02T08:15:46Z INFO  nmstate::nm::query_apply::profile] Creating connection UUID Some("84ed59f4-1096-46af-a8b3-6c8a46556214"), ID Some("br-link1-br"), type Some("ovs-bridge") name Some("br-link1")
[2023-05-02T08:15:46Z INFO  nmstate::nm::query_apply::profile] Creating connection UUID Some("98be57a2-d427-4828-bac9-301deac30f30"), ID Some("br-link1-p-port"), type Some("ovs-port") name Some("br-link1-p")
[2023-05-02T08:15:46Z INFO  nmstate::nm::query_apply::profile] Creating connection UUID Some("fd97d1dd-a3d2-4450-8f3b-555097d487cf"), ID Some("dpdk1-port"), type Some("ovs-port") name Some("dpdk1")
[2023-05-02T08:15:46Z INFO  nmstate::nm::query_apply::profile] Creating connection UUID Some("26d81440-7a45-4437-b408-052ee8802f26"), ID Some("br-link1-p-if"), type Some("ovs-interface") name Some("br-link1-p")
[2023-05-02T08:15:46Z INFO  nmstate::nm::query_apply::profile] Creating connection UUID Some("09b06874-e62c-481f-b850-1f14f889b22c"), ID Some("dpdk1-if"), type Some("ovs-interface") name Some("dpdk1")
[2023-05-02T08:15:46Z INFO  nmstate::nm::query_apply::profile] Activating connection 84ed59f4-1096-46af-a8b3-6c8a46556214: br-link1/ovs-bridge
[2023-05-02T08:15:46Z INFO  nmstate::nm::query_apply::profile] Activating connection 98be57a2-d427-4828-bac9-301deac30f30: br-link1-p/ovs-port
[2023-05-02T08:15:46Z INFO  nmstate::nm::query_apply::profile] Activating connection fd97d1dd-a3d2-4450-8f3b-555097d487cf: dpdk1/ovs-port
[2023-05-02T08:15:46Z INFO  nmstate::nm::query_apply::profile] Activating connection 26d81440-7a45-4437-b408-052ee8802f26: br-link1-p/ovs-interface
[2023-05-02T08:15:46Z INFO  nmstate::nm::query_apply::profile] Activating connection 09b06874-e62c-481f-b850-1f14f889b22c: dpdk1/ovs-interface
[2023-05-02T08:15:46Z INFO  nmstate::query_apply::net_state] Destroyed checkpoint /org/freedesktop/NetworkManager/Checkpoint/61
dns-resolver: {}
route-rules: {}
routes: {}
interfaces:
- name: br-link1
  type: ovs-bridge
  state: up
  ovs-db:
    external_ids: {}
    other_config: {}
  bridge:
    options:
      stp: false
      rstp: false
      mcast-snooping-enable: false
      fail-mode: standalone
      datapath: netdev
    port:
    - name: dpdk1
    - name: br-link1-p
- name: br-link1-p
  type: ovs-interface
  state: up
  mtu: 9000
  ipv4:
    enabled: true
    dhcp: false
    address:
    - ip: 152.20.0.55
      prefix-length: 24
  ipv6:
    enabled: false
    dhcp: false
    autoconf: false
- name: dpdk1
  type: ovs-interface
  state: up
  mtu: 9000
  ipv4:
    enabled: false
    dhcp: false
  ipv6:
    enabled: false
    dhcp: false
    autoconf: false
  ovs-db:
    external_ids: {}
    other_config: {}
  dpdk:
    devargs: 0000:19:00.3
ovs-db: {}

[root@dell-r640-oss-14 ~]# ovs-vsctl list interface
_uuid               : 7264ae50-b846-45bc-8cb7-0f4d0d60fe07
admin_state         : up
bfd                 : {}
bfd_status          : {}
cfm_fault           : []
cfm_fault_status    : []
cfm_flap_count      : []
cfm_health          : []
cfm_mpid            : []
cfm_remote_mpids    : []
cfm_remote_opstate  : []
duplex              : full
error               : []
external_ids        : {NM.connection.uuid="26d81440-7a45-4437-b408-052ee8802f26"}
ifindex             : 101
ingress_policing_burst: 0
ingress_policing_kpkts_burst: 0
ingress_policing_kpkts_rate: 0
ingress_policing_rate: 0
lacp_current        : []
link_resets         : 3
link_speed          : 10000000
link_state          : up
lldp                : {}
mac                 : []
mac_in_use          : "96:cf:44:f1:64:c6"
mtu                 : 9000
mtu_request         : 9000
name                : br-link1-p
ofport              : 2
ofport_request      : []
options             : {}
other_config        : {}
statistics          : {collisions=0, rx_bytes=706, rx_crc_err=0, rx_dropped=0, rx_errors=0, rx_frame_err=0, rx_missed_errors=0, rx_multicast_packets=0, rx_over_err=0, rx_packets=7, tx_bytes=2940, tx_dropped=0, tx_errors=0, tx_packets=22}
status              : {driver_name=tun, driver_version="1.6", firmware_version=""}
type                : internal

_uuid               : fb073406-d3d0-40c5-b7ac-7f2d9017d787
admin_state         : up
bfd                 : {}
bfd_status          : {}
cfm_fault           : []
cfm_fault_status    : []
cfm_flap_count      : []
cfm_health          : []
cfm_mpid            : []
cfm_remote_mpids    : []
cfm_remote_opstate  : []
duplex              : full
error               : []
external_ids        : {NM.connection.uuid="09b06874-e62c-481f-b850-1f14f889b22c"}
ifindex             : 4575007
ingress_policing_burst: 0
ingress_policing_kpkts_burst: 0
ingress_policing_kpkts_rate: 0
ingress_policing_rate: 0
lacp_current        : []
link_resets         : 0
link_speed          : 10000000000
link_state          : up
lldp                : {}
mac                 : []
mac_in_use          : "e4:43:4b:5c:96:83"
mtu                 : 9000
mtu_request         : 9000
name                : dpdk1
ofport              : 1
ofport_request      : []
options             : {dpdk-devargs="0000:19:00.3"}
other_config        : {}
statistics          : {mac_local_errors=3, mac_remote_errors=1, ovs_rx_qos_drops=0, ovs_tx_failure_drops=0, ovs_tx_invalid_hwol_drops=0, ovs_tx_mtu_exceeded_drops=0, ovs_tx_qos_drops=0, rx_1024_to_1522_packets=0, rx_128_to_255_packets=88, rx_1523_to_max_packets=0, rx_1_to_64_packets=0, rx_256_to_511_packets=20, rx_512_to_1023_packets=0, rx_65_to_127_packets=21, rx_broadcast_packets=15, rx_bytes=20629, rx_crc_errors=0, rx_dropped=0, rx_errors=0, rx_fragmented_errors=0, rx_illegal_byte_errors=0, rx_jabber_errors=0, rx_length_errors=0, rx_mac_short_dropped=0, rx_mbuf_allocation_errors=0, rx_missed_errors=0, rx_multicast_packets=114, rx_oversize_errors=0, rx_packets=129, rx_undersized_errors=0, tx_1024_to_1522_packets=0, tx_128_to_255_packets=39, tx_1523_to_max_packets=0, tx_1_to_64_packets=29, tx_256_to_511_packets=0, tx_512_to_1023_packets=0, tx_65_to_127_packets=0, tx_broadcast_packets=18, tx_bytes=7038, tx_dropped=0, tx_errors=0, tx_link_down_dropped=0, tx_multicast_packets=50, tx_packets=68}
status              : {driver_name=net_i40e, if_descr="DPDK 21.11.2 net_i40e", if_type="6", link_speed="10Gbps", max_hash_mac_addrs="0", max_mac_addrs="64", max_rx_pktlen="9018", max_rx_queues="192", max_tx_queues="192", max_vfs="0", max_vmdq_pools="32", min_rx_bufsize="1024", numa_id="0", pci-device_id="0x1572", pci-vendor_id="0x8086", port_no="0"}
type                : dpdk


[root@dell-r640-oss-14 ~]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether e4:43:4b:5c:96:80 brd ff:ff:ff:ff:ff:ff
    altname enp25s0f0
    inet 10.37.146.196/23 brd 10.37.147.255 scope global dynamic noprefixroute eno1
       valid_lft 23808sec preferred_lft 23808sec
3: eno2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether e4:43:4b:5c:96:81 brd ff:ff:ff:ff:ff:ff
    altname enp25s0f1
6: enp59s0f0np0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 98:03:9b:7f:9e:48 brd ff:ff:ff:ff:ff:ff
7: enp59s0f1np1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 98:03:9b:7f:9e:49 brd ff:ff:ff:ff:ff:ff
27: eno3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether e4:43:4b:5c:96:82 brd ff:ff:ff:ff:ff:ff
    altname enp25s0f2
100: ovs-netdev: <BROADCAST,MULTICAST,PROMISC> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 6e:21:ca:b8:4d:2c brd ff:ff:ff:ff:ff:ff
101: br-link1-p: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 9000 qdisc fq_codel state UNKNOWN group default qlen 1000
    link/ether 96:cf:44:f1:64:c6 brd ff:ff:ff:ff:ff:ff
    inet 152.20.0.55/24 brd 152.20.0.255 scope global noprefixroute br-link1-p
       valid_lft forever preferred_lft forever
--------------------------------------------------

The issue happens when we run the same yaml without --no-verify

[root@dell-r640-oss-14 ~]# nmstatectl apply nm_dpdk_mtu_fail.yaml 
[2023-05-02T08:16:27Z INFO  nmstate::nispor::base_iface] Got unsupported interface type Tun: br-link1-p, ignoring
[2023-05-02T08:16:27Z INFO  nmstate::nispor::show] Got unsupported interface br-link1-p type Tun
[2023-05-02T08:16:27Z INFO  nmstate::nispor::base_iface] Got unsupported interface type Tun: ovs-netdev, ignoring
[2023-05-02T08:16:27Z INFO  nmstate::nispor::show] Got unsupported interface ovs-netdev type Tun
[2023-05-02T08:16:27Z INFO  nmstate::nm::show] Got unsupported interface type tun: br-link1-p, ignoring
[2023-05-02T08:16:27Z INFO  nmstate::query_apply::net_state] Created checkpoint /org/freedesktop/NetworkManager/Checkpoint/62
[2023-05-02T08:16:27Z INFO  nmstate::nm::query_apply::profile] Modifying connection UUID Some("84ed59f4-1096-46af-a8b3-6c8a46556214"), ID Some("br-link1-br"), type Some("ovs-bridge") name Some("br-link1")
[2023-05-02T08:16:27Z INFO  nmstate::nm::query_apply::profile] Modifying connection UUID Some("98be57a2-d427-4828-bac9-301deac30f30"), ID Some("br-link1-p-port"), type Some("ovs-port") name Some("br-link1-p")
[2023-05-02T08:16:27Z INFO  nmstate::nm::query_apply::profile] Modifying connection UUID Some("fd97d1dd-a3d2-4450-8f3b-555097d487cf"), ID Some("dpdk1-port"), type Some("ovs-port") name Some("dpdk1")
[2023-05-02T08:16:27Z INFO  nmstate::nm::query_apply::profile] Modifying connection UUID Some("26d81440-7a45-4437-b408-052ee8802f26"), ID Some("br-link1-p-if"), type Some("ovs-interface") name Some("br-link1-p")
[2023-05-02T08:16:27Z INFO  nmstate::nm::query_apply::profile] Modifying connection UUID Some("09b06874-e62c-481f-b850-1f14f889b22c"), ID Some("dpdk1-if"), type Some("ovs-interface") name Some("dpdk1")
[2023-05-02T08:16:27Z INFO  nmstate::nm::query_apply::profile] Activating connection 84ed59f4-1096-46af-a8b3-6c8a46556214: br-link1/ovs-bridge
[2023-05-02T08:16:27Z INFO  nmstate::nm::query_apply::profile] Activating connection 98be57a2-d427-4828-bac9-301deac30f30: br-link1-p/ovs-port
[2023-05-02T08:16:27Z INFO  nmstate::nm::query_apply::profile] Activating connection fd97d1dd-a3d2-4450-8f3b-555097d487cf: dpdk1/ovs-port
[2023-05-02T08:16:27Z INFO  nmstate::nm::query_apply::profile] Reapplying connection 26d81440-7a45-4437-b408-052ee8802f26: br-link1-p/ovs-interface
[2023-05-02T08:16:27Z INFO  nmstate::nm::query_apply::profile] Reapplying connection 09b06874-e62c-481f-b850-1f14f889b22c: dpdk1/ovs-interface
[2023-05-02T08:16:27Z INFO  nmstate::nispor::base_iface] Got unsupported interface type Tun: ovs-netdev, ignoring
[2023-05-02T08:16:27Z INFO  nmstate::nispor::show] Got unsupported interface ovs-netdev type Tun
[2023-05-02T08:16:27Z INFO  nmstate::nispor::base_iface] Got unsupported interface type Tun: br-link1-p, ignoring
[2023-05-02T08:16:27Z INFO  nmstate::nispor::show] Got unsupported interface br-link1-p type Tun
[2023-05-02T08:16:27Z INFO  nmstate::query_apply::net_state] Retrying on: VerificationError: Verification failure: br-link1.interface.bridge desire '{"options":{"stp":false,"rstp":false,"mcast-snooping-enable":false,"fail-mode":"standalone","datapath":"netdev"},"port":[{"name":"br-link1-p"},{"name":"dpdk1"}]}', current 'null'
[2023-05-02T08:16:28Z INFO  nmstate::nispor::base_iface] Got unsupported interface type Tun: ovs-netdev, ignoring
[2023-05-02T08:16:28Z INFO  nmstate::nispor::show] Got unsupported interface ovs-netdev type Tun
[2023-05-02T08:16:28Z INFO  nmstate::nispor::base_iface] Got unsupported interface type Tun: br-link1-p, ignoring
[2023-05-02T08:16:28Z INFO  nmstate::nispor::show] Got unsupported interface br-link1-p type Tun
[2023-05-02T08:16:28Z INFO  nmstate::nm::show] Got unsupported interface type tun: br-link1-p, ignoring
[2023-05-02T08:16:28Z INFO  nmstate::query_apply::net_state] Retrying on: VerificationError: Verification failure: br-link1-p.interface.mtu desire '9000', current 'null'
[2023-05-02T08:16:29Z INFO  nmstate::nispor::base_iface] Got unsupported interface type Tun: br-link1-p, ignoring
[2023-05-02T08:16:29Z INFO  nmstate::nispor::show] Got unsupported interface br-link1-p type Tun
[2023-05-02T08:16:29Z INFO  nmstate::nispor::base_iface] Got unsupported interface type Tun: ovs-netdev, ignoring
[2023-05-02T08:16:29Z INFO  nmstate::nispor::show] Got unsupported interface ovs-netdev type Tun
[2023-05-02T08:16:29Z INFO  nmstate::nm::show] Got unsupported interface type tun: br-link1-p, ignoring
[2023-05-02T08:16:29Z INFO  nmstate::query_apply::net_state] Retrying on: VerificationError: Verification failure: br-link1-p.interface.mtu desire '9000', current 'null'
[2023-05-02T08:16:30Z INFO  nmstate::nispor::base_iface] Got unsupported interface type Tun: ovs-netdev, ignoring
[2023-05-02T08:16:30Z INFO  nmstate::nispor::show] Got unsupported interface ovs-netdev type Tun
[2023-05-02T08:16:30Z INFO  nmstate::nispor::base_iface] Got unsupported interface type Tun: br-link1-p, ignoring
[2023-05-02T08:16:30Z INFO  nmstate::nispor::show] Got unsupported interface br-link1-p type Tun
[2023-05-02T08:16:30Z INFO  nmstate::nm::show] Got unsupported interface type tun: br-link1-p, ignoring
[2023-05-02T08:16:30Z INFO  nmstate::query_apply::net_state] Retrying on: VerificationError: Verification failure: br-link1-p.interface.mtu desire '9000', current 'null'
[2023-05-02T08:16:31Z INFO  nmstate::nispor::base_iface] Got unsupported interface type Tun: ovs-netdev, ignoring
[2023-05-02T08:16:31Z INFO  nmstate::nispor::show] Got unsupported interface ovs-netdev type Tun
[2023-05-02T08:16:31Z INFO  nmstate::nispor::base_iface] Got unsupported interface type Tun: br-link1-p, ignoring
[2023-05-02T08:16:31Z INFO  nmstate::nispor::show] Got unsupported interface br-link1-p type Tun
[2023-05-02T08:16:31Z INFO  nmstate::nm::show] Got unsupported interface type tun: br-link1-p, ignoring
[2023-05-02T08:16:31Z INFO  nmstate::query_apply::net_state] Retrying on: VerificationError: Verification failure: br-link1-p.interface.mtu desire '9000', current 'null'
[2023-05-02T08:16:33Z INFO  nmstate::nm::query_apply::profile] Modifying connection UUID Some("84ed59f4-1096-46af-a8b3-6c8a46556214"), ID Some("br-link1-br"), type Some("ovs-bridge") name Some("br-link1")
[2023-05-02T08:16:33Z INFO  nmstate::nm::query_apply::profile] Modifying connection UUID Some("98be57a2-d427-4828-bac9-301deac30f30"), ID Some("br-link1-p-port"), type Some("ovs-port") name Some("br-link1-p")
[2023-05-02T08:16:33Z INFO  nmstate::nm::query_apply::profile] Modifying connection UUID Some("fd97d1dd-a3d2-4450-8f3b-555097d487cf"), ID Some("dpdk1-port"), type Some("ovs-port") name Some("dpdk1")
[2023-05-02T08:16:33Z INFO  nmstate::nm::query_apply::profile] Modifying connection UUID Some("26d81440-7a45-4437-b408-052ee8802f26"), ID Some("br-link1-p-if"), type Some("ovs-interface") name Some("br-link1-p")
[2023-05-02T08:16:33Z INFO  nmstate::nm::query_apply::profile] Modifying connection UUID Some("09b06874-e62c-481f-b850-1f14f889b22c"), ID Some("dpdk1-if"), type Some("ovs-interface") name Some("dpdk1")
[2023-05-02T08:16:33Z INFO  nmstate::nm::query_apply::profile] Activating connection 84ed59f4-1096-46af-a8b3-6c8a46556214: br-link1/ovs-bridge
[2023-05-02T08:16:33Z INFO  nmstate::nm::query_apply::profile] Activating connection 98be57a2-d427-4828-bac9-301deac30f30: br-link1-p/ovs-port
[2023-05-02T08:16:33Z INFO  nmstate::nm::query_apply::profile] Activating connection fd97d1dd-a3d2-4450-8f3b-555097d487cf: dpdk1/ovs-port
[2023-05-02T08:16:33Z INFO  nmstate::nm::query_apply::profile] Reapplying connection 26d81440-7a45-4437-b408-052ee8802f26: br-link1-p/ovs-interface
[2023-05-02T08:16:33Z INFO  nmstate::nm::query_apply::profile] Reapplying connection 09b06874-e62c-481f-b850-1f14f889b22c: dpdk1/ovs-interface
[2023-05-02T08:16:33Z INFO  nmstate::nispor::base_iface] Got unsupported interface type Tun: br-link1-p, ignoring
[2023-05-02T08:16:33Z INFO  nmstate::nispor::show] Got unsupported interface br-link1-p type Tun
[2023-05-02T08:16:33Z INFO  nmstate::nispor::base_iface] Got unsupported interface type Tun: ovs-netdev, ignoring
[2023-05-02T08:16:33Z INFO  nmstate::nispor::show] Got unsupported interface ovs-netdev type Tun
[2023-05-02T08:16:33Z INFO  nmstate::nm::show] Got unsupported interface type tun: br-link1-p, ignoring
[2023-05-02T08:16:33Z INFO  nmstate::query_apply::net_state] Retrying on: VerificationError: Verification failure: br-link1.interface.bridge.port desire '[{"name":"br-link1-p"},{"name":"dpdk1"}]', current '[{"name":"dpdk1"}]'
[2023-05-02T08:16:34Z INFO  nmstate::nispor::base_iface] Got unsupported interface type Tun: ovs-netdev, ignoring
[2023-05-02T08:16:34Z INFO  nmstate::nispor::show] Got unsupported interface ovs-netdev type Tun
[2023-05-02T08:16:34Z INFO  nmstate::nispor::base_iface] Got unsupported interface type Tun: br-link1-p, ignoring
[2023-05-02T08:16:34Z INFO  nmstate::nispor::show] Got unsupported interface br-link1-p type Tun
[2023-05-02T08:16:34Z INFO  nmstate::nm::show] Got unsupported interface type tun: br-link1-p, ignoring
[2023-05-02T08:16:34Z INFO  nmstate::query_apply::net_state] Retrying on: VerificationError: Verification failure: br-link1-p.interface.mtu desire '9000', current 'null'
[2023-05-02T08:16:35Z INFO  nmstate::nispor::base_iface] Got unsupported interface type Tun: br-link1-p, ignoring
[2023-05-02T08:16:35Z INFO  nmstate::nispor::show] Got unsupported interface br-link1-p type Tun
[2023-05-02T08:16:35Z INFO  nmstate::nispor::base_iface] Got unsupported interface type Tun: ovs-netdev, ignoring
[2023-05-02T08:16:35Z INFO  nmstate::nispor::show] Got unsupported interface ovs-netdev type Tun
[2023-05-02T08:16:35Z INFO  nmstate::nm::show] Got unsupported interface type tun: br-link1-p, ignoring
[2023-05-02T08:16:35Z INFO  nmstate::query_apply::net_state] Retrying on: VerificationError: Verification failure: br-link1-p.interface.mtu desire '9000', current 'null'
[2023-05-02T08:16:36Z INFO  nmstate::nispor::base_iface] Got unsupported interface type Tun: br-link1-p, ignoring
[2023-05-02T08:16:36Z INFO  nmstate::nispor::show] Got unsupported interface br-link1-p type Tun
[2023-05-02T08:16:36Z INFO  nmstate::nispor::base_iface] Got unsupported interface type Tun: ovs-netdev, ignoring
[2023-05-02T08:16:36Z INFO  nmstate::nispor::show] Got unsupported interface ovs-netdev type Tun
[2023-05-02T08:16:37Z INFO  nmstate::nm::show] Got unsupported interface type tun: br-link1-p, ignoring
[2023-05-02T08:16:37Z INFO  nmstate::query_apply::net_state] Retrying on: VerificationError: Verification failure: br-link1-p.interface.mtu desire '9000', current 'null'
[2023-05-02T08:16:38Z INFO  nmstate::nispor::base_iface] Got unsupported interface type Tun: br-link1-p, ignoring
[2023-05-02T08:16:38Z INFO  nmstate::nispor::show] Got unsupported interface br-link1-p type Tun
[2023-05-02T08:16:38Z INFO  nmstate::nispor::base_iface] Got unsupported interface type Tun: ovs-netdev, ignoring
[2023-05-02T08:16:38Z INFO  nmstate::nispor::show] Got unsupported interface ovs-netdev type Tun
[2023-05-02T08:16:38Z INFO  nmstate::nm::show] Got unsupported interface type tun: br-link1-p, ignoring
[2023-05-02T08:16:38Z INFO  nmstate::query_apply::net_state] Rollbacked to checkpoint /org/freedesktop/NetworkManager/Checkpoint/62
NmstateError: VerificationError: Verification failure: br-link1-p.interface.mtu desire '9000', current 'null'


Version-Release number of selected component (if applicable):

[root@dell-r640-oss-14 ~]# nmstatectl --version
nmstatectl 2.2.9
[root@dell-r640-oss-14 ~]# nmcli -v
nmcli tool, version 1.43.1-31667.copr.8e17e0c0bd.el9

Comment 1 Gris Ge 2023-05-04 10:38:48 UTC
The root cause here is when using `datapath: netdev` in OVS, the ovs internal interface will be based on `tun` interface. Nmstate should merge information on `tun` interface in kernel and `ovs-interface` interface in OVS daemon userspace.

Comment 2 Gris Ge 2023-05-04 10:39:45 UTC
To reproduce this problem, simply apply this state:

```yml
---
interfaces:
- name: ovs0
  type: ovs-interface
  ipv4:
    enabled: true
    address:
      - ip: 192.168.9.9
        prefix-length: 24
- name: br0
  type: ovs-bridge
  state: up
  bridge:
    options:
      datapath: "netdev"
    port:
    - name: ovs0
    - name: ovs1
ovs-db:
  other_config:
    dpdk-init: false
```

Comment 3 Gris Ge 2023-05-05 08:48:32 UTC
Patch send to upstream: https://github.com/nmstate/nmstate/pull/2336

Comment 4 Gris Ge 2023-05-05 08:58:37 UTC
Scratch build is https://people.redhat.com/fge/BZ_2192544/