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 1873312 - leapp preupgrade is failing on the client when SCA enabled manifest is used on the Satellite server
Summary: leapp preupgrade is failing on the client when SCA enabled manifest is used o...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: leapp-repository
Version: 7.9
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: 7.9
Assignee: Michal Reznik
QA Contact: Alois Mahdal
URL:
Whiteboard:
Depends On:
Blocks: 1818077 1818088
TreeView+ depends on / blocked
 
Reported: 2020-08-27 19:57 UTC by Dhaval Joshi
Modified: 2024-03-25 16:22 UTC (History)
17 users (show)

Fixed In Version: leapp-repository-0.13.0-1.el7_9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-02-16 08:59:00 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 5709401 0 None None None 2021-01-18 20:44:42 UTC

Internal Links: 1953622

Description Dhaval Joshi 2020-08-27 19:57:58 UTC
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.

Comment 11 Rich Jerrido 2020-09-02 12:58:30 UTC
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

Comment 25 Petr Stodulka 2021-01-04 12:47:27 UTC
The feature is going to be implemented by this PR:
  https://github.com/oamg/leapp-repository/pull/615

Currently it's waiting for the verification.

Comment 27 Petr Stodulka 2021-01-13 14:41:59 UTC
The fix is merged in upstream so it will be part of the next release.

Comment 37 errata-xmlrpc 2021-02-16 08:59:00 UTC
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


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