Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2100108

Summary: leapp is missing dependency on procps-ng
Product: Red Hat Enterprise Linux 8 Reporter: Derrick Ornelas <dornelas>
Component: leapp-repositoryAssignee: Petr Stodulka <pstodulk>
Status: CLOSED ERRATA QA Contact: Lubos Bever <lbever>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.6CC: mkluson, mmacura, mreznik
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: leapp-repository-0.17.0-1.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-08 09:46:44 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Derrick Ornelas 2022-06-22 13:16:43 UTC
Description of problem:

leapp is missing a dependency on the procps-ng package


Version-Release number of selected component (if applicable):  

leapp-0.14.0-1.el8_6


How reproducible: 100%


Steps to Reproduce:
1. Install the leapp package in a RHEL8/UBI8 container image

2. Run 'leapp preupgrade'


Actual results:

# leapp preupgrade
==> Processing phase `configuration_phase`
====> * ipu_workflow_config
        IPU workflow config actor
==> Processing phase `FactsCollection`
====> * root_scanner
        Scan the system root directory and produce a message containing
====> * transaction_workarounds
        Provides additional RPM transaction tasks based on bundled RPM packages.
====> * scancryptopolicies
        Scan information about system wide set crypto policies
====> * storage_scanner
        Provides data about storage settings.
====> * get_enabled_modules
        Provides data about which module streams are enabled on the source system.
Failed to set locale, defaulting to C.UTF-8
====> * system_facts
        Provides data about many facts from system.
Failed to set locale, defaulting to C.UTF-8
Process Process-134:
Traceback (most recent call last):
  File "/usr/lib64/python3.6/multiprocessing/process.py", line 258, in _bootstrap
    self.run()
  File "/usr/lib64/python3.6/multiprocessing/process.py", line 93, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3.6/site-packages/leapp/repository/actor_definition.py", line 72, in _do_run
    actor_instance.run(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/leapp/actors/__init__.py", line 290, in run
    self.process(*args)
  File "/etc/leapp/repos.d/system_upgrade/common/actors/systemfacts/actor.py", line 53, in process
    self.produce(systemfacts.get_sysctls_status())
  File "/etc/leapp/repos.d/system_upgrade/common/actors/systemfacts/libraries/systemfacts.py", line 189, in get_sysctls_status
    return SysctlVariablesFacts(sysctl_variables=_get_sysctls())
  File "/etc/leapp/repos.d/system_upgrade/common/actors/systemfacts/libraries/systemfacts.py", line 41, in inner
    return list(f(*args, **kwargs))
  File "/etc/leapp/repos.d/system_upgrade/common/actors/systemfacts/libraries/systemfacts.py", line 162, in _get_sysctls
    for sc in run(['sysctl', '-a'], split=True)['stdout']:
  File "/usr/lib/python3.6/site-packages/leapp/libraries/stdlib/__init__.py", line 188, in run
    result=result
leapp.libraries.stdlib.CalledProcessError: Command ['sysctl', '-a'] failed with exit code 1.


Expected results:

Installing leapp installs the procps-ng package, and running preupgrade successfully completes a preupgrade report


Additional info:

These are my initial tests of trying to run leapp containerized.  These dependencies could be fulfilled manually while building a final production image, but since these seem like very hard dependencies it might be worth adding them to the packaging.

Comment 1 Petr Stodulka 2022-06-22 13:24:49 UTC
Thank you for the report. Switching to leapp-repository component.

Comment 2 Petr Stodulka 2022-08-23 16:38:41 UTC
This has been fixed in the upstream by the following PR
    https://github.com/oamg/leapp-repository/pull/952
Same change is going to be applied in the downstream

Comment 8 errata-xmlrpc 2022-11-08 09:46:44 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (leapp-repository bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:7590