Solutions

leapp upgrade fails with KeyError on persistentnetnamesconfig/actor.py

by ,


We have by far the largest RPM repository with NGINX module packages and VMODs for Varnish. If you want to install NGINX, Varnish, and lots of useful performance/security software with smooth yum upgrades for production use, this is the repository for you.
Active subscription is required.

Operating System and Software

  • Rocky Linux 8
  • leapp
  • observed on VirtualBox (unsupported hypervisor)

Problem

  • While attempting an upgrade from CentOS 7 to Rocky Linux 8 via leapp, the persistentnetnamesconfig actor fails with a KeyError

How to Fix

  • Change the network drivers being used on the interfaces to a driver that is available on both CentOS 7 and Rocky Linux 8

Origin of the Problem

  • This issue can be caused when some network drivers are used on CentOS 7 which are not available on Rocky Linux 8
  • Specifically, this has been seen when utilizing the pcnet32 driver on networking interfaces, which was removed on Rocky Linux 8

Diagnostic Steps

  • The end of the traceback output will normally look like the following output, with the ’00:aa:bb:cc:dd:ee:ff’ reflecting the MAC address of one of your networking interfaces:
[300.300000] upgrade[426]:     rhel8_name = rhel8_ifaces_map[iface.mac].name
[300.300001] upgrade[426]:  KeyError: '00:aa:bb:cc:dd:ee:ff'

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: