Bug 1992415
| Summary: | linux bridge mtu changed to 1499 after rollback on NmstateVerificationError | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Mingyu Shi <mshi> |
| Component: | nmstate | Assignee: | Gris Ge <fge> |
| Status: | CLOSED ERRATA | QA Contact: | Mingyu Shi <mshi> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 8.5 | CC: | ferferna, jiji, jishi, network-qe, till |
| Target Milestone: | beta | Keywords: | 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: | |||
This is caused by https://bugzilla.redhat.com/show_bug.cgi?id=1973536 Let's wait NM fix their problem. Hi Mingyu, This has been fixed by NetworkManager-1.34.0-0.1.el8 . Please try again. 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 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 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 |
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: