Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1992415

Summary: linux bridge mtu changed to 1499 after rollback on NmstateVerificationError
Product: Red Hat Enterprise Linux 8 Reporter: Mingyu Shi <mshi>
Component: nmstateAssignee: Gris Ge <fge>
Status: CLOSED ERRATA QA Contact: Mingyu Shi <mshi>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.5CC: ferferna, jiji, jishi, network-qe, till
Target Milestone: betaKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: nmstate-1.2.0-0.1.alpha1.el8 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-10 13:34:46 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:

Description Mingyu Shi 2021-08-11 03:51:52 UTC
Description of problem:
As the Summary.
This is reproducible only when you explicitly set key "mtu:" in the desired state in step 2 of the reproducer below. If you don't mention "mtu:", it won't get changed after rollback.

Version-Release number of selected component (if applicable):
nmstate-1.1.0-3.el8.noarch
nispor-1.1.1-1.el8.x86_64
NetworkManager-1.32.4-1.el8.x86_64

How reproducible:
100%

Steps to Reproduce:
#step 1
echo "
interfaces:
- name: br0
  state: up
  type: linux-bridge
" | nmstatectl apply -

#step 2
echo "
interfaces:
- name: br0
  state: up
  type: linux-bridge
  ipv4:
    enabled: true
  mtu: 1500
" | nmstatectl apply -
# failed and rollback as ipv4 is not set

#step 3
nmstatectl show br0 | grep mtu

Actual results:
mtu is 1499 after rollback

Expected results:
stay unchanged

Additional info:

Comment 1 Gris Ge 2021-08-17 06:13:27 UTC
This is caused by https://bugzilla.redhat.com/show_bug.cgi?id=1973536

Let's wait NM fix their problem.

Comment 2 Gris Ge 2021-10-12 06:48:57 UTC
Hi Mingyu,

This has been fixed by NetworkManager-1.34.0-0.1.el8 . Please try again.

Comment 3 Mingyu Shi 2021-10-12 14:46:14 UTC
Pretested with versions:
nmstate-1.2.0-0.1.alpha1.el8.noarch
nispor-1.1.1-1.el8.x86_64
NetworkManager-1.34.0-0.2.el8.x86_64


[22:34:14@dell-per740-79 /etc/yum.repos.d]0# #step 1
[22:38:48@dell-per740-79 /etc/yum.repos.d]0# echo "
> interfaces:
> - name: br0
>   state: up
>   type: linux-bridge
> " | nmstatectl apply -
Desired state applied: 
---
interfaces:
- name: br0
  type: linux-bridge
  state: up
[22:38:49@dell-per740-79 /etc/yum.repos.d]0# #step 2
[22:39:04@dell-per740-79 /etc/yum.repos.d]0# echo "
> interfaces:
> - name: br0
>   state: up
>   type: linux-bridge
>   ipv4:
>     enabled: true
>   mtu: 1500
> " | nmstatectl apply -
Traceback (most recent call last):
  File "/usr/bin/nmstatectl", line 11, in <module>
    load_entry_point('nmstate==1.2.0', 'console_scripts', 'nmstatectl')()
  File "/usr/lib/python3.6/site-packages/nmstatectl/nmstatectl.py", line 74, in main
    return args.func(args)
  File "/usr/lib/python3.6/site-packages/nmstatectl/nmstatectl.py", line 355, in apply
    args.save_to_disk,
  File "/usr/lib/python3.6/site-packages/nmstatectl/nmstatectl.py", line 419, in apply_state
    save_to_disk=save_to_disk,
  File "/usr/lib/python3.6/site-packages/libnmstate/netapplier.py", line 90, in apply
    _apply_ifaces_state(plugins, net_state, verify_change, save_to_disk)
  File "/usr/lib/python3.6/site-packages/libnmstate/netapplier.py", line 141, in _apply_ifaces_state
    _verify_change(plugins, net_state)
  File "/usr/lib/python3.6/site-packages/libnmstate/netapplier.py", line 156, in _verify_change
    net_state.verify(current_state)
  File "/usr/lib/python3.6/site-packages/libnmstate/net_state.py", line 86, in verify
    self._ifaces.verify(current_state.get(Interface.KEY))
  File "/usr/lib/python3.6/site-packages/libnmstate/ifaces/ifaces.py", line 700, in verify
    cur_iface.state_for_verify(),
libnmstate.error.NmstateVerificationError: 
desired
=======
---
name: br0
type: linux-bridge
state: up
ipv4:
  enabled: true
mtu: 1500

current
=======
---
name: br0
type: linux-bridge
state: up
accept-all-mac-addresses: false
bridge:
  options:
    group-addr: 01:80:C2:00:00:00
    group-forward-mask: 0
    hash-max: 4096
    mac-ageing-time: 300
    multicast-last-member-count: 2
    multicast-last-member-interval: 100
    multicast-querier: false
    multicast-querier-interval: 25500
    multicast-query-interval: 12500
    multicast-query-response-interval: 1000
    multicast-query-use-ifaddr: false
    multicast-router: 1
    multicast-snooping: true
    multicast-startup-query-count: 2
    multicast-startup-query-interval: 3125
    stp:
      enabled: true
      forward-delay: 15
      hello-time: 2
      max-age: 20
      priority: 32768
  port: []
ethtool:
  feature:
    highdma: true
    rx-gro: true
    rx-gro-list: false
    rx-udp-gro-forwarding: false
    tx-checksum-ip-generic: true
    tx-esp-segmentation: true
    tx-fcoe-segmentation: true
    tx-generic-segmentation: true
    tx-gre-csum-segmentation: true
    tx-gre-segmentation: true
    tx-gso-list: true
    tx-gso-partial: true
    tx-gso-robust: true
    tx-ipxip4-segmentation: true
    tx-ipxip6-segmentation: true
    tx-nocache-copy: false
    tx-scatter-gather-fraglist: true
    tx-sctp-segmentation: true
    tx-tcp-ecn-segmentation: true
    tx-tcp-mangleid-segmentation: true
    tx-tcp-segmentation: true
    tx-tcp6-segmentation: true
    tx-tunnel-remcsum-segmentation: true
    tx-udp-segmentation: true
    tx-udp_tnl-csum-segmentation: true
    tx-udp_tnl-segmentation: true
    tx-vlan-hw-insert: true
    tx-vlan-stag-hw-insert: true
ipv4:
  enabled: false
ipv6:
  enabled: false
lldp:
  enabled: false
mac-address: 12:24:0E:5E:A3:F5
mtu: 1500

difference
==========
--- desired
+++ current
@@ -2,6 +2,66 @@
 name: br0
 type: linux-bridge
 state: up
+accept-all-mac-addresses: false
+bridge:
+  options:
+    group-addr: 01:80:C2:00:00:00
+    group-forward-mask: 0
+    hash-max: 4096
+    mac-ageing-time: 300
+    multicast-last-member-count: 2
+    multicast-last-member-interval: 100
+    multicast-querier: false
+    multicast-querier-interval: 25500
+    multicast-query-interval: 12500
+    multicast-query-response-interval: 1000
+    multicast-query-use-ifaddr: false
+    multicast-router: 1
+    multicast-snooping: true
+    multicast-startup-query-count: 2
+    multicast-startup-query-interval: 3125
+    stp:
+      enabled: true
+      forward-delay: 15
+      hello-time: 2
+      max-age: 20
+      priority: 32768
+  port: []
+ethtool:
+  feature:
+    highdma: true
+    rx-gro: true
+    rx-gro-list: false
+    rx-udp-gro-forwarding: false
+    tx-checksum-ip-generic: true
+    tx-esp-segmentation: true
+    tx-fcoe-segmentation: true
+    tx-generic-segmentation: true
+    tx-gre-csum-segmentation: true
+    tx-gre-segmentation: true
+    tx-gso-list: true
+    tx-gso-partial: true
+    tx-gso-robust: true
+    tx-ipxip4-segmentation: true
+    tx-ipxip6-segmentation: true
+    tx-nocache-copy: false
+    tx-scatter-gather-fraglist: true
+    tx-sctp-segmentation: true
+    tx-tcp-ecn-segmentation: true
+    tx-tcp-mangleid-segmentation: true
+    tx-tcp-segmentation: true
+    tx-tcp6-segmentation: true
+    tx-tunnel-remcsum-segmentation: true
+    tx-udp-segmentation: true
+    tx-udp_tnl-csum-segmentation: true
+    tx-udp_tnl-segmentation: true
+    tx-vlan-hw-insert: true
+    tx-vlan-stag-hw-insert: true
 ipv4:
-  enabled: true
+  enabled: false
+ipv6:
+  enabled: false
+lldp:
+  enabled: false
+mac-address: 12:24:0E:5E:A3:F5
 mtu: 1500
[22:44:31@dell-per740-79 /etc/yum.repos.d]0# #step 3
[22:45:13@dell-per740-79 /etc/yum.repos.d]0# nmstatectl show br0 | grep mtu
  mtu: 1500

Comment 6 Mingyu Shi 2021-11-15 07:18:57 UTC
Verified with versions:
nmstate-1.2.0-0.1.alpha1.el8.noarch
nispor-1.1.1-1.el8.x86_64
NetworkManager-1.34.0-0.3.el8.x86_64

Same with #comment3

Comment 8 errata-xmlrpc 2022-05-10 13:34:46 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/RHEA-2022:1772