Why leapp preupgrade fails with "OS Error: [Errno 2] No such file or directory: '/usr/sbin/xfs_info'"?
Issue
During the RHEL 7.9 to 8 upgrade, the Leapp preupgrade command fails and following error gets generated:
Risk Factor: high (error)
Title: Actor xfs_info_scanner unexpectedly terminated with exit code: 1
Summary: Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/leapp/repository/actor_definition.py", line 74, in _do_run
actor_instance.run(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/leapp/actors/__init__.py", line 289, in run
self.process(*args)
File "/usr/share/leapp-repository/repositories/system_upgrade/common/actors/xfsinfoscanner/actor.py", line 23, in process
scan_xfs()
File "/usr/share/leapp-repository/repositories/system_upgrade/common/actors/xfsinfoscanner/libraries/xfsinfoscanner.py", line 57, in scan_xfs
mountpoints_ftype0 = list(filter(is_xfs_without_ftype, mountpoints))
File "/usr/share/leapp-repository/repositories/system_upgrade/common/actors/xfsinfoscanner/libraries/xfsinfoscanner.py", line 31, in is_xfs_without_ftype
xfs_info = run(['/usr/sbin/xfs_info', '{}'.format(mp)], split=True)
File "/usr/lib/python2.7/site-packages/leapp/libraries/stdlib/__init__.py", line 185, in run
stdin=stdin, env=env, encoding=encoding)
File "/usr/lib/python2.7/site-packages/leapp/libraries/stdlib/call.py", line 145, in _call
raise OSError(errno.ENOENT, os.strerror(errno.ENOENT), command[0])
OSError: [Errno 2] No such file or directory: '/usr/sbin/xfs_info'
Environment
- Red Hat Enterprise Linux 7.9
- Leapp
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.