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

Leapp fails if "Firewalld" is not present in the system but "python3-firewall" is. [rhel8]

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Undefined Undefined
    • None
    • None
    • leapp-repository
    • RHEL 8 and probably RHEL 7 (with package "python-firewall" instead).

      Package version:

      Latest (all)

    • None
    • Low
    • rhel-sst-upgrades
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None

      Issue description:

      Leapp upgrade/preupgrade fails with the following error if "Firewalld" is not present in the system, but "python3-firewall" is:

      2023-09-25 12:45:44.995 INFO PID: 1877982 leapp.workflow.FactsCollection: Executing actor firewalld_collect_used_object_names
      ERROR: Failed to load '/etc/firewalld/firewalld.conf': [Errno 2] No such file or directory: '/etc/firewalld/firewalld.conf'
      WARNING: [Errno 2] No such file or directory: '/etc/firewalld/firewalld.conf'
      WARNING: Using fallback firewalld configuration settings.
      ERROR: No icmptypes found.
      ERROR: No services found.
      ERROR: Failed to load zone file '/usr/lib/firewalld/zones/nm-shared.xml': INVALID_SERVICE: dhcp
      FATAL ERROR: Zone 'block' is not available.
      FATAL ERROR: Zone 'drop' is not available.
      FATAL ERROR: Zone 'trusted' is not available.

      ====================================================================================================================
      Actor firewalld_collect_used_object_names unexpectedly terminated with exit code: 1 - Please check the above details
      ====================================================================================================================
       

      The root cause is the actor "firewalld_collect_used_object_names" checking if it's possible to import firewall.core.fw (which is provided by "python3-firewall") to determine if the actor needs to be run.

              pstodulk@redhat.com Petr Stodulka
              rhn-support-jeperez Jesus Perez
              Petr Stodulka Petr Stodulka
              RHEL Upgrades QE Team RHEL Upgrades QE Team
              Miriam Portman Miriam Portman
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: