Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 675812

Summary: Some tracebacks while beating on subscription-manager-gui
Product: Red Hat Enterprise Linux 6 Reporter: John Sefler <jsefler>
Component: subscription-managerAssignee: Chris Duryee <cduryee>
Status: CLOSED ERRATA QA Contact: John Sefler <jsefler>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.1CC: cduryee
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-19 13:39:26 UTC Type: ---
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: 568421, 639436    

Description John Sefler 2011-02-07 20:39:34 UTC
Description of problem:

Not sure how I caused these tracebacks while beating on subscription-manager-gui, but if you see a way for them to occur, go for the fix...



Traceback (most recent call last):
  File "/usr/share/rhsm/gui/mysubstab.py", line 83, in _on_unsubscribe_prompt_response
    handle_gui_exception(e, _("There was an error unsubsribing from %s with serial number %s" % (selection['subscription'],serial)))
  File "/usr/share/rhsm/gui/utils.py", line 58, in handle_gui_exception
    errorWindow(msg % linkify(e.msg))
TypeError: not all arguments converted during string formatting



Traceback (most recent call last):
  File "/usr/share/rhsm/gui/allsubs.py", line 239, in subscribe_button_clicked
    pools = model.get_value(tree_iter, self.store['merged_pools'])
TypeError: iter must be a GtkTreeIter



Version-Release number of selected component (if applicable):
[root@jsefler-onprem01 ~]# rpm -qa | grep subscription-manager
subscription-manager-gnome-0.93.15-1.git.16.aab77eb.el6.x86_64
subscription-manager-0.93.15-1.git.16.aab77eb.el6.x86_64
subscription-manager-firstboot-0.93.15-1.git.16.aab77eb.el6.x86_64


How reproducible:


Steps to Reproduce:

  
Actual results:


Expected results:


Additional info:

Comment 2 John Sefler 2011-02-07 20:57:59 UTC
Traceback (most recent call last):
  File "/usr/share/rhsm/gui/allsubs.py", line 239, in subscribe_button_clicked
    pools = model.get_value(tree_iter, self.store['merged_pools'])
TypeError: iter must be a GtkTreeIter


...occurs when you click the Subscribe button on the All Available Subscriptions tab, but you have not selected a subscription.

Comment 3 John Sefler 2011-02-08 13:58:39 UTC
Traceback (most recent call last):
  File "/usr/share/rhsm/gui/mysubstab.py", line 83, in _on_unsubscribe_prompt_response
    handle_gui_exception(e, _("There was an error unsubsribing from %s with serial number %s" % (selection['subscription'],serial)))
  File "/usr/share/rhsm/gui/utils.py", line 58, in handle_gui_exception
    errorWindow(msg % linkify(e.msg))
TypeError: not all arguments converted during string formatting


2011-02-08 08:54:31,087 [ERROR] handle_gui_exception() @utils.py:43 - Entitlement Certificate with serial number 11297173216454180 could not be found.
Traceback (most recent call last):
  File "/usr/share/rhsm/gui/mysubstab.py", line 81, in _on_unsubscribe_prompt_response
    self.backend.uep.unbindBySerial(self.consumer.uuid, serial)
  File "/usr/lib/python2.6/site-packages/rhsm/connection.py", line 401, in unbindBySerial
    return self.conn.request_delete(method)
  File "/usr/lib/python2.6/site-packages/rhsm/connection.py", line 212, in request_delete
    return self._request("DELETE", method)
  File "/usr/lib/python2.6/site-packages/rhsm/connection.py", line 178, in _request
    self.validateResponse(result)
  File "/usr/lib/python2.6/site-packages/rhsm/connection.py", line 197, in validateResponse
    parsed['displayMessage'])
RestlibException: Entitlement Certificate with serial number 11297173216454180 could not be found.


...occurs when you subscribe to a future subscription (successfully) and then you try to unsubscribe from it (BANG!).

Comment 4 Chris Duryee 2011-02-08 14:51:38 UTC
Can you make the latest BZ entry a new bug, instead?

other issue is fixed in:

rhel6 - ad035f40123f307155cfe508d426104404f50f19 0.95.2+
master - d091e850211a2587eaf09ad06de9bf45218d0eaa 0.96.2+

Comment 7 John Sefler 2011-02-23 23:30:52 UTC
Verifying version....
[root@jsefler-onprem03 ~]# rpm -qa | grep subscription-manager
subscription-manager-0.95.1-1.git.17.4a23267.el6.x86_64
subscription-manager-firstboot-0.95.1-1.git.17.4a23267.el6.x86_64
subscription-manager-gnome-0.95.1-1.git.17.4a23267.el6.x86_64

Comment #2 The Subscribe button is now only enabled when a subscription is selected.
Comment #3 Unsubscribing from a future subscription works and is not throwing a traceback.

Moving to VERIFIED

Comment 8 errata-xmlrpc 2011-05-19 13:39:26 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHEA-2011-0611.html