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

OVS interface still exist after connection been deleted

    • NetworkManager-1.51.2-1.el9
    • No
    • Moderate
    • ZStream
    • rhel-sst-network-management
    • ssg_networking
    • 9
    • 5
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • Approved Blocker
    • Hide

      Given a system administrator deletes an NM connection associated with an OVS interface using nmstatectl,

      When they check the system state after deletion,

      Then, the OVS interface should no longer exist in both the kernel and the OVS database.

      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 deletes an NM connection associated with an OVS interface using nmstatectl, When they check the system state after deletion, Then, the OVS interface should no longer exist in both the kernel and the OVS database. 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
    • None
    • None

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

      After nmstate invoked `connection-delete`, we noticed the NM connection is deleted as expected but OVS interface still exists both in kernel and OVS database.

      Please provide the package NVR for which bug is seen:

      NetworkManager-1.49.3-33394.copr.a367f8770b.el9.x86_64

      How reproducible:

      10%

      Steps to reproduce

      wget https://people.redhat.com/fge/ovs_leftover/https://people.redhat.com/fge/ovs_leftover/ovs_leftover.py
      dnf install -y https://people.redhat.com/fge/ovs_leftover/nmstate.ovsleftover.el9.x86_64.rpm
      sudo python3 ./ovs_leftover.py
      

      Expected results

      No error

      Actual results

      libnmstate.error.NmstateVerificationError: Absent/Down interface br0/ovs-bridge still found

      Notes

      • The nmstate used for reproducing is from https://github.com/nmstate/nmstate/pull/2739 which just set OVS-port connection.autoconnect-ports to true.
      • The output indicate after NM connection been deleted, the OVS database still has full OVS bridge.

        1. nm.log
          461 kB
        2. nmstate.ovsleftover.el9.x86_64.rpm
          3.07 MB
        3. ovs_leftover.py
          2 kB

              rh-ee-sfaye Stanislas Faye
              fge@redhat.com Gris Ge
              Network Management Team Network Management Team
              Filip Pokryvka Filip Pokryvka
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated: