[leapp] upgrade failed with udev net persistent rules

Solution Unverified - Updated -

Issue

Leapp fails after a python traceback during the reboot when persistent udev rules are set (to have persistent NIC names based on MAC address):

Dec 08 12:29:10 localhost upgrade[19164]: 2020-12-08 13:29:10.369 DEBUG    PID: 3 leapp.repository.system_upgrade_el7toel8: Starting actor discovery in actors/biosdevname
Dec 08 12:29:10 localhost upgrade[19164]: Process Process-5:
Dec 08 12:29:10 localhost upgrade[19164]: Traceback (most recent call last):
Dec 08 12:29:10 localhost upgrade[19164]:   File "/usr/lib64/python2.7/multiprocessing/process.py", line 267, in _bootstrap
Dec 08 12:29:10 localhost upgrade[19164]:     self.run()
Dec 08 12:29:10 localhost upgrade[19164]:   File "/usr/lib64/python2.7/multiprocessing/process.py", line 114, in run
Dec 08 12:29:10 localhost upgrade[19164]:     self._target(*self._args, **self._kwargs)
Dec 08 12:29:10 localhost upgrade[19164]:   File "/usr/lib/python2.7/site-packages/leapp/repository/actor_definition.py", line 30, in inspect_actor
Dec 08 12:29:10 localhost upgrade[19164]:     definition.load()
Dec 08 12:29:10 localhost upgrade[19164]:   File "/usr/lib/python2.7/site-packages/leapp/repository/actor_definition.py", line 179, in load
Dec 08 12:29:10 localhost upgrade[19164]:     self._module = importer.find_module(name).load_module(name)
Dec 08 12:29:10 localhost upgrade[19164]:   File "/usr/lib64/python2.7/pkgutil.py", line 243, in load_module
Dec 08 12:29:10 localhost upgrade[19164]:     mod = imp.load_module(fullname, self.file, self.filename, self.etc)
Dec 08 12:29:10 localhost upgrade[19164]:   File "/usr/share/leapp-repository/repositories/system_upgrade/el7toel8/actors/biosdevname/actor.py", line 2, in <module>
Dec 08 12:29:10 localhost upgrade[19164]:     from leapp.libraries.actor.biosdevname import check_biosdevname
Dec 08 12:29:10 localhost upgrade[19164]:   File "/usr/lib64/python2.7/pkgutil.py", line 243, in load_module
Dec 08 12:29:10 localhost upgrade[19164]:     mod = imp.load_module(fullname, self.file, self.filename, self.etc)
Dec 08 12:29:10 localhost upgrade[19164]:   File "/usr/share/leapp-repository/repositories/system_upgrade/el7toel8/actors/biosdevname/libraries/biosdevname.py", line 3, in <module>
Dec 08 12:29:10 localhost upgrade[19164]:     import pyudev
Dec 08 12:29:10 localhost upgrade[19164]: ImportError: No module named pyudev
Dec 08 12:29:10 localhost kernel: XFS (vda1): Unmounting Filesystem
Dec 08 12:29:10 localhost upgrade[19164]: 2020-12-08 13:29:10.388 ERROR    PID: 3 leapp.repository.system_upgrade_el7toel8: Process inspecting actor in actors/biosdevname failed with 1
Dec 08 12:29:10 localhost upgrade[19164]: Error: Inspection of actor in actors/biosdevname failed
Dec 08 12:29:10 localhost upgrade[19164]: Container sysroot failed with error code 2.
Dec 08 12:29:10 localhost upgrade[19164]: writing logs to disk and rebooting

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content