Bug 1831082
| 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 | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Rehana <redakkan> |
| 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: | 8.3 | CC: | arpandey, candlepin-bugs, jhnidek, jsefler, qianzhan, redakkan, rhsm-qe, skallesh, wpoteat |
| Target Milestone: | rc | Keywords: | Triaged |
| Target Release: | 8.0 | Flags: | pm-rhel:
mirror+
|
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1826300 | Environment: | |
| Last Closed: | 2021-05-18 13:32:41 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: | 1826300 | ||
| Bug Blocks: | |||
Early Testing:
Verifying on development build with subscription-manager: 1.28.6-1.el8
Version-Release number of selected component (if applicable):
Beaker Test information:
HOSTNAME=ibm-x3650m4-01-vm-14.ibm2.lab.eng.bos.redhat.com
JOBID=4739719
RECIPEID=9075527
RESULT_SERVER=
DISTRO=RHEL-8.4.0-20201118.d.3
ARCHITECTURE=x86_64
[root@ibm-x3650m4-01-vm-14 ~]# 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.28.6-1.el8
Verification steps:
[root@ibm-x3650m4-01-vm-14 ~]# rpm -qa --changelog subscription-manager | grep 1831082
- 1831082: Better messages for attach --auto for SCA mode; ENT-3175
[root@ibm-x3650m4-01-vm-14 ~]# 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: 72647b56-4a5c-4ebc-9b3e-be111d92b272
The registered system name is: ibm-x3650m4-01-vm-14.ibm2.lab.eng.bos.redhat.com
[root@ibm-x3650m4-01-vm-14 ~]# subscription-manager attach --auto
Ignoring request to auto-attach. It is disabled for org "snowwhite" because of the content access mode setting.
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.
Based on above results moving verified field to tested.
verifying on subscription-manager-1.28.6-1.el8.x86_64
Version-Release number of selected component (if applicable):
Beaker Test information:
HOSTNAME=kvm-02-guest12.hv2.lab.eng.bos.redhat.com
JOBID=4753197
RECIPEID=9096545
RESULT_SERVER=
DISTRO=RHEL-8.4.0-20201125.n.0
ARCHITECTURE=x86_64
[root@kvm-02-guest12 ~]# 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.28.6-1.el8
Verification steps:
[root@kvm-02-guest12 ~]# rpm -qa --changelog subscription-manager | grep 1831082
- 1831082: Better messages for attach --auto for SCA mode; ENT-3175
[root@kvm-02-guest12 ~]# subscription-manager register --username testuser1 --password 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: 66c36d40-d3dc-4972-94cd-b47f1380fc6e
The registered system name is: kvm-02-guest12.hv2.lab.eng.bos.redhat.com
[root@kvm-02-guest12 ~]#
[root@kvm-02-guest12 ~]# 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-guest12 ~]#
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-2021:1575 |
Early Testing: Reproducer: [root@ibm-x3650m4-01-vm-02 ~]# 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.27.16-1.el8 [root@ibm-x3650m4-01-vm-02 ~]# 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: 90a7a89c-f45d-4112-8f31-b201301a8ab2 The registered system name is: ibm-x3650m4-01-vm-02.ibm2.lab.eng.bos.redhat.com [root@ibm-x3650m4-01-vm-02 ~]# 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-02 ~]# ^^^^ appropriate message needs to be shown ========================================================================================================================== verifying fix on master scratch build : subscription-manager-1.28.4-1.git.4.9e791e4.el8.x86_64 [root@ibm-x3650m4-01-vm-02 ~]# 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.28.4-1.git.4.9e791e4.el8 [root@ibm-x3650m4-01-vm-02 ~]# 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: 7eba257b-a0e7-45da-819a-24f88d6f313d The registered system name is: ibm-x3650m4-01-vm-02.ibm2.lab.eng.bos.redhat.com [root@ibm-x3650m4-01-vm-02 ~]# [root@ibm-x3650m4-01-vm-02 ~]# subscription-manager attach --auto Ignoring request to auto-attach. It is disabled for organization: "Snow White", because Simple Content Access is in use. ^^^-----Message updated with Org name, can be updated with org id to match response incase of --auto-attach Trying with option –auto-attach: [root@ibm-x3650m4-01-vm-02 ~]# subscription-manager register --username testuser1 --password password --org snowwhite --auto-attach --force Unregistering from: archana-candlepin.usersys.redhat.com:8443/candlepin The system with UUID 7eba257b-a0e7-45da-819a-24f88d6f313d has been unregistered All local data removed Registering to: archana-candlepin.usersys.redhat.com:8443/candlepin The system has been registered with ID: 1ac90c4e-5656-43e2-9cf2-60c4dcce99f5 The registered system name is: ibm-x3650m4-01-vm-02.ibm2.lab.eng.bos.redhat.com Ignoring request to auto-attach. It is disabled for org "snowwhite" because of the content access mode setting. ^^^^----org-id used here, also the message is different