Bug 1953542 - FFU 13->16.2: Leapp upgrade fails with: Could not fetch unsupported_driver_names.json
Summary: FFU 13->16.2: Leapp upgrade fails with: Could not fetch unsupported_driver_na...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 16.2 (Train)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: beta
: 16.2 (Train on RHEL 8.4)
Assignee: Jose Luis Franco
QA Contact: Jesse Pretorius
URL:
Whiteboard:
Depends On: 1953540
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-04-26 10:49 UTC by Jose Luis Franco
Modified: 2021-09-15 07:14 UTC (History)
5 users (show)

Fixed In Version: openstack-tripleo-heat-templates-11.5.1-2.20210506094805.28ae385.el8ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1953540
Environment:
Last Closed: 2021-09-15 07:14:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 788290 0 None MERGED Sync full /etc/leapp/files directory. 2021-05-06 10:36:46 UTC
Red Hat Issue Tracker UPG-2864 0 None None None 2021-08-12 10:49:18 UTC
Red Hat Product Errata RHEA-2021:3483 0 None None None 2021-09-15 07:14:55 UTC

Description Jose Luis Franco 2021-04-26 10:49:58 UTC
+++ 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:

Comment 1 Jose Luis Franco 2021-04-26 13:20:02 UTC
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.

Comment 7 errata-xmlrpc 2021-09-15 07:14:29 UTC
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


Note You need to log in before you can comment on or make changes to this bug.