Bug 706285

Summary: traceback in Subscription Assistant dialog
Product: Red Hat Enterprise Linux 5 Reporter: John Sefler <jsefler>
Component: subscription-managerAssignee: Chris Duryee <cduryee>
Status: CLOSED DUPLICATE QA Contact: John Sefler <jsefler>
Severity: high Docs Contact:
Priority: unspecified    
Version: 5.7CC: alikins, spandey
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-20 13:17:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 675214    
Attachments:
Description Flags
traceback from Subscription Assistant none

Description John Sefler 2011-05-19 22:25:03 UTC
Created attachment 499961 [details]
traceback from Subscription Assistant

Description of problem:

Traceback (most recent call last):
  File "/usr/share/rhsm/subscription_manager/gui/subscription_assistant.py", line 387, in _on_invalid_active_toggled
    self._display_subscriptions()
  File "/usr/share/rhsm/subscription_manager/gui/subscription_assistant.py", line 343, in _display_subscriptions
    available = "%s of %s" % \
UnboundLocalError: local variable 'available' referenced before assignment


Version-Release number of selected component (if applicable):
[root@jsefler-onprem-5server ~]# rpm -qa | grep subscription-manager
subscription-manager-firstboot-0.95.5.18-1.el5
subscription-manager-0.95.5.18-1.el5
subscription-manager-gnome-0.95.5.18-1.el5


How reproducible:


Steps to Reproduce:
1. deploy an onpremises candlepin server with TESTDATA=1
2. install an sm client and copy all of the generated product certs from the onpremises server to the client's /etc/pki/product dir

[root@jsefler-onprem-5server ~]# subscription-manager register --username=testuser1 --password=password
f68a84b3-f3ea-43c1-bcde-5f718b2feaaa jsefler-onprem-5server.usersys.redhat.com
[root@jsefler-onprem-5server ~]# subscription-manager-gui &

click Update Certificates
click the first Product (Management Bits)

BANG!

[root@jsefler-onprem-5server ~]# Traceback (most recent call last):
  File "/usr/share/rhsm/subscription_manager/gui/subscription_assistant.py", line 387, in _on_invalid_active_toggled
    self._display_subscriptions()
  File "/usr/share/rhsm/subscription_manager/gui/subscription_assistant.py", line 343, in _display_subscriptions
    available = "%s of %s" % \
UnboundLocalError: local variable 'available' referenced before assignment

  
Actual results:


Expected results:


Additional info:

Comment 1 Adrian Likins 2011-05-20 13:17:43 UTC

*** This bug has been marked as a duplicate of bug 705445 ***