Bug 690740

Summary: Setting quota does not work
Product: Red Hat Enterprise MRG Reporter: Jan Sarenik <jsarenik>
Component: cuminAssignee: Trevor McKay <tmckay>
Status: CLOSED CURRENTRELEASE QA Contact: Jan Sarenik <jsarenik>
Severity: high Docs Contact:
Priority: medium    
Version: DevelopmentCC: iboverma, matt, tmckay
Target Milestone: 2.0   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: cumin-0.1.4669-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-27 14:31:00 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jan Sarenik 2011-03-25 09:14:01 UTC
"Set GRID to 0.0824: Pending" in yellow box.

cumin-0.1.4654-1.el5
condor-qmf-7.6.0-0.2.el5
python-qpid-qmf-0.9.1079953-3.el5
python-qpid-0.9.1079482-1.el5
qpid-cpp-server-0.9.1079953-1.el5
qpid-qmf-0.9.1079953-3.el5

How reproducible: 100%

Steps to Reproduce:
1. Submit a job to Condor configured with Quotas
2. Go to Admin -> Grid -> Quotas
3. Click any of the quotas, change percentage, click Submit

Actual results: Pending with no change.

Expected results: OK after few seconds.

Additional info: Related configuration in Condor I use for testing:
-------------------------
GROUP_NAMES = MSG, GRID, MGMT, RT, GRID.SUB_1, GRID.SUB_1.SUB_A
GROUP_QUOTA_DYNAMIC_GRID = 0.1
GROUP_QUOTA_DYNAMIC_GRID.SUB_1 = 0.05
GROUP_QUOTA_DYNAMIC_GRID.SUB_1.SUB_A = 0.05
GROUP_QUOTA_DYNAMIC_MGMT = 0.01
GROUP_QUOTA_DYNAMIC_MSG = 0.70
GROUP_QUOTA_DYNAMIC_RT = 0.08
ENABLE_RUNTIME_CONFIG = TRUE
-------------------------

Comment 1 Matthew Farrellee 2011-03-25 14:47:56 UTC
Does the NegotiatorLog suggest that the attempts to set quotas are being denied?

You may be missing SETTABLE_ATTRS_CONFIG and ALLOW_CONFIG.

Comment 2 Trevor McKay 2011-03-25 18:15:26 UTC
After some poking, matt notes that settings above shouldn't be relevant for QMF config (I tried both ways).  

I changed quota values in cumin, and looked at values from qpid before and after.  Verifies that the values actually do change; apparently cumin is failing to realize that the call is no longer pending even though the call succeeds.  

qpid: call 101 GetRawConfig group_quota_dynamic_grid
qpid: OK (0) - {u'Value': '0.036'}

      <after change in cumin, still says pending>
       
qpid: call 101 GetRawConfig group_quota_dynamic_grid
qpid: OK (0) - {u'Value': '0.3094'}

Comment 3 Trevor McKay 2011-03-25 19:55:11 UTC
Fixed in 4667.

QMF operation was successful, "pending" status was not cleared.

Comment 4 Jan Sarenik 2011-03-28 09:42:28 UTC
Verified in cumin-0.1.4669-1.el5