Bug 705445 - subscribing to more than one product throws error
Summary: subscribing to more than one product throws error
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: subscription-manager
Version: 5.7
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: rc
: ---
Assignee: John Sefler
QA Contact:
URL:
Whiteboard:
: 706285 (view as bug list)
Depends On:
Blocks: 675214
TreeView+ depends on / blocked
 
Reported: 2011-05-17 17:39 UTC by Adrian Likins
Modified: 2011-07-21 12:30 UTC (History)
2 users (show)

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
Clone Of:
Environment:
Last Closed: 2011-07-21 08:46:44 UTC
Target Upstream Version:


Attachments (Terms of Use)
No more traceback when "check-boxing" multiple subscriptions in subscription-assistant. (108.35 KB, image/png)
2011-05-25 17:44 UTC, John Sefler
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2011:1078 0 normal SHIPPED_LIVE new package: subscription-manager 2011-07-21 08:45:07 UTC

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


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