Comments (1)
Hi @FerreiraEnzoA, the --keep-rhsm option only ensures that the installed subscription-manager packages are not replaced. The system is however still being re-registered during the conversion (using the RHSM credentials passed through the CLI options). This is what the convert2rhel man page says about the --keep-rhsm option:
Keep the already installed Red Hat Subscription Management-related packages. By default, during the conversion, these packages are removed, downloaded from verified sources and re-installed. This option is suitable for environments with no connection to the Internet, or for systems managed by Red Hat Satellite. Warning: The system is being re-registered during the conversion and when the re-registration fails, there's no automated rollback to the original registration.
The /etc/yum.repos.d/redhat.repo file is auto-generated by subscription-manager. The reason convert2rhel does not back it up is that it wouldn't be useful after a rollback because even with the use of the --keep-rhsm option convert2rhel re-registers the system causing the redhat.repo file to be re-generated, effectively invalidating the previous redhat.repo content.
The redhat.repo file is not supposed to be edited manually because the repositories defined in it are accessible only with a corresponding attached subscription (attaching a subscription involves copying a necessary certificate to access the repos).
The redhat.repo backup would not be useful in case of a rollback either because part of the rollback is unregistering the system. So, as I stated above, without a system registration and subscription the repos in redhat.repo are inaccessible.
On a related note, there's a known limitation of convert2rhel which we should document in the official documentation - during the rollback we have no way to re-register the system back to the original sub-man registration when --keep-rhsm was used. I and @SpyTec will take care of that.
from convert2rhel.
Related Issues (20)
- Convert 2 RHEL offline HOT 1
- centos7.4 ---> rhel7.4 HOT 3
- Disabling repositories fails if there are no repositories available through subscriptions HOT 6
- test issue
- CentOS7.4 update to RHEL7.4? HOT 1
- Feature Request: reduce timeout for the 'Checking internet connectivity' check HOT 1
- Convert2rhel failed to convert Rocky 8.9 to rhel 8.9 on Satellete server HOT 5
- `EFI::UNEXPECTED_ERROR` when `blkid -p -s PART_ENTRY_NUMBER` is empty HOT 2
- Exception on Alma/Rocky 8.9 HOT 1
- Version 9.3 not supported yet HOT 3
- Passing environment variables HOT 2
- EFI::BOOTLOADER_ERROR with RAID + UEFI HOT 5
- [2.0.0] option --no-rpm-va is irgnored HOT 4
- [2.0.0] converting CentOS 7 to RHEL 7 fails with an python error HOT 11
- convert2rhel migration error HOT 4
- Convert2Rhel Migration from Rocky Error HOT 4
- FYI, converting from Rocky 8, issue with packages that have periods in the name HOT 2
- Support for EL9 based clones to convert to RHEL9 HOT 3
- convert2rhel silently hangs if too many (list too long) third-party packages HOT 11
- Error Message if LIST_THIRD_PARTY_PACKAGES HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from convert2rhel.