Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
Description of problem:
leapp preupgrade command is failing on the on the rhel-7 client when simple content access is enabled
Version-Release number of selected component (if applicable):
Satellite 6.8.0
RHEL 7.8
leapp-0.10.0-2.el7_8
How reproducible:
100%
Steps to Reproduce:
1. Use SCA enabled manifest on the Satellite server.
2. Sync RHEL-7 and RHEL 8.2 repositories on the Satellite server
3. Register RHEL-7 client with the Satellite server, enable required repositories and perform #yum update.
4. Install leapp & leapp-repository packages
5. # leapp preupgrade
Actual results:
leapp preupgrade is failing with error :
Upgrade has been inhibited due to the following problems:
1. Inhibitor: The system is not registered or subscribed.
Consult the pre-upgrade report for details and possible remediation.
Expected results:
leapp preuprade should be succssful.
Additional info:
After attaching the subscription to the host, leapp preupgrade is successful. RHEL 7.8 updated to RHEL 8.2 successfully.
SCA is a new entitlement experience (currently in Satellite, but will soon be in RHSM) which removes the requirement to have to attach an entitlement to get access to content. Please see [1] for a bit more details
In the scope of applications which interact with subscription tooling, checking for 'do I have an entitlement attached' is no longer an effective test for 'do I have access to content'? You should call 'subscription-manager status' and check its return code.
NON-SCA
#######
#subscription-manager status
+-------------------------------------------+
System Status Details
+-------------------------------------------+
Overall Status: Current
System Purpose Status: Matched
#echo $?
0
#subscription-manager remove --all
1 local certificate has been deleted.
1 subscription removed at the server.
#subscription-manager status
+-------------------------------------------+
System Status Details
+-------------------------------------------+
Overall Status: Invalid
Red Hat Software Collections (for RHEL Server):
- Not supported by a valid subscription.
Red Hat Enterprise Linux Server:
- Not supported by a valid subscription.
Red Hat Ansible Engine:
- Not supported by a valid subscription.
Red Hat Satellite:
- Not supported by a valid subscription.
System Purpose Status: Mismatched
- The service level preference "Premium" is not provided by a currently consumed
subscription.
#echo $?
1
SCA
###
#subscription-manager status
+-------------------------------------------+
System Status Details
+-------------------------------------------+
Overall Status: Disabled
Content Access Mode is set to Organization/Environment Access. This host has access
to content, regardless of subscription status.
System Purpose Status: Disabled
#echo $?
0
0 == You're good, proceed.
1 (or non-zero to be proper) == error. Halt.
[1] https://access.redhat.com/articles/simple-content-access
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory (leapp and leapp-repository bug fix and enhancement update), and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHBA-2021:0569