-
Bug
-
Resolution: Done-Errata
-
Major
-
7.9
-
False
-
False
-
-
2
-
2022-Q4
From a comment by Thomas Krieger: https://access.redhat.com/articles/2360841?page=1#comment-2317331
When having an offline CentOS Linux system connected to a Satellite server, and receiving CentOS Linux updates through repos provided by the Satellite server, convert2rhel fails on downloading a backup of the packages that contain repofiles (e.g. centos-release). The reason is that before the pkg backup convert2rhel disables all RHSM repos so it then doesn't have any repository to backup/download the packages from.
Steps to reproduce:
- get for instance CentOS Linux 7.9 system
- install subscription-manager (can be the one available in CentOS Linux repos)
- remove all repos from /etc/yum.repos.d/
- prepare a Satellite server to provide CentOS Linux 7.9 repos
- subscribe the system to the Satellite server and enable the CentOS Linux 7.9 repos
- install and run convert2rhel with the --keep-rhsm
- observe the error:
[03/14/2022 13:59:55] TASK - [Convert: Subscription Manager - Disable all repositories] ********* [03/14/2022 13:59:55] DEBUG - Calling command 'subscription-manager repos --disable=*' Repositories disabled. ... [03/14/2022 14:00:07] TASK - [Convert: Remove packages containing repofiles] ******************** Searching for packages containing repofiles or affecting variables in the repofiles: centos-release .................................. 1 WARNING - The following packages will be removed... Package Vendor/Packager Repository ------- --------------- ---------- centos-release-7-9.2009.1.el7.centos.x86_64 CentOS updates Backing up centos-release-7-9.2009.1.el7.centos.x86_64 [03/14/2022 14:00:31] DEBUG - Downloading the centos-release-7-9.2009.1.el7.centos.x86_64 package. [03/14/2022 14:00:31] DEBUG - Calling command 'yumdownloader -v --destdir="/var/lib/convert2rhel/backup" centos-release-7-9.2009.1.el7.centos.x86_64' No Match for argument centos-release-7-9.2009.1.el7.centos.x86_64 Nothing to download CRITICAL - Couldn't download the centos-release-7-9.2009.1.el7.centos.x86_64 package. This means we will not be able to do a complete rollback and may put the system in a broken state. Check to make sure that the CentOS Linux repositories are enabled and the package is updated to its latest version. If you would rather ignore this check set the environment variable 'CONVERT2RHEL_UNSUPPORTED_INCOMPLETE_ROLLBACK'.
Acceptance criteria:
- the CentOS Linux repos provided by the Satellite server are available during the package backup
- idea: the RHSM repos are disabled only after the pkg backup so that access to repositories needed for a successful backup is not lost
- is related to
-
RHELC-1385 convert2rhel fails to backup packages (oracle-logos) if they are on a Satellite
- Closed