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 2155661 - leapp xfs_info_scanner fails when fstab xfs entry not mounted
Summary: leapp xfs_info_scanner fails when fstab xfs entry not mounted
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: leapp-repository
Version: 8.8
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Petr Stodulka
QA Contact: Martin Klusoň
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-12-21 19:02 UTC by Radek Duda
Modified: 2023-05-16 09:58 UTC (History)
1 user (show)

Fixed In Version: leapp-repository-0.18.0-1.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-05-16 08:37:40 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
fstab file and leapp preupgrade output (6.48 KB, text/plain)
2022-12-21 19:02 UTC, Radek Duda
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker OAMG-8147 0 None None None 2022-12-21 19:20:11 UTC
Red Hat Issue Tracker RHELPLAN-143061 0 None None None 2022-12-21 19:20:08 UTC
Red Hat Product Errata RHBA-2023:2839 0 None None None 2023-05-16 08:37:51 UTC

Description Radek Duda 2022-12-21 19:02:12 UTC
Created attachment 1934005 [details]
fstab file and leapp preupgrade output

Description of problem:
If /etc/fstab entry is not mounted, xfs_info_scanner fails. The rest of leapp checks is skipped.

Version-Release number of selected component (if applicable):
# rpm -qa leapp*
leapp-upgrade-el8toel9-0.17.0-5.el8.noarch
leapp-upgrade-el8toel9-deps-0.17.0-5.el8.noarch
leapp-deps-0.15.0-2.el8.noarch
leapp-0.15.0-2.el8.noarch

xfsprogs-5.0.0-10.el8.x86_64


How reproducible:
always

Steps to Reproduce:
1. Have xfs device and corresponding entry in /etc/fstab
(e.g. /dev/loop0 /foo xfs defaults,nofail,noauto 0 0)
2. run `leapp preupgrade`
3.

Actual results:
leapp xfs_info_scanner fails with exit code 1. Rest of leapp checks is skipped and leapp ends.

Expected results:
xfs_info_scanner does not fail.

Additional info:
====> * xfs_info_scanner
        This actor scans all mounted mountpoints for XFS information
Process Process-201:
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 289, in run
    self.process(*args)
  File "/etc/leapp/repos.d/system_upgrade/common/actors/xfsinfoscanner/actor.py", line 23, in process
    scan_xfs()
  File "/etc/leapp/repos.d/system_upgrade/common/actors/xfsinfoscanner/libraries/xfsinfoscanner.py", line 45, in scan_xfs
    mountpoints_ftype0 = list(filter(is_xfs_without_ftype, mountpoints))
  File "/etc/leapp/repos.d/system_upgrade/common/actors/xfsinfoscanner/libraries/xfsinfoscanner.py", line 24, in is_xfs_without_ftype
    for l in run(['/usr/sbin/xfs_info', '{}'.format(mp)], 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 ['/usr/sbin/xfs_info', '/foo'] failed with exit code 1.

Comment 1 Radek Duda 2022-12-21 19:03:16 UTC
Can not reproduce in rhel7

Comment 2 Petr Stodulka 2023-02-03 11:23:08 UTC
The fix has been merged in upstrea, the issue is going to be fixed with the next release:
    https://github.com/oamg/leapp-repository/pull/1027

Comment 10 errata-xmlrpc 2023-05-16 08:37:40 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-2023:2839


Note You need to log in before you can comment on or make changes to this bug.