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

Need proper error message for invalid use case on setting priority on balance-rr bond

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • No
    • Low
    • rhel-net-mgmt
    • ssg_networking
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • Hide

      Definition of Done:

      Please mark each item below with ( / ) if completed or ( x ) if incomplete:

      ( ) The acceptance criteria defined below are met.

      Given a YAML configuration that sets link-aggregation.mode: balance-rr on a bond interface,

      When the system administrator adds priority to any entry in ports-config,

      Then Nmstate should fail validation with an InvalidArgument error clearly stating:
      “priority is not supported for bond mode balance-rr”


      ( ) Integration test case is available upstream.


      ( ) Code is reviewed and merged upstream.


      ( ) Preliminary testing is done.


      ( ) Upstream documentation is written in the upstream MR.


      ( ) Release notes text is written in the RHEL issue.


      ( ) A demo is recorded

      Show
      Definition of Done: Please mark each item below with ( / ) if completed or ( x ) if incomplete: ( ) The acceptance criteria defined below are met. Given a YAML configuration that sets link-aggregation.mode: balance-rr on a bond interface, When the system administrator adds priority to any entry in ports-config, Then Nmstate should fail validation with an InvalidArgument error clearly stating: “priority is not supported for bond mode balance-rr” ( ) Integration test case is available upstream. ( ) Code is reviewed and merged upstream. ( ) Preliminary testing is done. ( ) Upstream documentation is written in the upstream MR. ( ) Release notes text is written in the RHEL issue. ( ) A demo is recorded
    • None
    • None
    • None

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

      The priority cannot be set on bond with balance-rr mode. Instead of InvalidArgument error, nmstate raise verification error on when applying this incorrect YAML.

      ---
      interfaces: 
      - name: bond99
        type: bond
        state: up
        link-aggregation: 
          mode: balance-rr
          ports-config: 
          - name: eth1
            priority: 15
      
      

      What is the impact of this issue to you?

      This is cosmatic

      Please provide the package NVR for which the bug is seen:

      nmstate-2.2.38-1.el9

      How reproducible is this bug?:

      100%

      Steps to reproduce

      Apply above YAML via nmstatectl apply

      Expected results

      Got InvalidArgument error complaining priority cannot be set to bond holding balance-rr mode

      Actual results

      NmstateError: VerificationError: Verification failure: bond99.interface.link-aggregation.ports-config[0].priority desire '15', current '0'

              nm-team Network Management Team
              fge@redhat.com Gris Ge
              Network Management Team Network Management Team
              Mingyu Shi Mingyu Shi
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated: