Red Hat Bugzilla – Bug 566825
Grid with no slots throws exception in MRG Management Console
Last modified: 2011-08-12 12:02:17 EDT
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.
Fixed in the 1.3 console.
Verified in cumin-0.1.4352-1.el5
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.
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.
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