Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 566825

Summary: Grid with no slots throws exception in MRG Management Console
Product: Red Hat Enterprise MRG Reporter: james labocki <jlabocki>
Component: qpid-qmfAssignee: messaging-bugs <messaging-bugs>
Status: CLOSED ERRATA QA Contact: Jan Sarenik <jsarenik>
Severity: medium Docs Contact:
Priority: low    
Version: 1.2CC: gsim, jross, jsarenik
Target Milestone: 1.3   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
When a grid had no slots defined, the MRG Management console threw the following exception when the "Grid" option was selected from the menu: File "/usr/lib/python2.4/site-packages/cumin/pool.py", line 528, in render_status return record and "[div][span]%i[/span] of [span]%i[/span] slots idle[/div]" % \ TypeError: int argument required With this update, the exception is handled correctly and the MRG Management console shows a screen with no grid slots.
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-10-14 15:58:15 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:

Description james labocki 2010-02-19 21:18:24 UTC
Description of problem:
When a grid has no slots defined the MRG Management console throws the following exception when the "Grid" option is select from the menu.

  File "/usr/lib/python2.4/site-packages/cumin/pool.py", line 528, in render_status
    return record and "<div><span>%i</span> of <span>%i</span> slots idle</div>" % \
TypeError: int argument required

I'm not sure why you would have a grid with no slots, but the concept isn't handled cleanly.

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


How reproducible:
Create a grid with no slots, register with MRG Management console, login, click on grid.

  
Actual results:
exception thrown

File "/usr/lib/python2.4/site-packages/cumin/pool.py", line 528, in render_status
    return record and "<div><span>%i</span> of <span>%i</span> slots idle</div>" % \
TypeError: int argument required

Expected results:
Handle the exception cleanly and show a screen with no grid slots.

Comment 1 Justin Ross 2010-09-08 09:56:26 UTC
Fixed in the 1.3 console.

Comment 3 Jan Sarenik 2010-09-30 14:06:04 UTC
Verified in cumin-0.1.4352-1.el5

Comment 4 Martin Prpič 2010-10-07 12:30:18 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:
When a grid had no slots defined, the MRG Management console threw the following exception when the "Grid" option was selected from the menu:

File "/usr/lib/python2.4/site-packages/cumin/pool.py", line 528, in render_status return record and "<div><span>%i</span> of <span>%i</span> slots idle</div>" % \
TypeError: int argument required

With this update, the exception is handled correctly and the MRG Management console shows a screen with no grid slots.

Comment 5 Martin Prpič 2010-10-10 11:39:57 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,6 +1,6 @@
 When a grid had no slots defined, the MRG Management console threw the following exception when the "Grid" option was selected from the menu:
 
-File "/usr/lib/python2.4/site-packages/cumin/pool.py", line 528, in render_status return record and "<div><span>%i</span> of <span>%i</span> slots idle</div>" % \
+File "/usr/lib/python2.4/site-packages/cumin/pool.py", line 528, in render_status return record and "[div][span]%i[/span] of [span]%i[/span] slots idle[/div]" % \
 TypeError: int argument required
 
 With this update, the exception is handled correctly and the MRG Management console shows a screen with no grid slots.

Comment 7 errata-xmlrpc 2010-10-14 15:58:15 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/RHSA-2010-0773.html