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

Changing vlan id got error "missing field `base-iface`"

    • nmstate-2.2.35-1.el9
    • None
    • None
    • 1
    • rhel-sst-network-management
    • ssg_networking
    • 5
    • False
    • Hide

      None

      Show
      None
    • None
    • NMT - RHEL-9.5 DTM 22
    • Hide

      Given a system administrator has an existing VLAN configuration on veth2 with VLAN ID 3, created using the Nmstate configuration in the description, 

      When they change the VLAN ID from 3 to 5, 

      Then, the VLAN ID should change successfully to 5 without any errors. 

      Definition of Done:

      • The implementation meets the acceptance criteria
      • Integration tests are written and pass
      • The code is part of a downstream build attached to an errata
      Show
      Given a system administrator has an existing VLAN configuration on veth2 with VLAN ID 3, created using the Nmstate configuration in the description,  When they change the VLAN ID from 3 to 5,  Then, the VLAN ID should change successfully to 5 without any errors.  Definition of Done: The implementation meets the acceptance criteria Integration tests are written and pass The code is part of a downstream build attached to an errata
    • Pass
    • Automated
    • None

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

      Changing the id of an existing vlan, got error "missing field `base-iface`", but the id actually changed.

      Please provide the package NVR for which bug is seen:

      nmstate-2.2.30-1.el9.x86_64
      nispor-1.2.14-1.el9.x86_64
      NetworkManager-1.47.91-1.el9.x86_64

      How reproducible:

      100%

      Steps to reproduce

      echo "
      interfaces:
      - name: vlan_on_veth2
        type: vlan
        state: up
        vlan:
          base-iface: veth2
          id: 3
      - name: veth2
        type: veth
        state: up
        veth:
          peer: veth2_p
      " | nmstatectl apply
      
      nmstatectl show vlan_on_veth2 | sed 's/id: 3/id: 5/g' | nmstatectl apply
      

       

      Expected results

      No error, id changed

      Actual results

      id changed but with error:

      [2024-05-25T11:02:39Z INFO  nmstatectl] Nmstate version: 2.2.30
      Using 'set' is deprecated, use 'apply' instead.
      [2024-05-25T11:02:39Z INFO  nmstatectl] Nmstate version: 2.2.30
      [2024-05-25T11:02:40Z INFO  nmstate::query_apply::net_state] Created checkpoint /org/freedesktop/NetworkManager/Checkpoint/27
      [2024-05-25T11:02:40Z INFO  nmstate::nm::query_apply::profile] Deactivating connection b676faae-e7aa-4789-85ea-bfa837d1157a: vlan_on_veth2/vlan
      [2024-05-25T11:02:40Z INFO  nmstate::nm::query_apply::profile] Modifying connection UUID Some("b676faae-e7aa-4789-85ea-bfa837d1157a"), ID Some("vlan_on_veth2"), type Some("vlan") name Some("vlan_on_veth2")
      [2024-05-25T11:02:40Z INFO  nmstate::nm::query_apply::profile] Reapplying connection b676faae-e7aa-4789-85ea-bfa837d1157a: vlan_on_veth2/vlan
      [2024-05-25T11:02:40Z INFO  nmstate::nm::query_apply::profile] Got activation failure Bug: Manager(UnknownDevice): Failed to find a compatible device for this connection
      [2024-05-25T11:02:40Z INFO  nmstate::nm::query_apply::profile] Will retry activation 2 seconds
      [2024-05-25T11:02:42Z INFO  nmstate::nm::query_apply::profile] Reapplying connection b676faae-e7aa-4789-85ea-bfa837d1157a: vlan_on_veth2/vlan
      [2024-05-25T11:02:42Z INFO  nmstate::query_apply::net_state] Destroyed checkpoint /org/freedesktop/NetworkManager/Checkpoint/27
      NmstateError: InvalidArgument: Invalid propriety: missing field `base-iface`

              ihuguet@redhat.com Inigo Huguet
              rh-ee-mshi1 Mingyu Shi
              Network Management Team Network Management Team
              Mingyu Shi Mingyu Shi
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: