Bug 1826300
| Summary: | When user tries to auto-attach on a system(registered to org that has 'Content Access Mode' is set to 'Simple Content Access') throw appropriate message [rhel-7.9.z] | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Shwetha Kallesh <skallesh> | |
| Component: | subscription-manager | Assignee: | Jiri Hnidek <jhnidek> | |
| Status: | CLOSED ERRATA | QA Contact: | Red Hat subscription-manager QE Team <rhsm-qe> | |
| Severity: | low | Docs Contact: | ||
| Priority: | high | |||
| Version: | 7.9 | CC: | arpandey, candlepin-bugs, csnyder, fperalta, jhnidek, jkrajice, jreznik, jsefler, ktordeur, redakkan, wpoteat | |
| Target Milestone: | rc | Keywords: | Triaged, ZStream | |
| Target Release: | --- | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1831082 (view as bug list) | Environment: | ||
| Last Closed: | 2020-12-15 11:20:20 UTC | Type: | Bug | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Embargoed: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1831082 | |||
|
Description
Shwetha Kallesh
2020-04-21 11:58:22 UTC
Hi Shwetha, Have you attached any other subscriptions aside from the simple content access mode provided entitlements ? thanks, Rehana [root@hpe-ml350egen8-01 ~]# subscription-manager register --serverurl shwetha-workstation.usersys.redhat.com:8443/candlepin
Registering to: shwetha-workstation.usersys.redhat.com:8443/candlepin
Username: admin
Password:
Hint: User "admin" is member of following organizations: donaldduck, admin, snowwhite
Organization: snowwhite
The system has been registered with ID: 69377c74-28c3-4781-a55e-e8444b09c73e
The registered system name is: hpe-ml350egen8-01.hpe2.lab.eng.bos.redhat.com
[root@hpe-ml350egen8-01 ~]# subscription-manager status
+-------------------------------------------+
System Status Details
+-------------------------------------------+
Overall Status: Disabled
Content Access Mode is set to Simple Content Access. This host has access to content, regardless of subscription status.
System Purpose Status: Disabled
You have new mail in /var/spool/mail/root
[root@hpe-ml350egen8-01 ~]# subscription-manager list --avail
+-------------------------------------------+
Available Subscriptions
+-------------------------------------------+
Subscription Name: Multi-Attribute Stackable (2 GB, 2 Cores, no content)
Provides: Multi-Attribute Limited Product (no content)
SKU: 2cores-2ram-multiattr
Contract: 0
Pool ID: 8ac6a34171ab82420171ab837db104b6
Provides Management: No
Available: 5
Suggested: 5
Service Type: Level 3
Roles:
Service Level: Premium
Usage:
Add-ons:
Subscription Type: Stackable
Starts: 04/23/2020
Ends: 04/23/2021
Entitlement Type: Physical
Subscription Name: SP Starter Pack (S: Premium, R: SP Starter)
Provides: SP Server Bits
SP Starter Pack Bits
SKU: sp-starter-pack
Contract: 1
Pool ID: 8ac6a34171ab82420171ab8384c906aa
Provides Management: Yes
Available: 10
Suggested: 1
Service Type: L1-L3
Roles: SP Starter
Service Level: Premium
Usage:
Add-ons:
Subscription Type: Standard
Starts: 04/23/2020
Ends: 04/23/2021
Entitlement Type: Physical
[root@hpe-ml350egen8-01 ~]# subscription-manager attach --pool 8ac6a34171ab82420171ab8384c906aa
Successfully attached a subscription for: SP Starter Pack (S: Premium, R: SP Starter)
[root@hpe-ml350egen8-01 ~]# subscription-manager list --consumed
+-------------------------------------------+
Consumed Subscriptions
+-------------------------------------------+
Subscription Name: SP Starter Pack (S: Premium, R: SP Starter)
Provides: SP Starter Pack Bits
SP Server Bits
SKU: sp-starter-pack
Contract: 1
Account: 12331131231
Serial: 4720399004538979106
Pool ID: 8ac6a34171ab82420171ab8384c906aa
Provides Management: Yes
Active: True
Quantity Used: 1
Service Type: L1-L3
Roles: SP Starter
Service Level: Premium
Usage:
Add-ons:
Status Details: Subscription is current
Subscription Type: Standard
Starts: 04/23/2020
Ends: 04/23/2021
Entitlement Type: Physical
[root@hpe-ml350egen8-01 ~]# ls /etc/pki/entitlement/
4720399004538979106-key.pem 4720399004538979106.pem 5707616291560907015-key.pem 5707616291560907015.pem
*** Bug 1703928 has been marked as a duplicate of this bug. *** Reproducer: [root@ibm-x3650m4-01-vm-12 /]# subscription-manager version server type: This system is currently not registered. subscription management server: 3.2.0-1 subscription management rules: 5.41 subscription-manager: 1.24.42-1.el7 [root@ibm-x3650m4-01-vm-12 /]# [root@ibm-x3650m4-01-vm-12 /]# subscription-manager register --username ***** --password ***** --org snowwhite Registering to: archana-candlepin.usersys.redhat.com:8443/candlepin The system has been registered with ID: 663b49bc-3161-4daf-938b-ade98576281b The registered system name is: ibm-x3650m4-01-vm-12.ibm2.lab.eng.bos.redhat.com [root@ibm-x3650m4-01-vm-12 /]# subscription-manager status +-------------------------------------------+ System Status Details +-------------------------------------------+ Overall Status: Disabled Content Access Mode is set to Simple Content Access. This host has access to content, regardless of subscription status. System Purpose Status: Disabled [root@ibm-x3650m4-01-vm-12 /]# subscription-manager attach --auto All installed products are covered by valid entitlements. No need to update subscriptions at this time. [root@ibm-x3650m4-01-vm-12 /]# ^^^^^^^-----info that should be updated with expected result ============================================================================= Verifying fix on : subscription-manager-1.24.43-1.el7_9.x86_64 [root@ibm-x3650m4-01-vm-12 /]# subscription-manager version server type: Red Hat Subscription Management subscription management server: 3.2.0-1 subscription management rules: 5.41 subscription-manager: 1.24.43-1.el7_9 [root@ibm-x3650m4-01-vm-12 /]# subscription-manager register --username ***** --password ***** --org snowwhite Registering to: archana-candlepin.usersys.redhat.com:8443/candlepin The system has been registered with ID: 6b5fec12-3cc3-4a8d-b550-7583094428d9 The registered system name is: ibm-x3650m4-01-vm-12.ibm2.lab.eng.bos.redhat.com [root@ibm-x3650m4-01-vm-12 /]# subscription-manager status +-------------------------------------------+ System Status Details +-------------------------------------------+ Overall Status: Disabled Content Access Mode is set to Simple Content Access. This host has access to content, regardless of subscription status. System Purpose Status: Disabled [root@ibm-x3650m4-01-vm-12 /]# subscription-manager attach --auto Ignoring request to auto-attach. It is disabled for organization: "Snow White", because Simple Content Access is in use. [root@ibm-x3650m4-01-vm-12 /]# ^^---mismatch in org name, better would be snowwhite Actual results: Ignoring request to auto-attach. It is disabled for organization: "Snow White", because Simple Content Access is in use. Expected results: Ignoring request to auto-attach. It is disabled for org "snowwhite" because of the content access mode setting. Additional info for Comment 8 : [root@ibm-x3650m4-01-vm-12 /]# subscription-manager register --org snowwhite --username ***** --password ***** --force --auto-attach Unregistering from: archana-candlepin.usersys.redhat.com:8443/candlepin The system with UUID 44e7bf77-ce72-4f4c-9eb0-d3acfd36f634 has been unregistered All local data removed Registering to: archana-candlepin.usersys.redhat.com:8443/candlepin The system has been registered with ID: 5014e93f-df36-4b11-8378-b98c50935848 The registered system name is: ibm-x3650m4-01-vm-12.ibm2.lab.eng.bos.redhat.com Ignoring request to auto-attach. It is disabled for org "snowwhite" because of the content access mode setting. [root@ibm-x3650m4-01-vm-12 /]# ^^^----info incase of --auto-attach Verifying on subscription-manager-1.24.45-1.el7_9.x86_64 Version-Release number of selected component (if applicable): [root@kvm-02-guest14 ~]# subscription-manager version server type: This system is currently not registered. subscription management server: 3.2.0-1 subscription management rules: 5.41 subscription-manager: 1.24.45-1.el7_9 [root@kvm-02-guest14 ~]# Verification Steps: [root@kvm-02-guest14 ~]# [root@kvm-02-guest14 ~]# rpm -qa --changelog subscription-manager | grep 1826300 - 1826300: Better messages for attach --auto for SCA mode; ENT-3175 - 1826300: Ignore auto-attach, when SCA mode is used [root@kvm-02-guest14 ~]# [root@kvm-02-guest14 ~]# subscription-manager register --username ****** --password ***** --org snowwhite --serverurl archana-candlepin.usersys.redhat.com:8443/candlepin Registering to: archana-candlepin.usersys.redhat.com:8443/candlepin The system has been registered with ID: 35fb1487-e93b-440b-9391-e6f2c607a92e The registered system name is: kvm-02-guest14.hv2.lab.eng.bos.redhat.com [root@kvm-02-guest14 ~]# [root@kvm-02-guest14 ~]# subscription-manager status +-------------------------------------------+ System Status Details +-------------------------------------------+ Overall Status: Disabled Content Access Mode is set to Simple Content Access. This host has access to content, regardless of subscription status. System Purpose Status: Disabled [root@kvm-02-guest14 ~]# [root@kvm-02-guest14 ~]# subscription-manager attach --auto Ignoring request to auto-attach. It is disabled for org "snowwhite" because of the content access mode setting. [root@kvm-02-guest14 ~]# Actual Results: Ignoring request to auto-attach. It is disabled for org "snowwhite" because of the content access mode setting. Expected Results: Ignoring request to auto-attach. It is disabled for org "snowwhite" because of the content access mode setting. 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 (subscription-manager 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-2020:5452 |