RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2046292 - convert2rhel fails when subscription-manager-initial-setup-addon is installed
Summary: convert2rhel fails when subscription-manager-initial-setup-addon is installed
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: convert2rhel
Version: 8.5
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Michal Bocek
QA Contact: Upgrades and Supportability
Miriam Portman
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-01-26 14:20 UTC by Christophe Besson
Modified: 2022-12-12 14:10 UTC (History)
3 users (show)

Fixed In Version: convert2rhel-0.26-1.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-12-12 14:10:47 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker OAMG-6422 0 None None None 2022-01-26 14:25:39 UTC
Red Hat Issue Tracker RHELC-93 0 None None None 2022-03-31 10:47:53 UTC
Red Hat Issue Tracker RHELPLAN-109837 0 None None None 2022-01-26 14:25:43 UTC
Red Hat Knowledge Base (Solution) 6673471 0 None None None 2022-01-28 00:51:35 UTC

Description Christophe Besson 2022-01-26 14:20:39 UTC
Description of problem:
convert2rhel fails to download the "subscription-manager-initial-setup-addon" package and then refuses to continue. The said package is not available anymore in the CentOS repository.

subscription-manager-initial-setup-addon-1.25.17-1.el8.x86_64	Wed Feb 26 11:57:17 2020	1582685837	CentOS	x86-01.mbox.centos.org	RSA/SHA256, Thu Dec  5 12:47:31 2019, Key ID 05b555b38483c65d

Version-Release number of selected component (if applicable):
convert2rhel-0.25-1.el8

How reproducible:
Always

Steps to Reproduce:
1. Install CentOS 8.5
2. Install the "subscription-manager-initial-setup-addon" package from https://access.redhat.com/downloads/content/subscription-manager-initial-setup-addon/1.28.21-3.el8/x86_64/fd431d51/package
3. Convert to RHEL 8.5

Actual results:
convert2rhel itself tries to uninstall it as per this output:
~~~
Upon continuing, we will uninstall the following subscription-manager/katello-ca-consumer packages:

Package                                                        Vendor/Packager  Repository
-------                                                        ---------------  ----------
subscription-manager-initial-setup-addon-1.25.17-1.el8.x86_64  CentOS           @AppStream
 :
 :
No package subscription-manager-initial-setup-addon available.
Exiting due to strict setting.
Error: No package subscription-manager-initial-setup-addon available.
 :
 :
CRITICAL - Couldn't download the subscription-manager-initial-setup-addon package. This means we will not be able to do a complete rollback and may put the system in a broken state.
Check to make sure that the CentOS Linux repositories are enabled and the package is updated to its latest version.
If you would rather ignore this check set the environment variable 'CONVERT2RHEL_UNSUPPORTED_INCOMPLETE_ROLLBACK'.
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/convert2rhel/main.py", line 102, in main
    pre_ponr_conversion()
  File "/usr/lib/python3.6/site-packages/convert2rhel/main.py", line 193, in pre_ponr_conversion
    subscription.replace_subscription_manager()
  File "/usr/lib/python3.6/site-packages/convert2rhel/subscription.py", line 203, in replace_subscription_manager
    remove_original_subscription_manager()
  File "/usr/lib/python3.6/site-packages/convert2rhel/subscription.py", line 222, in remove_original_subscription_manager
    utils.remove_pkgs(submgr_pkg_names, critical=False)
  File "/usr/lib/python3.6/site-packages/convert2rhel/utils.py", line 369, in remove_pkgs
    changed_pkgs_control.backup_and_track_removed_pkg(nvra)
  File "/usr/lib/python3.6/site-packages/convert2rhel/utils.py", line 316, in backup_and_track_removed_pkg
    restorable_pkg.backup()
  File "/usr/lib/python3.6/site-packages/convert2rhel/utils.py", line 581, in backup
    self.path = download_pkg(self.name, dest=BACKUP_DIR, set_releasever=False)
  File "/usr/lib/python3.6/site-packages/convert2rhel/utils.py", line 483, in download_pkg
    " 'CONVERT2RHEL_UNSUPPORTED_INCOMPLETE_ROLLBACK'." % (pkg, system_info.name)
  File "/usr/lib/python3.6/site-packages/convert2rhel/logger.py", line 146, in _critical
    sys.exit(msg)
SystemExit: Couldn't download the subscription-manager-initial-setup-addon package. This means we will not be able to do a complete rollback and may put the system in a broken state.
Check to make sure that the CentOS Linux repositories are enabled and the package is updated to its latest version.
If you would rather ignore this check set the environment variable 'CONVERT2RHEL_UNSUPPORTED_INCOMPLETE_ROLLBACK'.

WARNING - Abnormal exit! Performing rollback ...
~~~

Additional info:
- Uninstalling this package allows to continue the process.

Comment 1 Michal Bocek 2022-12-12 14:10:47 UTC
Sorry for not following up properly. This Bugzilla has been resolved by https://github.com/oamg/convert2rhel/pull/429 and it was released as part of the 0.26 build: https://cdn.redhat.com/content/public/convert2rhel/8/x86_64/os/Packages/c/.


Note You need to log in before you can comment on or make changes to this bug.