leapp upgrade fails with The value of "rhui" field must be one of ", aws, azure"
Environment
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- leapp
Issue
leapp upgrade fails with
2022-11-11 06:30:56.386173 [ERROR] Actor: repository_mapping
Message: The repository mapping file is invalid: the JSON does not match required schema (wrong field type/value): The value of "rhui" field must be one of ", aws, azure"
Resolution
Red Hat Enterprise Linux 7
Update leapp-upgrade-el7toel8 to the latest version.
# yum clean all
# yum update leapp\*
Red Hat Enterprise Linux 8
Update leapp-upgrade-el8toel9 to version 0.17.0-1.el8_6.2 or newer.
# yum clean all
# yum update leapp\*
Root Cause
Older versions of leapp are only expecting "aws" or "azure" in the "rhui:" field. Updates to the leapp-data file have added a new entry for "rhui" (google)
$ grep '"rhui":' /etc/leapp/files/repomap.json | sort -u
"rhui": "aws"
"rhui": "azure"
"rhui": "google"
SBR
Product(s)
Components
Category
Tags
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.