Bug 705445

Summary: subscribing to more than one product throws error
Product: Red Hat Enterprise Linux 5 Reporter: Adrian Likins <alikins>
Component: subscription-managerAssignee: John Sefler <jsefler>
Status: CLOSED ERRATA QA Contact:
Severity: high Docs Contact:
Priority: unspecified    
Version: 5.7CC: cduryee, jsefler
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
This bugzilla details a problem that was included in the RHEL 57 Public Beta. As such, a tech note would be prudent stating that this is a known bug and will be fixed in the RHEL 57 GA. Advice to the user is not to use the Subscription Assistant which is invoked by clicking the Update Certificates button located in the top left corner Certificate Status panel of the subscription-manager-gui. The purpose of the Subscription Assistant is to help the user find and subscribe to subscriptions that best match the products already installed on the system. In this RHEL57 Beta, tracebacks are being thrown when checking the boxes in the Subscription Assistant. Instead, the advice to the user is to manually click to the All Available Subscriptions tab and click Update to show all the subscriptions available to the system and then manually select one and click Subscribe so as to provide an entitlement to the corresponding product(s) covered by the selected subscription. jsefler 5/24/2011
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-21 08:46:44 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
No more traceback when "check-boxing" multiple subscriptions in subscription-assistant. none

Description Adrian Likins 2011-05-17 17:39:44 UTC
Description of problem:

A system with 2 products with invalid certs, select "Update Certificates", then
select both (or more than 1) products and:

Traceback (most recent call last):
  File "/home/adrian/src/subscription-manager/src/subscription_manager/gui/subscription_assistant.py", line 387, in _on_invalid_active_toggled
    self._display_subscriptions()
  File "/home/adrian/src/subscription-manager/src/subscription_manager/gui/subscription_assistant.py", line 344, in _display_subscriptions
    (available, quantity),
UnboundLocalError: local variable 'available' referenced before assignment

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


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Adrian Likins 2011-05-18 15:18:17 UTC
commit a040f33cd8c8aabbf66c7ff39836be97a00b1ebe
Author: Adrian Likins <alikins>
Date:   Tue May 17 13:42:08 2011 -0400

    705445: Fix for calculation of "available" susbcriptions label
    
    "available" was being used before it was defined.

(9762d0520c35b274b3a7b00f6be87d2479df1d58 in master)

Comment 2 Adrian Likins 2011-05-20 13:17:43 UTC
*** Bug 706285 has been marked as a duplicate of this bug. ***

Comment 3 John Sefler 2011-05-24 21:41:15 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
This bugzilla details a problem that was included in the RHEL 57 Public Beta.  As such, a tech note would be prudent stating that this is a known bug and will be fixed in the RHEL 57 GA.

Advice to the user is not to use the Subscription Assistant which is invoked by clicking the Update Certificates button located in the top left corner Certificate Status panel of the subscription-manager-gui.  The purpose of the Subscription Assistant is to help the user find and subscribe to subscriptions that best match the products already installed on the system.  In this RHEL57 Beta, tracebacks are being thrown when checking the boxes in the Subscription Assistant.  Instead, the advice to the user is to manually click to the All Available Subscriptions tab and click Update to show all the subscriptions available to the system and then manually select one and click Subscribe so as to provide an entitlement to the corresponding product(s) covered by the selected subscription.

Comment 4 John Sefler 2011-05-24 21:53:54 UTC
    Technical note updated. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    Diffed Contents:
@@ -1,3 +1,5 @@
 This bugzilla details a problem that was included in the RHEL 57 Public Beta.  As such, a tech note would be prudent stating that this is a known bug and will be fixed in the RHEL 57 GA.
 
-Advice to the user is not to use the Subscription Assistant which is invoked by clicking the Update Certificates button located in the top left corner Certificate Status panel of the subscription-manager-gui.  The purpose of the Subscription Assistant is to help the user find and subscribe to subscriptions that best match the products already installed on the system.  In this RHEL57 Beta, tracebacks are being thrown when checking the boxes in the Subscription Assistant.  Instead, the advice to the user is to manually click to the All Available Subscriptions tab and click Update to show all the subscriptions available to the system and then manually select one and click Subscribe so as to provide an entitlement to the corresponding product(s) covered by the selected subscription.+Advice to the user is not to use the Subscription Assistant which is invoked by clicking the Update Certificates button located in the top left corner Certificate Status panel of the subscription-manager-gui.  The purpose of the Subscription Assistant is to help the user find and subscribe to subscriptions that best match the products already installed on the system.  In this RHEL57 Beta, tracebacks are being thrown when checking the boxes in the Subscription Assistant.  Instead, the advice to the user is to manually click to the All Available Subscriptions tab and click Update to show all the subscriptions available to the system and then manually select one and click Subscribe so as to provide an entitlement to the corresponding product(s) covered by the selected subscription.
+
+jsefler 5/24/2011

Comment 5 John Sefler 2011-05-25 17:44:39 UTC
Created attachment 500892 [details]
No more traceback when "check-boxing" multiple subscriptions in subscription-assistant.

Verifying Version...
[root@jsefler-rhel57-beta12-i386 ~]# rpm -qa | grep subscription-manager
subscription-manager-0.95.5.19-1.git.1.8278e3d.el5
subscription-manager-firstboot-0.95.5.19-1.git.1.8278e3d.el5
subscription-manager-gnome-0.95.5.19-1.git.1.8278e3d.el5

Comment 6 errata-xmlrpc 2011-07-21 08:46:44 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-1078.html

Comment 7 errata-xmlrpc 2011-07-21 12:30:35 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-1078.html