Description of problem: Not able to unsubscribe from GUI Version-Release number of selected component (if applicable): [root@dhcp201-196 product]# rpm -qa | grep subscription-manager subscription-manager-gui-1.0.14-1.git.10.4cd750a.el5 subscription-manager-migration-1.0.14-1.git.10.4cd750a.el5 subscription-manager-migration-data-1.11.2.3-1.git.0.861f9ba.el5 subscription-manager-firstboot-1.0.14-1.git.10.4cd750a.el5 subscription-manager-1.0.14-1.git.10.4cd750a.el5 How reproducible: Steps to Reproduce: 1.[root@dhcp201-115 ~]# subscription-manager-gui Traceback (most recent call last): File "/usr/share/rhsm/subscription_manager/gui/mysubstab.py", line 127, in _on_unsubscribe_prompt_response if self.backend.is_registered(): File "/usr/share/rhsm/subscription_manager/gui/managergui.py", line 151, in is_registered return self.consumer.is_valid() AttributeError: 'Backend' object has no attribute 'consumer' Traceback (most recent call last): File "/usr/share/rhsm/subscription_manager/gui/mysubstab.py", line 127, in _on_unsubscribe_prompt_response if self.backend.is_registered(): File "/usr/share/rhsm/subscription_manager/gui/managergui.py", line 151, in is_registered return self.consumer.is_valid() AttributeError: 'Backend' object has no attribute 'consumer' Traceback (most recent call last): File "/usr/share/rhsm/subscription_manager/gui/mysubstab.py", line 127, in _on_unsubscribe_prompt_response if self.backend.is_registered(): File "/usr/share/rhsm/subscription_manager/gui/managergui.py", line 151, in is_registered return self.consumer.is_valid() AttributeError: 'Backend' object has no attribute 'consumer' Traceback (most recent call last): File "/usr/share/rhsm/subscription_manager/gui/mysubstab.py", line 127, in _on_unsubscribe_prompt_response if self.backend.is_registered(): File "/usr/share/rhsm/subscription_manager/gui/managergui.py", line 151, in is_registered return self.consumer.is_valid() AttributeError: 'Backend' object has no attribute 'consumer' Traceback (most recent call last): File "/usr/share/rhsm/subscription_manager/gui/mysubstab.py", line 127, in _on_unsubscribe_prompt_response if self.backend.is_registered(): File "/usr/share/rhsm/subscription_manager/gui/managergui.py", line 151, in is_registered return self.consumer.is_valid() AttributeError: 'Backend' object has no attribute 'consumer' Traceback (most recent call last): File "/usr/share/rhsm/subscription_manager/gui/mysubstab.py", line 127, in _on_unsubscribe_prompt_response if self.backend.is_registered(): File "/usr/share/rhsm/subscription_manager/gui/managergui.py", line 151, in is_registered return self.consumer.is_valid() AttributeError: 'Backend' object has no attribute 'consumer' Traceback (most recent call last): File "/usr/share/rhsm/subscription_manager/gui/mysubstab.py", line 127, in _on_unsubscribe_prompt_response if self.backend.is_registered(): File "/usr/share/rhsm/subscription_manager/gui/managergui.py", line 151, in is_registered return self.consumer.is_valid() AttributeError: 'Backend' object has no attribute 'consumer' [root@dhcp201-115 ~]# subscription-manager-gui Traceback (most recent call last): File "/usr/share/rhsm/subscription_manager/gui/mysubstab.py", line 127, in _on_unsubscribe_prompt_response if self.backend.is_registered(): File "/usr/share/rhsm/subscription_manager/gui/managergui.py", line 151, in is_registered return self.consumer.is_valid() AttributeError: 'Backend' object has no attribute 'consumer' 2. 3. Actual results: Expected results: Additional info:
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux release for currently deployed products. This request is not yet committed for inclusion in a release.
Can not reproduce: [root@bkearney ~]# subscription-manager-gui [root@bkearney ~]# rpm -qa | grep python-rhsm python-rhsm-1.0.5-1.git.1.1ce0910.fc17.x86_64 [root@bkearney ~]# rpm -qa | grep subscription subscription-manager-gui-1.0.14-1.git.27.c389edc.fc17.x86_64 subscription-manager-1.0.14-1.git.27.c389edc.fc17.x86_64 [root@bkearney ~]# subscription-manager register --auto Username: rhn-cservice-acarter Password: The system has been registered with id: 775f27bf-fb0e-4a1d-a436-c3d3d42470ea Installed Product Current Status: Product Name: Red Hat Enterprise Linux Server Status: Subscribed [root@bkearney ~]# subscription-manager-gui
I can still reproduce that [root@dhcp201-115 ~]# subscription-manager-gui Traceback (most recent call last): File "/usr/share/rhsm/subscription_manager/gui/mysubstab.py", line 127, in _on_unsubscribe_prompt_response if self.backend.is_registered(): File "/usr/share/rhsm/subscription_manager/gui/managergui.py", line 151, in is_registered return self.consumer.is_valid() AttributeError: 'Backend' object has no attribute 'consumer' [root@dhcp201-115 ~]# tail -f /var/log/rhsm/rhsm.log 2012-08-30 10:40:10,692 [DEBUG] @connection.py:357 - Response status: 200 2012-08-30 10:40:10,693 [DEBUG] @managerlib.py:493 - found 39 pools: 2012-08-30 10:40:10,694 [DEBUG] @managerlib.py:494 - 25 compatible 2012-08-30 10:40:10,694 [DEBUG] @managerlib.py:495 - 14 incompatible 2012-08-30 10:40:10,695 [DEBUG] @managerlib.py:496 - 1 already subscribed 2012-08-30 10:40:13,218 [DEBUG] @managerlib.py:507 - Filtering 39 total pools 2012-08-30 10:40:13,218 [DEBUG] @managerlib.py:512 - Removed 14 incompatible pools 2012-08-30 10:40:13,220 [DEBUG] @managerlib.py:528 - Removed 11 pools overlapping existing entitlements 2012-08-30 10:40:13,220 [DEBUG] @managerlib.py:542 - Removed 0 pools that we're already subscribed to 2012-08-30 10:40:13,220 [DEBUG] @managerlib.py:545 - 14 pools to display, 25 filtered out [root@dhcp201-115 ~]# rpm -qa | grep subscription-manager subscription-manager-1.0.15-1.git.1.fecd579.el5 subscription-manager-migration-1.0.15-1.git.1.fecd579.el5 subscription-manager-firstboot-1.0.15-1.git.1.fecd579.el5 subscription-manager-gui-1.0.15-1.git.1.fecd579.el5 subscription-manager-migration-data-1.11.2.4-1.git.0.27879c1.el5 python-rhsm: 1.0.7-1.git.0.62a7320.el5
using following setup , i got same issue. [root@dhcp193-75 ~]# rpm -qa | grep subscription subscription-manager-1.0.14-1.git.24.812ba3e.el5 subscription-manager-firstboot-1.0.14-1.git.24.812ba3e.el5 subscription-manager-migration-data-1.11.2.3-1.git.4.8bd27be.el5 subscription-manager-migration-1.0.14-1.git.24.812ba3e.el5 subscription-manager-gui-1.0.14-1.git.24.812ba3e.el5 [root@dhcp193-75 ~]# rpm -qa | grep python-rhsm python-rhsm-1.0.5-1.git.1.1ce0910.el5 [root@dhcp193-75 ~]# subscription-manager-gui Traceback (most recent call last): File "/usr/share/rhsm/subscription_manager/gui/mysubstab.py", line 127, in _on_unsubscribe_prompt_response if self.backend.is_registered(): File "/usr/share/rhsm/subscription_manager/gui/managergui.py", line 151, in is_registered return self.consumer.is_valid() AttributeError: 'Backend' object has no attribute 'consumer'
Can reproduce, I think we may be confusing unsubscribe with unregister. But unsubuscribing in GUI we can definitely reproduce, has probably been there since 1.0.14.
commit 60c7bb107ff6290ccf2e5e4727db1d81745c79a2 Author: Devan Goodwin <dgoodwin> AuthorDate: Fri Aug 31 10:17:44 2012 -0300 Commit: Devan Goodwin <dgoodwin> CommitDate: Fri Aug 31 10:17:44 2012 -0300 Available in subscription-manager-1.0.17-1+
Fixed in subscription-manager git since cc6658b3d562f5c88a1dd62aae7b55b897151c64 and will be in 1.0.17.
Verified using following rpm with rhel 5.9 python-rhsm-1.0.7-1.el5 subscription-manager-migration-1.0.17-1.el5 subscription-manager-1.0.17-1.el5 subscription-manager-gui-1.0.17-1.el5 subscription-manager-firstboot-1.0.17-1.el5 subscription-manager-migration-data-1.11.2.4-1.el5 Working fine resolving defect as verified.
*** Bug 854916 has been marked as a duplicate of this bug. ***
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, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2013-0033.html