• Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Undefined Undefined
    • 2.0.0
    • None
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • 0
    • Testable

      The parent issue RHELC-1494 has the label that triggered autocreation of this subtask to track the relative story point estimation for the integration test part of the issue.

      The parent issue description at the time of creation of this issue was:
      During pre conversion, we disable all repositories. In the next step we enable just the RHEL repositories we need (either the default repoid as defined in the distro related configs or the repoids specified by the customer through the --enablerepo CLI option). https://github.com/oamg/convert2rhel/blob/main/convert2rhel/actions/pre_ponr_changes/subscription.py#L202

      But when you run the "convert2rhel analyze" and the system is using Satellite with a single activation key that provides both original vendor repos and RHEL repos, all repos including the original vendor repos are disabled. After disabling all repos convert2rhel enables just the specific RHEL repos. However, the rollback does not revert both the disabling and enabling of repos.

      When using the single activation key, its expected that before running convert2rhel the original vendor repos are enabled and RHEL repos disabled. But after the analysis step the system is left in an opposite configuration - the repos from the original vendor are disabled and the RHEL repos enabled.

      Reproducer:

      1. register a system to Satellite with an activation key that provides both CentOS 7 and RHEL 7 repos - subscription-manager register --org="Default_Organization" --activationkey="rhel7_and_centos7"
      2. make sure the CentOS 7 repo is enabled and the RHEL 7 repo disabled prior to running convert2rhel - subscription-manager repos --enable=Default_Organization_CentOS_Linux_7_CentOS_Linux_7 --enable=Default_Organization_CentOS_Linux_7_CentOS_Linux_7_Updates_faster_fit --disable=rhel-7-server-rpms
      3. a workaround until RHELC-1385 is fixed - sed -i 's| and repo != "redhat.repo":|:|' /usr/lib/python2.7/site-packages/convert2rhel/actions/pre_ponr_changes/backup_system.py
      4. run convert2rhel without credentials - convert2rhel analyze -y --debug

      Possible solution:

      • remove the disabling of repos through sub-man completely, it's probably not needed (by mbocek@redhat.com)

      Acceptance Criteria:

      • repos after analysis are in the same enabled/disabled state as before the conversion

              rolivier@redhat.com Rodolfo Olivieri
              rhel-process-autobot RHEL Jira bot
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: