Bug 2017795
Summary: | [RFE]: Disallow manual subscription attachment in SCA mode | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Nikos Moumoulidis <nmoumoul> | |
Component: | subscription-manager | Assignee: | Pino Toscano <ptoscano> | |
Status: | CLOSED ERRATA | QA Contact: | Red Hat subscription-manager QE Team <rhsm-qe> | |
Severity: | medium | Docs Contact: | Jacob Taylor Valdez <jvaldez> | |
Priority: | high | |||
Version: | 8.5 | CC: | jhnidek, jsefler, ptoscano, redakkan, zpetrace | |
Target Milestone: | rc | Keywords: | EasyFix, FutureFeature, Triaged | |
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | subscription-manager-1.28.25-1.el8 | Doc Type: | Enhancement | |
Doc Text: |
.`subscription-manager` no longer allows manually attaching subscriptions to systems registered in Simple Content Access mode.
Previously, the ability to manually attach subscriptions in Simple Content Access (SCA) mode was enabled to ensure a smooth transition of users and systems from Entitlement mode to SCA mode. Currently, there is no need to manually attach a subscription to a system in SCA mode. With this upgrade, the `subscription-manager` ignores requests to attach subscriptions in systems registered in SCA mode.
----
# subscription-manager attach --pool=<_pool_ID_>
Ignoring request to attach. It is disabled for org "_12345_" because of the content access mode setting.
----
|
Story Points: | --- | |
Clone Of: | ||||
: | 2023257 2182768 (view as bug list) | Environment: | ||
Last Closed: | 2022-05-10 15:22:57 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: | 2023257, 2182768 |
Description
Nikos Moumoulidis
2021-10-27 12:44:11 UTC
We should probably also show this descriptive message when someone is registering with an activation key that has pools/products specified on it. (since Candlepin will start ignoring those values on the AK; see 2018469) Version: [root@kvm-04-guest15 ~]# subscription-manager version server type: This system is currently not registered. subscription management server: 3.2.21-1 subscription management rules: 5.41 subscription-manager: 1.28.24-1.git.37.8a08c55.el8 Pre-verification 1: [root@kvm-04-guest15 ~]# subscription-manager register Registering to: subscription.rhsm.stage.redhat.com:443/subscription Username: zpetracePH03 Password: The system has been registered with ID: b633a1c7-ee49-4e84-9064-fc9793b28e3f The registered system name is: kvm-04-guest15.hv2.lab.eng.bos.redhat.com [root@kvm-04-guest15 ~]# 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-04-guest15 ~]# subscription-manager list --available | grep Pool Pool ID: 8a99f9ac7b5ee892017bc59cbab16930 Pool ID: 8a99f9ac7b5ee892017bc59f5c236932 Pool ID: 8a99f9ad7bca8239017bdf952e2e051d Pool ID: 8a99f9ad7bca8239017bdf952e77051f Pool ID: 8a99f9ad7bca8239017bdf954e010521 [root@kvm-04-guest15 ~]# subscription-manager attach --pool=8a99f9ac7b5ee892017bc59f5c236932 Ignoring request to attach. It is disabled for org "13281785" because of the content access mode setting. [root@kvm-04-guest15 ~]# subscription-manager list --consumed No consumed subscription pools were found. Pre-verification 2: [root@kvm-04-guest15 ~]# subscription-manager register --activationkey=******* --org=***** The system has been registered with ID: 4b19a388-c5b8-4c67-badd-4b874572995d The registered system name is: kvm-04-guest15.hv2.lab.eng.bos.redhat.com [root@kvm-04-guest15 ~]# 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-04-guest15 ~]# subscription-manager attach --pool=8a99f9ac7b5ee892017bc59f5c236932 Ignoring request to attach. It is disabled for org "*****" because of the content access mode setting. Man page: ATTACH OPTIONS The attach command applies a specific subscription to the system. This command is not possible to use, when the content access mode of the organization to which the system is registered is simple content access mode. ^^ pre-verification PASSED Version: [root@kvm-04-guest06 rhsm]# subscription-manager version server type: This system is currently not registered. subscription management server: 3.2.21-1 subscription management rules: 5.41 subscription-manager: 1.28.25-1.git.9986.a2dead8.el8 registering: [root@kvm-04-guest06 rhsm]# subscription-manager register Registering to: subscription.rhsm.stage.redhat.com:443/subscription Username: zpetracePH03 Password: The system has been registered with ID: 10d09d80-ccce-4c0b-b26e-cac2a7ee77e0 The registered system name is: kvm-04-guest06.lab.eng.rdu2.redhat.com [root@kvm-04-guest06 rhsm]# 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 Verification 1: [root@kvm-04-guest06 rhsm]# subscription-manager list --available | grep Pool Pool ID: 8a99f9ac7b5ee892017bc59cbab16930 Pool ID: 8a99f9ac7b5ee892017bc59f5c236932 Pool ID: 8a99f9ad7bca8239017bdf952e2e051d Pool ID: 8a99f9ad7bca8239017bdf952e77051f Pool ID: 8a99f9ad7bca8239017bdf954e010521 [root@kvm-04-guest06 rhsm]# subscription-manager attach --pool=8a99f9ac7b5ee892017bc59f5c236932 Ignoring request to attach. It is disabled for org "13281785" because of the content access mode setting. Verification 2: [root@kvm-04-guest06 ~]# subscription-manager register --activationkey=activationkey1 --org=13281785 The system has been registered with ID: fab9b632-b3b8-4d85-8c67-f994c14f903d The registered system name is: kvm-04-guest06.lab.eng.rdu2.redhat.com [root@kvm-04-guest06 ~]# 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-04-guest06 ~]# subscription-manager attach --pool=8a99f9ac7b5ee892017bc59cbab16930 Ignoring request to attach. It is disabled for org "13281785" because of the content access mode setting. [root@kvm-04-guest06 ~]# subscription-manager list --consumed No consumed subscription pools were found. [root@kvm-04-guest06 rhsm]# subscription-manager list --consumed No consumed subscription pools were found. Hi @Pino No problem! I've edited the text accordingly. Has also been acked by peer-review. Setting rdt to + :) 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-2022:2047 |