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

vlan connections created using nmcli could not be removed

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

    • nmstate-2.2.46-1.el10
    • No
    • Moderate
    • ZStream
    • rhel-net-mgmt
    • ssg_networking
    • 2
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • Approved Blocker
    • 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 system administrator creates a VLAN interface via nmcli without specifying the connection.interface-name

      When they apply a Nmstate YAML configuration with state: absent targeting the VLAN interface by name,

      Then, the corresponding nmcli connection profile should be reliably matched and removed by Nmstate, even if connection.interface-name was not explicitly set during creation.


      Integration test case is available upstream


      Code is reviewed and merged upstream


      Preliminary testing is done


      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 system administrator creates a VLAN interface via nmcli without specifying the connection.interface-name When they apply a Nmstate YAML configuration with state: absent targeting the VLAN interface by name, Then, the corresponding nmcli connection profile should be reliably matched and removed by Nmstate, even if connection.interface-name was not explicitly set during creation. Integration test case is available upstream Code is reviewed and merged upstream Preliminary testing is done A demo is recorded
    • Pass
    • Automated
    • Unspecified
    • Unspecified
    • Unspecified
    • None

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

      Create a nmcli connection

      nmcli con add type vlan con-name ens1f1.20 dev ens1f1 id 20 ip4 10.10.10.10/24 gw4 10.10.10.254 

      Then destroy the connection using the nmstate template

      interfaces:
      - name: ens1f1.20
        state: absent
        type: vlan 

      The nmcli connection is still present.

      What is the impact of this issue to you?

      Failing to destroy the NM connection is causing network issues

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

      [root@compute-0 cloud-admin]# nmcli -v

      nmcli tool, version 1.46.0-26.el9_4

      [root@compute-0 cloud-admin]# nmstatectl --version

      nmstatectl 2.2.40

      How reproducible is this bug?:

      100%

      Expected results

      NM connection shall be removed

      Actual results

      NM connection is still present

              fge@redhat.com Gris Ge
              ksundara@redhat.com Karthik Sundaravel
              Network Management Team Network Management Team
              Network Management Team Network Management Team
              Votes:
              0 Vote for this issue
              Watchers:
              15 Start watching this issue

                Created:
                Updated:
                Resolved: