Bug 2020284
| Summary: | AttributeError: 'dict' object has no attribute 'result' | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Pino Toscano <ptoscano> |
| Component: | subscription-manager | Assignee: | Pino Toscano <ptoscano> |
| Status: | CLOSED ERRATA | QA Contact: | Red Hat subscription-manager QE Team <rhsm-qe> |
| Severity: | low | Docs Contact: | |
| Priority: | high | ||
| Version: | --- | CC: | arpandey, candlepin-bugs, jsefler, ptoscano, redakkan, rhsm-qe |
| Target Milestone: | rc | Keywords: | EasyFix, Regression, Triaged |
| Target Release: | 8.6 | Flags: | pm-rhel:
mirror+
|
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | subscription-manager-1.28.24-1.el8 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 2020248 | Environment: | |
| Last Closed: | 2022-05-10 15:22:58 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: | 2020248 | ||
| Bug Blocks: | |||
|
Description
Pino Toscano
2021-11-04 14:19:04 UTC
Pre-Verification: Reproducing on build subscription-manager-1.28.21-3.el8.x86_64 [root@kvm-01-guest13 ~]# rpm -qa subscription-manager subscription-manager-1.28.21-3.el8.x86_64 [root@kvm-01-guest13 ~]# [root@kvm-01-guest13 ~]# subscription-manager register --username rhel9-stackablePool --password ***** Registering to: subscription.rhsm.stage.redhat.com:443/subscription The system has been registered with ID: f019cd1e-c00f-4cbd-b746-579fec7248ed The registered system name is: kvm-01-guest13.lab.eng.brq.redhat.com [root@kvm-01-guest13 ~]# [root@kvm-01-guest13 ~]# [root@kvm-01-guest13 ~]# curl --stderr /dev/null --insecure --user rhel9-stackablePool:***** --request DELETE https://subscription.rhsm.stage.redhat.com/candlepin/consumers/f019cd1e-c00f-4cbd-b746-579fec7248ed [root@kvm-01-guest13 ~]# [root@kvm-01-guest13 ~]# subscription-manager identity Consumer profile "f019cd1e-c00f-4cbd-b746-579fec7248ed" has been deleted from the server. You can use command clean or unregister to remove local profile. [root@kvm-01-guest13 ~]# [root@kvm-01-guest13 ~]# subscription-manager service-level Consumer profile "f019cd1e-c00f-4cbd-b746-579fec7248ed" has been deleted from the server. You can use command clean or unregister to remove local profile. [root@kvm-01-guest13 ~]# subscription-manager role 'dict' object has no attribute 'result' <<< FAIL [root@kvm-01-guest13 ~]# subscription-manager usage 'dict' object has no attribute 'result' <<< FAIL [root@kvm-01-guest13 ~]# subscription-manager addons 'dict' object has no attribute 'result' <<< FAIL [root@kvm-01-guest13 ~]# ======================================================================================================================= Verifying on build : [root@kvm-01-guest13 ~]# 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.el8 [root@kvm-01-guest13 ~]# [root@kvm-01-guest13 ~]# subscription-manager register --username rhel9-stackablePool --password ***** Registering to: subscription.rhsm.stage.redhat.com:443/subscription The system has been registered with ID: 9a2cb1f9-f1da-4329-80b3-6b5b29f9cb8c The registered system name is: kvm-01-guest13.lab.eng.brq.redhat.com [root@kvm-01-guest13 ~]# [root@kvm-01-guest13 ~]# [root@kvm-01-guest13 ~]# rpm -qa --changelog | grep 2020284 - 2020284: handle server-side consumer deletion in syspurpose commands - 2020284: handle server-side consumer deletion in syspurpose commands - 2020284: handle server-side consumer deletion in syspurpose commands - 2020284: handle server-side consumer deletion in syspurpose commands - 2020284: handle server-side consumer deletion in syspurpose commands - 2020284: handle server-side consumer deletion in syspurpose commands [root@kvm-01-guest13 ~]# [root@kvm-01-guest13 ~]# [root@kvm-01-guest13 ~]# curl --stderr /dev/null --insecure --user rhel9-stackablePool:***** --request DELETE https://subscription.rhsm.stage.redhat.com/candlepin/consumers/9a2cb1f9-f1da-4329-80b3-6b5b29f9cb8c [root@kvm-01-guest13 ~]# [root@kvm-01-guest13 ~]# subscription-manager identity Consumer profile "9a2cb1f9-f1da-4329-80b3-6b5b29f9cb8c" has been deleted from the server. You can use command clean or unregister to remove local profile. <<< PASS [root@kvm-01-guest13 ~]# subscription-manager role Consumer profile "9a2cb1f9-f1da-4329-80b3-6b5b29f9cb8c" has been deleted from the server. You can use command clean or unregister to remove local profile. <<< PASS [root@kvm-01-guest13 ~]# subscription-manager service-level Consumer profile "9a2cb1f9-f1da-4329-80b3-6b5b29f9cb8c" has been deleted from the server. You can use command clean or unregister to remove local profile. <<< PASS [root@kvm-01-guest13 ~]# subscription-manager usage Consumer profile "9a2cb1f9-f1da-4329-80b3-6b5b29f9cb8c" has been deleted from the server. You can use command clean or unregister to remove local profile. <<< PASS [root@kvm-01-guest13 ~]# subscription-manager addons Consumer profile "9a2cb1f9-f1da-4329-80b3-6b5b29f9cb8c" has been deleted from the server. You can use command clean or unregister to remove local profile. <<< PASS [root@kvm-01-guest13 ~]# [root@kvm-01-guest13 ~]# subscription-manager syspurpose Consumer profile "9a2cb1f9-f1da-4329-80b3-6b5b29f9cb8c" has been deleted from the server. You can use command clean or unregister to remove local profile. <<< PASS [root@kvm-01-guest13 ~]# [root@kvm-01-guest13 ~]# subscription-manager syspurpose role Consumer profile "9a2cb1f9-f1da-4329-80b3-6b5b29f9cb8c" has been deleted from the server. You can use command clean or unregister to remove local profile. <<< PASS [root@kvm-01-guest13 ~]# [root@kvm-01-guest13 ~]# subscription-manager syspurpose usage Consumer profile "9a2cb1f9-f1da-4329-80b3-6b5b29f9cb8c" has been deleted from the server. You can use command clean or unregister to remove local profile. <<< PASS [root@kvm-01-guest13 ~]# [root@kvm-01-guest13 ~]# subscription-manager addons Consumer profile "9a2cb1f9-f1da-4329-80b3-6b5b29f9cb8c" has been deleted from the server. You can use command clean or unregister to remove local profile. <<< PASS [root@kvm-01-guest13 ~]# Actual results: Consumer profile "9a2cb1f9-f1da-4329-80b3-6b5b29f9cb8c" has been deleted from the server. You can use command clean or unregister to remove local profile. Expected results: Consumer profile "9a2cb1f9-f1da-4329-80b3-6b5b29f9cb8c" has been deleted from the server. You can use command clean or unregister to remove local profile. Additional info: snippet from rhsm.log - 2021-11-19 10:47:51,147 [WARNING] subscription-manager:53134:MainThread @cache.py:921 - Unable to get data for <class 'subscription_manager.cache.CurrentOwnerCache'> using REST API: HTTP error (410 - Gone): Unit 9a2cb1f9-f1da-4329-80b3-6b5b29f9cb8c has been deleted 2021-11-19 10:47:51,148 [CRITICAL] subscription-manager:53134:MainThread @managercli.py:559 - Consumer profile "9a2cb1f9-f1da-4329-80b3-6b5b29f9cb8c" has been deleted from the server. 2021-11-19 10:47:57,599 [CRITICAL] subscription-manager:53138:MainThread @managercli.py:559 - Consumer profile "9a2cb1f9-f1da-4329-80b3-6b5b29f9cb8c" has been deleted from the server. 2021-11-19 10:48:07,730 [CRITICAL] subscription-manager:53145:MainThread @managercli.py:559 - Consumer profile "9a2cb1f9-f1da-4329-80b3-6b5b29f9cb8c" has been deleted from the server. 2021-11-19 10:48:17,036 [CRITICAL] subscription-manager:53151:MainThread @managercli.py:559 - Consumer profile "9a2cb1f9-f1da-4329-80b3-6b5b29f9cb8c" has been deleted from the server. 2021-11-19 10:48:30,527 [CRITICAL] subscription-manager:53158:MainThread @managercli.py:559 - Consumer profile "9a2cb1f9-f1da-4329-80b3-6b5b29f9cb8c" has been deleted from the server. 2021-11-19 10:49:34,736 [CRITICAL] subscription-manager:53190:MainThread @managercli.py:559 - Consumer profile "9a2cb1f9-f1da-4329-80b3-6b5b29f9cb8c" has been deleted from the server. 2021-11-19 10:49:47,379 [CRITICAL] subscription-manager:53199:MainThread @managercli.py:559 - Consumer profile "9a2cb1f9-f1da-4329-80b3-6b5b29f9cb8c" has been deleted from the server. 2021-11-19 10:49:59,024 [CRITICAL] subscription-manager:53206:MainThread @managercli.py:559 - Consumer profile "9a2cb1f9-f1da-4329-80b3-6b5b29f9cb8c" has been deleted from the server. 2021-11-19 10:50:07,843 [CRITICAL] subscription-manager:53212:MainThread @managercli.py:559 - Consumer profile "9a2cb1f9-f1da-4329-80b3-6b5b29f9cb8c" has been deleted from the server. 2021-11-19 10:55:03,573 [CRITICAL] subscription-manager:53333:MainThread @managercli.py:559 - Consumer profile "9a2cb1f9-f1da-4329-80b3-6b5b29f9cb8c" has been deleted from the server. Verification : PASSED Verifying on : ------------ # 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.el8 # rpm -qa subscription-manager --changelog | grep 2020284 - 2020284: handle server-side consumer deletion in syspurpose commands # subscription-manager register --username entitlement_rhsm_1 --password=***** Registering to: subscription.rhsm.stage.redhat.com:443/subscription The system has been registered with ID: 685f52fc-c562-4429-a792-f2d4b2da4746 The registered system name is: hpe-dl380pgen8-02-vm-6.hpe2.lab.eng.bos.redhat.com # curl --stderr /dev/null --insecure --user entitlement_rhsm_1:test@123 --request DELETE https://subscription.rhsm.stage.redhat.com/candlepin/consumers/685f52fc-c562-4429-a792-f2d4b2da4746 # subscription-manager identity Consumer profile "685f52fc-c562-4429-a792-f2d4b2da4746" has been deleted from the server. You can use command clean or unregister to remove local profile. # subscription-manager service-level Consumer profile "685f52fc-c562-4429-a792-f2d4b2da4746" has been deleted from the server. You can use command clean or unregister to remove local profile. # subscription-manager role Consumer profile "685f52fc-c562-4429-a792-f2d4b2da4746" has been deleted from the server. You can use command clean or unregister to remove local profile. # subscription-manager usage Consumer profile "685f52fc-c562-4429-a792-f2d4b2da4746" has been deleted from the server. You can use command clean or unregister to remove local profile. # subscription-manager addons Consumer profile "685f52fc-c562-4429-a792-f2d4b2da4746" has been deleted from the server. You can use command clean or unregister to remove local profile. # subscription-manager syspurpose Consumer profile "685f52fc-c562-4429-a792-f2d4b2da4746" has been deleted from the server. You can use command clean or unregister to remove local profile. # subscription-manager syspurpose role Consumer profile "685f52fc-c562-4429-a792-f2d4b2da4746" has been deleted from the server. You can use command clean or unregister to remove local profile. # subscription-manager syspurpose usage Consumer profile "685f52fc-c562-4429-a792-f2d4b2da4746" has been deleted from the server. You can use command clean or unregister to remove local profile. # subscription-manager addons Consumer profile "685f52fc-c562-4429-a792-f2d4b2da4746" has been deleted from the server. You can use command clean or unregister to remove local profile. No more errors in client tool when consumer was deleted from the server. Based on the above observations, moving the bug to Verified!! 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 |