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.
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.
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
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.