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

fix: el7 interface functionality requires NetworkManager

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • rhel-system-roles-1.120.4-0.1.el10
    • None
    • Low
    • 1
    • rhel-system-roles
    • 0
    • Dev ack
    • False
    • False
    • Hide

      None

      Show
      None
    • Yes
    • Red Hat Enterprise Linux
    • SysRoles Parking Lot
    • Bug Fix
    • Hide
      Cause: NetworkManager is not installed on some EL7 systems by default.

      Consequence: The interface_pci_id could not be found.

      Fix: Ensure NetworkManager is installed on EL7.

      Result: The interface_pci_id can be used on EL7.

      Also - `module.warn` is deprecated - use `warnings` instead if `module.warn` is
      not supported.

      Fix the interface pci test to ensure NetworkManager is running before the test.

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

      ## Summary by Sourcery

      Ensure interface_pci_id functionality works reliably on EL7 systems and surface deprecation warnings without relying on module.warn support.

      Bug Fixes:
      - Ensure NetworkManager is installed and running on EL7 so interface_pci_id lookups succeed.
      - Return interface_pci_id lookup warnings via the module result when module.warn is unavailable.
      - Gate nftables ruleset checks in the interface PCI test on nftables backend availability.

      Enhancements:
      - Pass accumulated warning messages through the firewall module’s exit_json payload for consumers to inspect.
      - Refine interface PCI ID parsing to return both interface names and an optional warning message.

      Tests:
      - Update the interface PCI integration test to install/start NetworkManager on EL7 and to use shared distro vars for backend detection.

      Chores:
      - Adjust package defaults to include NetworkManager and python-ipaddress on EL7 to support interface_pci_id and ipaddress usage.
      Show
      Cause: NetworkManager is not installed on some EL7 systems by default. Consequence: The interface_pci_id could not be found. Fix: Ensure NetworkManager is installed on EL7. Result: The interface_pci_id can be used on EL7. Also - `module.warn` is deprecated - use `warnings` instead if `module.warn` is not supported. Fix the interface pci test to ensure NetworkManager is running before the test. Signed-off-by: Rich Megginson < rmeggins@redhat.com > ## Summary by Sourcery Ensure interface_pci_id functionality works reliably on EL7 systems and surface deprecation warnings without relying on module.warn support. Bug Fixes: - Ensure NetworkManager is installed and running on EL7 so interface_pci_id lookups succeed. - Return interface_pci_id lookup warnings via the module result when module.warn is unavailable. - Gate nftables ruleset checks in the interface PCI test on nftables backend availability. Enhancements: - Pass accumulated warning messages through the firewall module’s exit_json payload for consumers to inspect. - Refine interface PCI ID parsing to return both interface names and an optional warning message. Tests: - Update the interface PCI integration test to install/start NetworkManager on EL7 and to use shared distro vars for backend detection. Chores: - Adjust package defaults to include NetworkManager and python-ipaddress on EL7 to support interface_pci_id and ipaddress usage.
    • Proposed
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      Cause: NetworkManager is not installed on some EL7 systems by default.

      Consequence: The interface_pci_id could not be found.

      Fix: Ensure NetworkManager is installed on EL7.

      Result: The interface_pci_id can be used on EL7.

      Also - `module.warn` is deprecated - use `warnings` instead if `module.warn` is
      not supported.

      Fix the interface pci test to ensure NetworkManager is running before the test.

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

        1. Summary by Sourcery

      Ensure interface_pci_id functionality works reliably on EL7 systems and surface deprecation warnings without relying on module.warn support.

      Bug Fixes:

      • Ensure NetworkManager is installed and running on EL7 so interface_pci_id lookups succeed.
      • Return interface_pci_id lookup warnings via the module result when module.warn is unavailable.
      • Gate nftables ruleset checks in the interface PCI test on nftables backend availability.

      Enhancements:

      • Pass accumulated warning messages through the firewall module’s exit_json payload for consumers to inspect.
      • Refine interface PCI ID parsing to return both interface names and an optional warning message.

      Tests:

      • Update the interface PCI integration test to install/start NetworkManager on EL7 and to use shared distro vars for backend detection.

      Chores:

      • Adjust package defaults to include NetworkManager and python-ipaddress on EL7 to support interface_pci_id and ipaddress usage.

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

                Created:
                Updated: