Bug 920091 - Got traceback with system unregister for rhel6.4
Summary: Got traceback with system unregister for rhel6.4
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: subscription-manager
Version: 5.10
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: beta
: 5.10
Assignee: candlepin-bugs
QA Contact: Devan Goodwin
URL:
Whiteboard:
Depends On:
Blocks: rhsm-rhel510 rhsm-2013
TreeView+ depends on / blocked
 
Reported: 2013-03-11 10:45 UTC by spandey
Modified: 2015-04-23 23:57 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
No description necessary
Clone Of:
Environment:
Last Closed: 2013-09-30 22:59:13 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:1332 0 normal SHIPPED_LIVE subscription-manager bug fix and enhancement update 2013-09-30 22:49:24 UTC

Description spandey 2013-03-11 10:45:03 UTC
Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:
always

prerequisites : 
rhel6.4 with following subscription-manager rpm 
 subscription-manager-migration-data-1.12.2.6-1.git.0.171d4c3.el6.noarch
subscription-manager-firstboot-1.8.3-1.git.233.1eec8ec.el6.x86_64
subscription-manager-gui-1.8.3-1.git.233.1eec8ec.el6.x86_64
subscription-manager-1.8.3-1.git.233.1eec8ec.el6.x86_64
subscription-manager-migration-1.8.3-1.git.233.1eec8ec.el6.x86_64

steps to repro :
Register client to candlepin. 
Unregister client . 

[root@dhcp201-164 product]# subscription-manager register --u testuser1 --password password --org admin --autosubscribe 
The system has been registered with id: f919de60-e5b4-48f7-9a22-39b447e31ec4 
Installed Product Current Status:
Product Name: RAM Limiting Product
Status:       Unknown
[root@dhcp201-164 product]# subscription-manager unregister
System has been unregistered.
[root@dhcp201-164 product]# Traceback (most recent call last):
  File "/usr/share/rhsm/subscription_manager/gui/installedtab.py", line 112, in on_cert_change
    self.update_products()
  File "/usr/share/rhsm/subscription_manager/gui/installedtab.py", line 153, in update_products
    self.backend.uep)
  File "/usr/share/rhsm/subscription_manager/injection.py", line 62, in require
    return provider(*args, **kwargs)
  File "/usr/share/rhsm/subscription_manager/validity.py", line 30, in __init__
    self.consumer_data = self.uep.getConsumer(self.identity.uuid)
  File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 731, in getConsumer
    return self.conn.request_get(method)
  File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 481, in request_get
    return self._request("GET", method)
  File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 443, in _request
    self.validateResponse(result)
  File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 468, in validateResponse
    raise RestlibException(response['status'], error_msg)
rhsm.connection.RestlibException: Invalid credentials.

Comment 1 John Sefler 2013-03-11 12:35:10 UTC
Additional Info:
[root@rhsm-compat-rhel64 ~]# tail -f /var/log/rhsm/rhsm.log
2013-03-11 08:28:39,610 [ERROR]  @rhsmcertd-worker:41 - Either the consumer is not registered or the certificates are corrupted. Certificate update using daemon failed.


Just want to clarify that the re-create scenario is to be registered with the subscription-manager-gui open and then use the terminal to call subscription-manager unregister.

Comment 2 Devan Goodwin 2013-03-18 12:16:17 UTC
Fixed in subscription-manager.git master: 5dcbbc7c683cbf9f7aa81b485706961a352624d1

Will appear in 1.8.5.

Comment 3 RHEL Program Management 2013-04-09 20:01:09 UTC
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.

Comment 4 John Sefler 2013-04-12 22:13:25 UTC
Verifying Version....
[root@jsefler-5 ~]# subscription-manager version
server type: This system is currently not registered.
subscription management server: 0.8.2-1
subscription-manager: 1.8.5-1.el5
python-rhsm: 1.8.8-1.el5

[root@jsefler-5 ~]# subscription-manager register --u testuser1 --password password --org admin --autosubscribe
The system has been registered with id: c839a07a-242a-4a75-992c-2c524b863ffc 
Installed Product Current Status:
Product Name: RAM Limiting Product
Status:       Subscribed

[root@jsefler-5 ~]# subscription-manager-gui&
[1] 17250
[root@jsefler-5 ~]# No handlers could be found for logger "rhsm-app.subscription_manager.isodate"

(subscription-manager-gui:17250): libglade-WARNING **: unknown property `has_tooltip' for class `GtkButton'

(subscription-manager-gui:17250): libglade-WARNING **: unknown property `has_tooltip' for class `GtkEventBox'

[root@jsefler-5 ~]# subscription-manager unregister
System has been unregistered.
[root@jsefler-5 ~]# subscription-manager register --u testuser1 --password password --org admin --autosubscribe
The system has been registered with id: 2f87a56c-7c6d-4bcd-8835-e5f4b2410a23 
Installed Product Current Status:
Product Name: RAM Limiting Product
Status:       Subscribed

[root@jsefler-5 ~]# subscription-manager unregister
System has been unregistered.
[root@jsefler-5 ~]# 


Moving to VERIFIED: with subscription-manager-gui open, the system can be unregistered from the command line


Additional Info: the "rhsm-app.subscription_manager.isodate" issue should be addressed in bug 924919

Comment 5 John Sefler 2013-04-12 22:23:44 UTC
Also Verifying on RHEL6.4...
[root@rhsm-compat-rhel64 ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 6.4 (Santiago)
[root@rhsm-compat-rhel64 ~]# subscription-manager version
server type: This system is currently not registered.
subscription management server: 0.8.2-1
subscription-manager: 1.8.5-1.git.28.e3065a4.el6
python-rhsm: 1.8.8-1.git.4.1c896e2.el6
[root@rhsm-compat-rhel64 ~]# subscription-manager register --u testuser1 --password password --org admin --autosubscribe
The system has been registered with id: 488b3b71-a241-4503-b346-1434000a5b6b 
Installed Product Current Status:
Product Name: RAM Limiting Product
Status:       Subscribed

[root@rhsm-compat-rhel64 ~]# subscription-manager-gui &
[1] 4210
[root@rhsm-compat-rhel64 ~]# subscription-manager unregister
System has been unregistered.
[root@rhsm-compat-rhel64 ~]# 

VERIFIED: with subscription-manager-gui open, the system can be unregistered from the command line without traceback

Comment 7 errata-xmlrpc 2013-09-30 22:59:13 UTC
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-1332.html


Note You need to log in before you can comment on or make changes to this bug.