Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 782485 - Exception on Inventory page after wallaby remove-node
Exception on Inventory page after wallaby remove-node
Status: CLOSED ERRATA
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: cumin (Show other bugs)
2.1
Unspecified Unspecified
unspecified Severity medium
: 2.1.1
: ---
Assigned To: Chad Roberts
Stanislav Graf
:
Depends On:
Blocks: 765607
  Show dependency treegraph
 
Reported: 2012-01-17 10:30 EST by Chad Roberts
Modified: 2012-02-08 05:45 EST (History)
5 users (show)

See Also:
Fixed In Version: cumin-0.1.5192-1
Doc Type: Bug Fix
Doc Text:
Cause: Unhandled exception on inventory page when wallaby data was expected/possible but not present. Consequence: Exception dump on Inventory page. Fix: We now are properly handling the possible exception Result: The inventory page now displays without error.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-02-06 13:19:17 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Exception from inventory page (9.01 KB, application/octet-stream)
2012-01-17 10:30 EST, Chad Roberts
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2012:0100 normal SHIPPED_LIVE Moderate: MRG Grid security, bug fix, and enhancement update 2012-02-06 18:15:47 EST

  None (edit)
Description Chad Roberts 2012-01-17 10:30:00 EST
Created attachment 555812 [details]
Exception from inventory page

Description of problem: While on the cumin inventory page, perform a wallaby remove-node (outside of cumin).  Hit refresh on the cumin inventory page and wind-up with an exception (see attachment)


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


How reproducible:  Unsure, possibly timing related.


Steps to Reproduce:
1.  Go to the cumin inventory page
2.  Outside of cumin, perform a wallaby remove-node action for one of the listed nodes on the inventory page.
3.  Refresh the inventory page.
  
Actual results:  Application error (see attachment)


Expected results:  No application error
Comment 1 Chad Roberts 2012-01-18 09:10:53 EST
Updated steps to reproduce:
Set up a system such that there is a mix of nodes in the inventory.  Some of the nodes (at least 1) should be a wallaby node.  At least one node should be a node that is only reporting sesame data (it doesn't even need to be running condor, just point its sesame.conf to the broker).

Give cumin a minute or two to refresh the wallaby nodes and update the sesame data.  After that, the Inventory page should fail with an exception.
Comment 2 Chad Roberts 2012-01-18 09:18:47 EST
Fixed in revision 5187 on trunk.
Comment 3 Chad Roberts 2012-01-18 09:18:47 EST
    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:
Cause:  Unhandled exception on inventory page when wallaby data was expected/possible but not present.

Consequence:  Exception dump on Inventory page.

Fix:  We now are properly handling the possible exception

Result:  The inventory page now displays without error.
Comment 4 Stanislav Graf 2012-01-18 12:06:22 EST
Reproducing:
RHEL5 x86_64, cumin-0.1.5184-1.el5.noarch

Mixed pool:
node1: condor+wallaby
node2: condor+sesame
Cumin on the 3rd machine.

Immediatelly when clicking on Inventory page I have error:
...
  File "/usr/share/cumin/python/wooly/template.py", line 90, in render
    result = frag(self.__object, session, *args)
  File "/usr/share/cumin/python/wooly/table.py", line 249, in render_cell_title
    return self.parent.render_cell_title(session, record)
  File "/usr/share/cumin/python/cumin/inventory/system.py", line 409, in render_cell_title
    return record[self.field.index]
IndexError: tuple index out of range
Comment 7 Stanislav Graf 2012-01-25 06:46:31 EST
VERIFY:

RHEL5 i386/x86_64
cumin-0.1.5192-1.el5

RHEL6 i386/x86_64
cumin-0.1.5192-1.el6

Setup host1 with condor+sesame (-wallaby)
Setup host2 with condor+wallaby (-sesame)
Point them to cumin host3 with condor+wallaby+sesame

In previous version cumin crash.

Now it displays
host1 (sesame only) "Kernel/Architecture/Free Memory/Load average"
host2 (wallaby only) "Tags/Last checkin"
host3 (wallaby+sesame) all fields

VERIFIED
Comment 8 errata-xmlrpc 2012-02-06 13:19:17 EST
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2012-0100.html

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