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 1966734 - nmstate fail to configure interface when using bond with fail_over_mac
Summary: nmstate fail to configure interface when using bond with fail_over_mac
Keywords:
Status: CLOSED DUPLICATE of bug 1896619
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: nmstate
Version: 8.3
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: beta
: ---
Assignee: Gris Ge
QA Contact: Mingyu Shi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-01 18:44 UTC by Michael Zamot
Modified: 2023-09-15 01:15 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-06-03 20:04:00 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker NMT-904 0 None None None 2023-09-15 01:10:40 UTC

Description Michael Zamot 2021-06-01 18:44:23 UTC
Description of problem:


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


How reproducible:
Every time

Steps to Reproduce:
1. Deploy OpenShift 4.7.11 using OVNKubernetes, using an Active-Backup bond using fail_over_mac="active".
2. Create a vlan or bridge using nmstate

Actual results:
Bridge and/or VLANs are not created. The error reported is the following:
 message: |-
      error reconciling NodeNetworkConfigurationPolicy at desired state apply: , failed to execute nmstatectl set --no-commit --timeout 480: 'exit status 1' '' '2021-05-25 19:04:05,614 root         DEBUG    Interface br-ex found. Merging the interface information.
      2021-05-25 19:04:05,615 root         DEBUG    Interface br-int found. Merging the interface information.
      2021-05-25 19:04:05,615 root         DEBUG    Interface br-local found. Merging the interface information.
      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 267, in apply
          args.save_to_disk,
        File "/usr/lib/python3.6/site-packages/nmstatectl/nmstatectl.py", line 289, in apply_state
          save_to_disk=save_to_disk,
        File "/usr/lib/python3.6/site-packages/libnmstate/netapplier.py", line 71, in apply
          net_state = NetState(desired_state, current_state, save_to_disk)
        File "/usr/lib/python3.6/site-packages/libnmstate/net_state.py", line 40, in __init__
          save_to_disk,
        File "/usr/lib/python3.6/site-packages/libnmstate/ifaces/ifaces.py", line 107, in __init__
          iface.pre_edit_validation_and_cleanup()
        File "/usr/lib/python3.6/site-packages/libnmstate/ifaces/bond.py", line 88, in pre_edit_validation_and_cleanup
          self._fix_mac_restriced_mode()
        File "/usr/lib/python3.6/site-packages/libnmstate/ifaces/bond.py", line 114, in _fix_mac_restriced_mode
          "MAC address cannot be specified in bond interface along "
      libnmstate.error.NmstateValueError: MAC address cannot be specified in bond interface along with fail_over_mac active on active backup mode


Expected results:
VLAN or bridge is created instead.

Additional info:
Interface created with:

spec:
  desiredState:
    interfaces:
    - description: vlan interface per https://github.com/nmstate/kubernetes-nmstate/blob/master/docs/user-guide-policy-configure-vlan-and-dynamic-ip.md
      name: bond1.415
      state: up
      type: vlan
      vlan:
        base-iface: bond1
        id: 415
    - bridge:
        options:
          stp:
            enabled: false
        port:
        - name: bond1.415
      description: Linux bridge with bond1 vlan 415 for non-routable BigIP-HA
      name: bigip-ha
      state: up
      type: linux-bridge
  nodeSelector:
    node-role.kubernetes.io/load-balancer: ""

Comment 5 Petr Horáček 2021-06-03 15:59:45 UTC
The fix resolved the issue. We applied it on the faulty cluster and after that, we were able to apply the configure successfully.

Comment 7 Red Hat Bugzilla 2023-09-15 01:08:51 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 500 days


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