Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-26617

nmpolicy not support expansion on linux bond ports.

    • nmstate-2.2.26-1.el9
    • None
    • Low
    • 1
    • rhel-sst-network-management
    • ssg_networking
    • 0
    • False
    • Hide

      None

      Show
      None
    • No
    • NMT - RHEL-9.5 DTM 4
    • Hide

      Given that a system administrator wants to use nmpolicy to manage network configurations,

      When they attempt to create a Linux bond with expansion of the ports using the provided state configuration,

      Then the system should successfully create the bond with the specified port without throwing an `NmstateError: InvalidArgument`

      Definition of Done:

      • The implementation meets the acceptance criteria
      • Unit test and integration test are written and pass
      • The code is part of a downstream build attached to an errata
      Show
      Given that a system administrator wants to use nmpolicy to manage network configurations, When they attempt to create a Linux bond with expansion of the ports using the provided state configuration, Then the system should successfully create the bond with the specified port without throwing an `NmstateError: InvalidArgument` Definition of Done: The implementation meets the acceptance criteria Unit test and integration test are written and pass The code is part of a downstream build attached to an errata
    • Pass
    • None
    • None

      What were you trying to do that didn't work?

      Using nmpolicy to create a linux bond and expanding the ports, this is the state

       

      capture:
        primary-nic: interfaces.mac-address=="52:54:00:F6:80:01"
      desiredState:
        interfaces:
        - name: bond0
          type: bond
          state: up
          ipv4:
            enabled: true
            dhcp: true
          copy-mac-from: "{{ capture.primary-nic.interfaces.0.name }}"
          link-aggregation:
            mode: balance-xor
            options:
              xmit_hash_policy: vlan+srcmac
              balance-slb: 1
            port:
            - "{{ capture.primary-nic.interfaces.0.name }}" 
      

       

      Please provide the package NVR for which bug is seen:

      nmstate-2.2.21-2.el9_2.x86_64

      How reproducible: Always

      Steps to reproduce

      1. Use the state from the description (matching the mac of the interface) and apply it

      Expected results

      linux bond is created with proper port

      Actual results

      NmstateError: InvalidArgument: Controller interface bondcnv is holding unknown port {{ capture.secondary-nic.interfaces.0.name }} 

              fge@redhat.com Gris Ge
              ellorent Felix Enrique Llorente Pastora
              Network Management Team Network Management Team
              Mingyu Shi Mingyu Shi
              Mayur Patil Mayur Patil
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated:
                Resolved: