Code Monkey home page Code Monkey logo

Comments (1)

bocekm avatar bocekm commented on September 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.