-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
None
-
None
-
None
-
False
-
False
-
-
rhel-conversions
-
-
-
Conversion fails on disabling repos when there's no subscription available under the account or activation key used for the conversion
[2024-06-20T16:11:54+0000] TASK - [Prepare: Subscription Manager - Disable all repositories] ********* [2024-06-20T16:11:54+0000] DEBUG - Calling command 'subscription-manager repos --list-enabled' [2024-06-20T16:12:25+0000] DEBUG - Calling command 'subscription-manager repos --disable=*' CRITICAL - Could not disable subscription-manager repositories: This system has no repositories available through subscriptions. ERROR - (ERROR) SUBSCRIBE_SYSTEM::FAILED_TO_DISABLE_SUBSCRIPTION_MANAGER_REPOSITORIES - Could not disable repositories through subscription-manager. Description: As part of the conversion process, convert2rhel disables all current subscription-manager repositories and enables only repositories required for the conversion. convert2rhel was unable to disable these repositories, and the conversion is unable to proceed. Diagnosis: Failed to disable repositories: This system has no repositories available through subscriptions. . Remediations: N/A ERROR - Skipped ENSURE_KERNEL_MODULES_COMPATIBILITY. Skipped because SUBSCRIBE_SYSTEM was not successful ERROR - Skipped VALIDATE_PACKAGE_MANAGER_TRANSACTION. Skipped because ENSURE_KERNEL_MODULES_COMPATIBILITY and SUBSCRIBE_SYSTEM were not successful
Reproduce:
- Run a conversion with an SCA account that has no subscriptions. E.g. on CentOS Linux 7:
- curl -o /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release https://www.redhat.com/security/data/fd431d51.txt
- curl -o /etc/yum.repos.d/client-tools-for-rhel-7-server.repo https://ftp.redhat.com/redhat/client-tools/client-tools-for-rhel-7-server.repo
- yum install -y subscription-manager subscription-manager-rhsm-certificates
- subscription-manager register --serverurl "subscription.rhsm.stage.redhat.com" --username c2r_sca_no_subs --password c2r_pswd --baseurl=stagecdn.redhat.com
- convert2rhel analyze --debug -y
Acceptance criteria:
- We catch the error "This system has no repositories available through subscriptions." and print message like "Make sure you have a RHEL subscription available through the provided RHSM credentials. A list of subscriptions available: <subscription-manager list --available>"
- relates to
-
RHELC-1351 GitHub Issue #1034: Disabling repositories fails if there are no repositories available through subscriptions
-
- Closed
-