Actions
Bug #20798
closedforeman-maintain upgrade fails to properly enable Satellite 6.2 repos
Difficulty:
Triaged:
Bugzilla link:
Description
Have a 6.1 instance trying to upgrade and it attempts to enable non-existent repositories:
- ./bin/foreman-maintain upgrade run --target-version 6.2 --whitelist=disk-io
...
Running migration scripts to Satellite 6.2 ================================================================================
Setup repositories: | Configuring repositories for 6.2 [FAIL]
Failed executing subscription-manager repos --enable=rhel-18-server-rpms --enable=rhel-18-rhscl-18-rpms --enable=rhel-18-server-satellite-6.2-rpms, exit status 1:
Error: 'rhel-18-server-rpms' does not match a valid repository ID. Use "subscription-manager repos --list" to see valid repositories.
Error: 'rhel-18-rhscl-18-rpms' does not match a valid repository ID. Use "subscription-manager repos --list" to see valid repositories.
Error: 'rhel-18-server-satellite-6.2-rpms' does not match a valid repository ID. Use "subscription-manager repos --list" to see valid repositories.
We need to switch to use the VERSION from the RPM, not the release:
- rpm -qf /etc/redhat-release
redhat-release-server-7.4-18.el7.x86_64
We also need to fix the repo-id on the SCL:
Error: 'rhel-7-rhscl-7-rpms' does not match a valid repository ID. Use "subscription-manager repos --list" to see valid repositories.
Actions