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

Failed to when "controller" option and controller interface are both mentioned

    • nmstate-2.2.25-1.el9
    • None
    • Moderate
    • 1
    • rhel-sst-network-management
    • ssg_networking
    • 26
    • 1
    • False
    • Hide

      None

      Show
      None
    • No
    • NMT - Last NMT changes
    • Hide

      Given a system administrator configuring bond port interfaces using nmstate

      When the system administrator applies a state including both bond0 with "controller: br0" and br0 with "bond0" as a port,

      Then the configuration should apply without errors.

      Definition of Done

      • The implementation meets the acceptance criteria
      • The unit tests and integration tests are written and passed
      • The code is part of a build attached to an errata
      Show
      Given a system administrator configuring bond port interfaces using nmstate When the system administrator applies a state including both bond0 with "controller: br0" and br0 with "bond0" as a port, Then the configuration should apply without errors. Definition of Done The implementation meets the acceptance criteria The unit tests and integration tests are written and passed The code is part of a build attached to an errata
    • Pass
    • Automated
    • If docs needed, set a value
    • None

      Description of problem:
      Failed to when "controller" option and controller interface are both mentioned.
      Check the reproducer below, if mentioned "controller: br0" in bond0 interface and contains controller(interfaces.br0) in the desired state, it failed.

      My scenario is:
      (Already configured bond0 and br0)
      1. I requested the full state of bond0 and br0
      2. Changed some values(didn't care about the other items)
      3. Tried applying the edited state.
      It failed since the full state I got in step 1 contains "controller"(I didn't need it, but I didn't care about it neither)

      Version-Release number of selected component (if applicable):
      nmstate-2.2.12-2.el9.x86_64
      nispor-1.2.10-1.el9.x86_64
      NetworkManager-1.43.9-1.el9.x86_64
      openvswitch2.15-2.15.0-82.el9fdp.x86_64
      DISTRO=RHEL-9.3.0-updates-20230611.28

      How reproducible:
      100%

      Steps to Reproduce:
      echo "
      interfaces:

      • name: bond0
        type: bond
        state: up
        controller: br0
        link-aggregation:
        mode: balance-rr
      • name: br0
        type: ovs-bridge
        state: up
        bridge:
        port:
      • name: bond0
        " | nmstatectl apply

      Actual results:
      NmstateError: InvalidArgument: Interface bond0 has controller br0 but not listed in port list of controller interface

      Expected results:
      No failure

      Additional info:
      Replaced br0 type as "linux-bridge", got the same failure.
      Removing "controller: br0" or "br0.bridge.port" works

              liangwen12year Wen Liang
              rh-ee-mshi1 Mingyu Shi
              Wen Liang Wen Liang
              Mingyu Shi Mingyu Shi
              Votes:
              0 Vote for this issue
              Watchers:
              14 Start watching this issue

                Created:
                Updated:
                Resolved: