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

fix: grab name of network to remove from quadlet file

    • rhel-system-roles-1.79.0-0.3.el10
    • None
    • None
    • 2
    • rhel-sst-system-roles
    • 1
    • Dev ack
    • False
    • Hide

      None

      Show
      None
    • Yes
    • Red Hat Enterprise Linux
    • System Roles Sprint 3, System Roles Sprint 4
    • Bug Fix
    • Hide
      .Removing Quadlet-defined networks using `podman` works irrespective of a custom `NetworkName` directive

      When removing networks, the `podman` RHEL system role was using the "systemd- + name of the Quadlet file" syntax for the network name. Consequently, if the Quadlet file had a different `NetworkName` directive in it, the removal would fail. With this update, the `podman` source code has been updated to use "the Quadlet file name + the `NetworkName` directive from that file" as a name of the network to remove. As a result, removal of networks defined by Quadlet files using the `podman` RHEL system role works both with and without a custom `NetworkName` directive in the Quadlet file.
      Show
      .Removing Quadlet-defined networks using `podman` works irrespective of a custom `NetworkName` directive When removing networks, the `podman` RHEL system role was using the "systemd- + name of the Quadlet file" syntax for the network name. Consequently, if the Quadlet file had a different `NetworkName` directive in it, the removal would fail. With this update, the `podman` source code has been updated to use "the Quadlet file name + the `NetworkName` directive from that file" as a name of the network to remove. As a result, removal of networks defined by Quadlet files using the `podman` RHEL system role works both with and without a custom `NetworkName` directive in the Quadlet file.
    • Done
    • None

      Cause: The code was using "systemd-" + name of quadlet for
      the network name when removing networks.

      Consequence: If the quadlet had a different NetworkName, the
      removal would fail.

      Fix: Grab the network quadlet file and grab the NetworkName from
      the file to use to remove the network.

      Result: The removal of quadlet networks will work both with and
      without a custom NetworkName in the quadlet file.

      Signed-off-by: Rich Megginson <rmeggins@redhat.com>

      This also adds a fix for el10 and Fedora which installs the iptables-nft
      package to allow rootless podman to manage networks using nftables.

              rmeggins@redhat.com Richard Megginson
              rmeggins@redhat.com Richard Megginson
              Richard Megginson Richard Megginson
              Jakub Haruda Jakub Haruda
              Jaroslav Klech Jaroslav Klech
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated: