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 1873214

Summary: Cannot change bridge multicast-router
Product: Red Hat Enterprise Linux 8 Reporter: Mingyu Shi <mshi>
Component: nmstateAssignee: Gris Ge <fge>
Status: CLOSED DUPLICATE QA Contact: Mingyu Shi <mshi>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.3CC: ferferna, jiji, jishi, network-qe, till
Target Milestone: rcKeywords: Triaged
Target Release: 8.3Flags: 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: 2020-12-18 09:07:03 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 2020-08-27 15:58:14 UTC
Description of problem:
Cannot change bridge multicast-router value, the legal values are 0,1,2. In nmstate by default it is 1, but cannot change it to 0 and 2, meanwhile it is changeable in kernel. 

Version-Release number of selected component (if applicable):
nmstate-0.3.4-12.el8.noarch
NetworkManager-1.26.0-6.el8.x86_64
DISTRO=RHEL-8.3.0-20200824.n.0
Linux sun-x5-2l-1.gsslab.rdu2.redhat.com 4.18.0-234.el8.x86_64 #1 SMP Thu Aug 20 10:25:32 EDT 2020 x86_64 x86_64 x86_64 GNU/Linux

How reproducible:
100%

Steps to Reproduce:
cat << EOF > br0-basic.yaml
interfaces:
- name: br0
  type: linux-bridge
  state: up
  bridge:
    port:
    - name: dummy0
- name: dummy0
  state: up
  type: dummy
EOF

nmstatectl set br0-basic.yaml

cat << EOF > br0-mcast_router.yaml
interfaces:
- name: br0
  type: linux-bridge
  state: up
  bridge:
    options:
      multicast-router: 2 # or 0
EOF

nmstatectl set br0-mcast_router.yaml

Actual results:
Failed

Expected results:
No failure

Additional info:
[23:57:16@sun-x5-2l-1 ~]0# nmstatectl edit br0
Applying the following state: 
---
interfaces:
- name: br0
  type: linux-bridge
  state: up
  bridge:
    options:
      multicast-router: 2
2020-08-27 23:57:38,803 root         DEBUG    Async action: Create checkpoint started
2020-08-27 23:57:38,805 root         DEBUG    Checkpoint None created for all devices
2020-08-27 23:57:38,806 root         DEBUG    Async action: Create checkpoint finished
2020-08-27 23:57:38,807 root         DEBUG    Async action: Update profile: br0 started
2020-08-27 23:57:38,810 root         DEBUG    Async action: Update profile: br0 finished
2020-08-27 23:57:38,810 root         DEBUG    Async action: Reapply device config: br0 started
2020-08-27 23:57:38,812 root         DEBUG    Async action: Reapply device config: br0 finished
2020-08-27 23:57:43,945 root         DEBUG    Async action: Rollback to checkpoint /org/freedesktop/NetworkManager/Checkpoint/128 started
2020-08-27 23:57:43,949 root         DEBUG    Checkpoint /org/freedesktop/NetworkManager/Checkpoint/128 rollback executed
2020-08-27 23:57:43,950 root         DEBUG    Interface enp0s29u1u8c2 rollback succeeded
2020-08-27 23:57:43,950 root         DEBUG    Interface dummy0 rollback succeeded
2020-08-27 23:57:43,950 root         DEBUG    Interface eno1 rollback succeeded
2020-08-27 23:57:43,950 root         DEBUG    Interface lo rollback succeeded
2020-08-27 23:57:43,950 root         DEBUG    Interface eno3 rollback succeeded
2020-08-27 23:57:43,950 root         DEBUG    Interface eno4 rollback succeeded
2020-08-27 23:57:43,950 root         DEBUG    Async action: Waiting for rolling back br0 started
2020-08-27 23:57:43,951 root         DEBUG    Interface br0 rollback succeeded
2020-08-27 23:57:43,951 root         DEBUG    Interface eno2 rollback succeeded
2020-08-27 23:57:43,951 root         DEBUG    Async action: Rollback to checkpoint /org/freedesktop/NetworkManager/Checkpoint/128 finished
2020-08-27 23:57:43,973 root         DEBUG    Active connection of device None has been replaced
2020-08-27 23:57:43,978 root         DEBUG    Connection activation succeeded: dev=br0, con-state=<enum NM_ACTIVE_CONNECTION_STATE_ACTIVATING of type NM.ActiveConnectionState>, dev-state=<enum NM_DEVICE_STATE_IP_CONFIG of type NM.DeviceState>, state-flags=<flags NM_ACTIVATION_STATE_FLAG_IS_MASTER | NM_ACTIVATION_STATE_FLAG_LAYER2_READY | NM_ACTIVATION_STATE_FLAG_MASTER_HAS_SLAVES of type NM.ActivationStateFlags>
2020-08-27 23:57:43,978 root         DEBUG    Async action: Waiting for rolling back br0 finished
Traceback (most recent call last):
  File "/usr/bin/nmstatectl", line 11, in <module>
    load_entry_point('nmstate==0.3.4', 'console_scripts', 'nmstatectl')()
  File "/usr/lib/python3.6/site-packages/nmstatectl/nmstatectl.py", line 67, in main
    return args.func(args)
  File "/usr/lib/python3.6/site-packages/nmstatectl/nmstatectl.py", line 225, in edit
    new_state, verify_change=args.verify, save_to_disk=args.save_to_disk
  File "/usr/lib/python3.6/site-packages/libnmstate/netapplier.py", line 71, in apply
    _apply_ifaces_state(plugins, net_state, verify_change, save_to_disk)
  File "/usr/lib/python3.6/site-packages/libnmstate/netapplier.py", line 115, in _apply_ifaces_state
    _verify_change(plugins, net_state)
  File "/usr/lib/python3.6/site-packages/libnmstate/netapplier.py", line 120, in _verify_change
    net_state.verify(current_state)
  File "/usr/lib/python3.6/site-packages/libnmstate/net_state.py", line 63, in verify
    self._ifaces.verify(current_state.get(Interface.KEY))
  File "/usr/lib/python3.6/site-packages/libnmstate/ifaces/ifaces.py", line 349, in verify
    cur_iface.state_for_verify(),
libnmstate.error.NmstateVerificationError: 
desired
=======
---
name: br0
type: linux-bridge
state: up
bridge:
  options:
    multicast-router: 2

current
=======
---
name: br0
type: linux-bridge
state: up
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:
  - name: dummy0
    stp-hairpin-mode: false
    stp-path-cost: 100
    stp-priority: 32
    vlan: {}
ipv4:
  enabled: false
ipv6:
  enabled: false
lldp:
  enabled: false
mac-address: 2A:19:72:E6:6C:3B
mtu: 1500

difference
==========
--- desired
+++ current
@@ -4,4 +4,38 @@
 state: up
 bridge:
   options:
-    multicast-router: 2
+    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:
+  - name: dummy0
+    stp-hairpin-mode: false
+    stp-path-cost: 100
+    stp-priority: 32
+    vlan: {}
+ipv4:
+  enabled: false
+ipv6:
+  enabled: false
+lldp:
+  enabled: false
+mac-address: 2A:19:72:E6:6C:3B
+mtu: 1500

Comment 2 Gris Ge 2020-12-18 09:07:03 UTC
This is not supported by NetworkManager.

If you have valid use case, please reopen.


Thank you!

Comment 3 Mingyu Shi 2022-05-18 06:28:59 UTC
Changing the status as https://bugzilla.redhat.com/show_bug.cgi?id=2076590 fixed.

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