Bug 695800

Summary: Mismatch of GROUP_NAMES and GROUP_QUOTA_DYNAMIC_xxx items causes exception trace
Product: Red Hat Enterprise MRG Reporter: Trevor McKay <tmckay>
Component: cuminAssignee: Ernie <eallen>
Status: CLOSED ERRATA QA Contact: Jan Sarenik <jsarenik>
Severity: low Docs Contact:
Priority: low    
Version: DevelopmentCC: iboverma, jsarenik
Target Milestone: 2.0   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: cumin-0.1.4725-1 Doc Type: Bug Fix
Doc Text:
In the management console an exception could occur if there is a mismatch in the group names and the dynamic group quota values. Now, an message is displayed indicating which configuration entry is missing.
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-23 15:40:45 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:
Bug Depends On:    
Bug Blocks: 693778    

Description Trevor McKay 2011-04-12 18:02:06 UTC
Description of problem:

If condor is configured for dynamic quotas, defining a group xxx in the GROUP_NAMES parameter and then failing to define GROUP_QUOTA_DYNAMIC_xxx causes cumin to get an exception trace when displaying/editing quotas.

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


How reproducible:
100%

Steps to Reproduce:
1. Define group quotas as below in additional info
2. Use cumin to edit quotas, descend into GRID->SUB_1
  
Actual results:

A general error message is displayed.


Expected results:

It would be nice if cumin handled the error and displayed some text informing the user that a particular quota does not exist.  Alternatively, cumin could detect that a particular quota is not defined and not attempt to display it.

Additional info:

Set quotas for condor like this.  Note that GRID.SUB_1.SUB_B is defined as a group but has no corresponding quota

GROUP_NAMES = MSG, GRID, MGMT, RT, GRID.SUB_1, GRID.SUB_1.SUB_A, GRID.SUB_1.SUB_B
GROUP_QUOTA_DYNAMIC_GRID = 0.1
GROUP_QUOTA_DYNAMIC_GRID.SUB_1 = 0.05
GROUP_QUOTA_DYNAMIC_GRID.SUB_1.SUB_A = 0.03
GROUP_QUOTA_DYNAMIC_MGMT = 0.01
GROUP_QUOTA_DYNAMIC_MSG = 0.70
GROUP_QUOTA_DYNAMIC_RT = 0.08
ENABLE_RUNTIME_CONFIG = TRUE

Comment 2 Ernie 2011-04-18 20:17:25 UTC
Posted in cumin 4722

The correct behaviour is to display the word "error" in red in the value column for the missing config entry. When you hover over the error, you should see the message returned from the qmf call. In this case it should be "Unknown Config: GROUP_QUOTA_DYNAMIC_GRID.SUB_1.SUB_B

Comment 3 Ernie 2011-04-18 20:17:25 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:
In the management console an exception could occur if there is a mismatch in the group names and the dynamic group quota values.
Now, an message is displayed indicating which configuration entry is missing.

Comment 4 Jan Sarenik 2011-04-20 07:57:15 UTC
In the Quotas list, there is now "SUB_B ... error".
Hovering over "error" shows following text:

  Unknown config: GROUP_QUOTA_DYNAMIC_GRID.SUB_1.SUB_B

Verified in cumin-0.1.4725-1.el5

Comment 5 errata-xmlrpc 2011-06-23 15:40:45 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-0889.html