Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-17953

edit bridge/bond policy to remove port attribute, NNCP failed

XMLWordPrintable

    • No
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      edit bridge/bond policy to remove port attribute, NNCP failed

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

      OCP Version: 4.14.0-0.nightly-2023-08-11-055332 
      knmstate operator version: kubernetes-nmstate-operator.4.14.0-202308090413

      How reproducible:

      100%

      Steps to Reproduce:

      1. install knmstate operator
      2. login web console as administrator, Networking -> NodeNetworkConfigurationPolicy, click create, select from form, create  nncp to create bridge/bond interface, set interface name, state, type, port, click create
      3. edit the nncp, clear the inputting of port, click save 

      Actual results:

      nncp failed after edit with below error:
      NmstateError: InvalidArgument: Controller interface br001 is holding unknown port

      Expected results:

      nncp Available after edit

      Additional info:

      the port attribute is not removed:
      
      spec:
        desiredState:
          interfaces:
            - bridge:
                port:         <---
                  - name: ''
              name: br001
              state: up
              type: linux-bridge

              upalatuc@redhat.com Ugo Palatucci
              rh-ee-qiowang Qiong Wang
              Qiong Wang Qiong Wang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: