Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 566825 - Grid with no slots throws exception in MRG Management Console
Grid with no slots throws exception in MRG Management Console
Status: CLOSED ERRATA
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: qpid-qmf (Show other bugs)
1.2
All Linux
low Severity medium
: 1.3
: ---
Assigned To: messaging-bugs
Jan Sarenik
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2010-02-19 16:18 EST by james labocki
Modified: 2011-08-12 12:02 EDT (History)
3 users (show)

See Also:
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 11:58:15 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2010:0773 normal SHIPPED_LIVE Moderate: Red Hat Enterprise MRG Messaging and Grid Version 1.3 2010-10-14 11:56:44 EDT

  None (edit)
Description james labocki 2010-02-19 16:18:24 EST
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 05:56:26 EDT
Fixed in the 1.3 console.
Comment 3 Jan Sarenik 2010-09-30 10:06:04 EDT
Verified in cumin-0.1.4352-1.el5
Comment 4 Martin Prpič 2010-10-07 08:30:18 EDT
    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 07:39:57 EDT
    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 11:58:15 EDT
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

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