-
Bug
-
Resolution: Not a Bug
-
Undefined
-
None
-
None
-
None
-
None
-
False
-
False
-
-
Testable
https://github.com/neutralalice has created an issue in GitHub https://github.com/oamg/convert2rhel/issues/1034
Title: Disabling repositories fails if there are no repositories available through subscriptions
Description:
From Centos 7 ( 3.10.0-1160.105.1.el7.x86_64 ) to rhel 7
Seems to fail if there is no subscription repositories being used on the host to be converted. Unsure if this is intended to fail here or if the case for there being no repositories is not defined.
relevant files?
https://github.com/oamg/convert2rhel/blob/c24bdb60ebceec84118936d1bbd532fbce42802d/convert2rhel/subscription.py#L657
https://github.com/oamg/convert2rhel/blob/main/convert2rhel/toolopts.py
```
[2024-01-17T12:05:08+0000] TASK - [Convert: Subscription Manager - Disable all repositories] *********
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.
.
Remediation: 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
```
- is related to
-
RHELC-697 Conversion fails with an unhelpful error when no subscription is available
-
- To Do
-
- relates to
-
RHELC-1741 Stop disabling all repos and enabling default repos
-
- To Do
-