+++ This bug was initially created as a clone of Bug #1953540 +++ Description of problem: When performing an FFU from OSP13 to OSP16.1 the leapp-upgrade command fails with: ============================================================ ERRORS ============================================================ 2021-04-23 21:34:21.589786 [ERROR] Actor: restricted_pcis_scanner Message: Data file /etc/leapp/files/unsupported_driver_names.json is invalid or could not be retrieved. Summary: Details: Could not fetch unsupported_driver_names.json from https://cert.cloud.redhat.com/api/pes/unsupported_driver_names.json (missing certificates). Is the machine registered? Hint: Read documentation at: https://access.redhat.com/articles/3664871 for more information about how to retrieve the file. ============================================================ END OF ERRORS ============================================================ The reason of the failure is that the latest leapp-repository package requires two additional files to be present under /etc/leapp/files: - unsupported_driver_names.json - unsupported_pci_ids.json Without them the leapp actor refuses to upgrade. This issue impacts any leapp upgrade (to 8.2 or 8.4), as soon as the new leapp-repository version will be released. Version-Release number of selected component (if applicable): [stack@undercloud-0 ~]$ rpm -qa | grep leapp leapp-0.12.1-0.202104231347Z.246cf2d.246cf2d1_new_release.PR701.el7_9.noarch python2-leapp-0.12.1-0.202104231347Z.246cf2d.246cf2d1_new_release.PR701.el7_9.noarch leapp-deps-0.12.1-0.202104231347Z.246cf2d.246cf2d1_new_release.PR701.el7_9.noarch leapp-repository-deps-0.14.0-100.202104231426Z.cc544f8.master.el7_9.noarch leapp-repository-0.14.0-100.202104231426Z.cc544f8.master.el7_9.noarch How reproducible: Trigger CI job: https://rhos-ci-jenkins.lab.eng.tlv2.redhat.com/view/DFG/view/upgrades/view/ffu/job/DFG-upgrades-ffu-16.2-from-13-composable1/ Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Latest leapp-repository package includes the feature of automatically retrieving the leapp related files (pes-events, repomap.csv) and two new json files: unsupported_driver_names.json and unsupported_pci_ids.json https://github.com/oamg/leapp-repository/releases/tag/v0.14.0 If the system is not registered, as it happens in our CI jobs, then we are required to download the new json files. Otherwise leapp will refuse to upgrade. However, this change doesn't only impact our CI jobs but the product itself. As up to know it was considered that one the pes-repomap.csv and pes-events.json files were required by leapp. Therfore, in our code, to automate the leapp-upgrade for the overcloud nodes we imported both files from the Undercloud (to which the user had to download manually): https://github.com/openstack/tripleo-heat-templates/blob/stable/train/deployment/tripleo-packages/tripleo-packages-baremetal-puppet.yaml#L300-L330 We should simply However, if all registered nodes will get the files downloaded automatically from cloud.redhat.com this won't be an issue. But when running from our CI jobs it will, as it won't copy the new json files and the leapp-upgrade will fail in the overcloud nodes too.
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 (Red Hat OpenStack Platform (RHOSP) 16.2 enhancement advisory), 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/RHEA-2021:3483