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

nmstatectl stats do not remove the removed topologies and features

    • nmstate-2.2.26-1.el9
    • None
    • Moderate
    • 1
    • rhel-sst-network-management
    • ssg_networking
    • 10
    • 3
    • False
    • Hide

      None

      Show
      None
    • No
    • NMT - RHEL-9.5 DTM 2
    • Hide

      Given a system administrator managing network configurations using nmstate,

      When they create a network topology (like a linux-bridge on top of a bond) using nmstate and then remove it using nmstate's absent state, and subsequently call nmstatectl stats with the desired and current states,

      Then the nmstatectl stats should return a JSON output that not only includes the created topologies and features but also denotes the topologies and features that have been deleted.

      Definition of Done:

      • The implementation meets the acceptance criteria
      • Unit test and integration test are written and pass
      • The code is part of a downstream build attached to an errata
      Show
      Given a system administrator managing network configurations using nmstate, When they create a network topology (like a linux-bridge on top of a bond) using nmstate and then remove it using nmstate's absent state, and subsequently call nmstatectl stats with the desired and current states, Then the nmstatectl stats should return a JSON output that not only includes the created topologies and features but also denotes the topologies and features that have been deleted. Definition of Done: The implementation meets the acceptance criteria Unit test and integration test 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?

      To implement a prometheus gaugue at kubernetes-nmstate we need the nmstatectl stats to also return what topologies and features are no longer configured with it.

      Please provide the package NVR for which bug is seen:

      How reproducible: Always

      Steps to reproduce

      1. Create a linux-bridge on top of bond with nmstate
      2. Remove it with nmstate absent state
      3. Call nmstatectl stats with states (desired and current)

      Expected results

      The returned json also denote the deleted topologies and features

      Actual results

      Only created topologies and features are returned even if they already exists

              fge@redhat.com Gris Ge
              ellorent Felix Enrique Llorente Pastora
              Gris Ge Gris Ge
              Mingyu Shi Mingyu Shi
              Mayur Patil Mayur Patil
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated:
                Resolved: