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

fix: Skip the loopback profile when deleting all profiles except the ones explicitly included

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

    • rhel-system-roles
    • 0
    • Dev ack
    • False
    • False
    • Hide

      None

      Show
      None
    • Yes
    • Red Hat Enterprise Linux
    • None
    • Bug Fix
    • Hide
      Enhancement: This PR adds the `loopback` device to `black_list_names` when deleting all profiles except the ones explicitly included in the ansible playbook

      Reason: Adding an entry without a name and `persistent_state: absent` to the `network_connections` variables would trigger a `changed` state in one of the tasks

      ```
      TASK [network : Configure networking connection profiles] **********************
      changed: [hostname]
      ```

      This was because the profile `loopback` device was being removed and then automatically recreated by the system.

      Result: Now the loopback profile is kept and the state is not reported as `changed`:

      ```
      TASK [network : Configure networking connection profiles] **********************
      ok: [hostname]
      ```

      Issue Tracker Tickets (GitHub issue): #689

      ## Summary by Sourcery

      Keep the loopback network profile from being deleted when purging absent profiles to prevent false-positive changes in Ansible playbooks

      Bug Fixes:
      - Prevent Ansible from reporting a changed state by avoiding removal and automatic recreation of the loopback profile

      Enhancements:
      - Add "lo" (loopback) to the blacklist when deleting all non-explicit network profiles
      Show
      Enhancement: This PR adds the `loopback` device to `black_list_names` when deleting all profiles except the ones explicitly included in the ansible playbook Reason: Adding an entry without a name and `persistent_state: absent` to the `network_connections` variables would trigger a `changed` state in one of the tasks ``` TASK [network : Configure networking connection profiles] ********************** changed: [hostname] ``` This was because the profile `loopback` device was being removed and then automatically recreated by the system. Result: Now the loopback profile is kept and the state is not reported as `changed`: ``` TASK [network : Configure networking connection profiles] ********************** ok: [hostname] ``` Issue Tracker Tickets (GitHub issue): #689 ## Summary by Sourcery Keep the loopback network profile from being deleted when purging absent profiles to prevent false-positive changes in Ansible playbooks Bug Fixes: - Prevent Ansible from reporting a changed state by avoiding removal and automatic recreation of the loopback profile Enhancements: - Add "lo" (loopback) to the blacklist when deleting all non-explicit network profiles
    • Proposed
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      Enhancement: This PR adds the `loopback` device to `black_list_names` when deleting all profiles except the ones explicitly included in the ansible playbook

      Reason: Adding an entry without a name and `persistent_state: absent` to the `network_connections` variables would trigger a `changed` state in one of the tasks

      ```
      TASK [network : Configure networking connection profiles] **********************
      changed: [hostname]
      ```

      This was because the profile `loopback` device was being removed and then automatically recreated by the system.

      Result: Now the loopback profile is kept and the state is not reported as `changed`:

      ```
      TASK [network : Configure networking connection profiles] **********************
      ok: [hostname]
      ```

      Issue Tracker Tickets (GitHub issue): #689

        1. Summary by Sourcery

      Keep the loopback network profile from being deleted when purging absent profiles to prevent false-positive changes in Ansible playbooks

      Bug Fixes:

      • Prevent Ansible from reporting a changed state by avoiding removal and automatic recreation of the loopback profile

      Enhancements:

      • Add "lo" (loopback) to the blacklist when deleting all non-explicit network profiles

              rmeggins@redhat.com Richard Megginson
              rmeggins@redhat.com Richard Megginson
              Richard Megginson Richard Megginson
              David Jez David Jez
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated: