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

Removal of dispatch section from templates is not removing the dispatcher scripts

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • None
    • rhel-9.4
    • nmstate
    • No
    • Moderate
    • 1
    • rhel-sst-network-management
    • ssg_networking
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • NMT SST - Refine next
    • Hide

      Given a system administrator updates an nmstate template to remove dispatcher section configuration,

      When applying the updated nmstate template,

      Then previously generated dispatcher scripts are automatically removed from /etc/NetworkManager/dispatcher.d/ without manual intervention.

      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 updates an nmstate template to remove dispatcher section configuration, When applying the updated nmstate template, Then previously generated dispatcher scripts are automatically removed from /etc/NetworkManager/dispatcher.d/ without manual intervention. 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
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

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

      Apply a nmstate template with the dispatch section. Then reapply the same template without the dispatch section. Its found that the removal of the dispatch section doesn't remove the dispatcher script earlier generated.

      What is the impact of this issue to you?

      The dispatcher script in /etc/NetworkManager/dispatcher.d/nmstate-eno12409-up.sh is not removed

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

      nmstate 2.2.40

      How reproducible is this bug?:

      Always

      Steps to reproduce

      1. nmstatectl apply nms_dispatch.yaml
      1. nmstatectl apply nms_no_dispatch.yaml

      Expected results

      The dispatcher script in /etc/NetworkManager/dispatcher.d/nmstate-eno12409-up.sh shall be removed

      Actual results

      The dispatcher script in /etc/NetworkManager/dispatcher.d/nmstate-eno12409-up.sh is not removed

              rh-ee-sfaye Stanislas Faye
              ksundara@redhat.com Karthik Sundaravel
              Karthik Sundaravel
              Network Management Team Network Management Team
              Mingyu Shi Mingyu Shi
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: