Bug 950076

Summary: ovirt-engine-restapi : Missing description for quota name in RSDL
Product: Red Hat Enterprise Virtualization Manager Reporter: Oded Ramraz <oramraz>
Component: ovirt-engine-restapiAssignee: Doron Fediuck <dfediuck>
Status: CLOSED DUPLICATE QA Contact: Ondra Machacek <omachace>
Severity: medium Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: acathrow, bazulay, dfediuck, gchaplik, iheim, jkt, juan.hernandez, mavital, oramraz, pstehlik, Rhev-m-bugs
Target Milestone: ---Keywords: Triaged
Target Release: 3.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: sla
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-05-08 16:16:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: SLA RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 893927    
Bug Blocks: 1142923, 1156165    

Description Oded Ramraz 2013-04-09 15:06:24 UTC
Description of problem:

When trying to add Quota from CLI , auto complete does not suggest name parameter although it is mandatory ( see Additional Parameter ) 

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

How reproducible:

Steps to Reproduce:
Actual results:

Expected results:

Additional info:

add quota --datacenter-identifier

[RHEVM shell (connected)]# add quota --datacenter-identifier 5febe649-9fc2-4f76-8d2b-01fa3b88baac

status: 400
reason: Bad Request
detail: Quota [name] required for add

## When adding name parameter I get another error ( will file separate busy for this issue )

[RHEVM shell (connected)]# add quota --datacenter-identifier 5febe649-9fc2-4f76-8d2b-01fa3b88baac --name quotatest

status: 500
reason: Internal Server Error
detail: JBWEB000065: HTTP Status 500 - java.lang.NullPointerException

Comment 1 Doron Fediuck 2013-07-21 10:58:54 UTC
Quota has no implemented API, and in 3.3 you will not be able to use "add quota".
This will be handled in the next version as a part of bug 893927.

Comment 2 Doron Fediuck 2014-01-12 16:02:52 UTC
Suggesting for to be included in 3.5.

Comment 3 Juan Hernández 2014-05-07 12:13:42 UTC
Currently the RESTAPI has limited support for quota. There are quota resources, like /datacenter/{datacenter:id}/quotas, but they are read only.

This has probably changed since this bug was reported, but today the quota isn't presented as an alternative in autocompletion for the "add" command, and if typed manually it generates a reasonable error message:

  [RHEVM shell (connected)]# add quota --datacenter-identifier 00000002-0002-0002-0002-000000000117

  ==================================== ERROR =================================
                              no such action "add"

Same if the --name parameter is added:

  [RHEVM shell (connected)]# add quota --datacenter-identifier 00000002-0002-0002-0002-000000000117 --name myquota

  ==================================== ERROR =================================
                              no such action "add"

Once the quota support is implemented in the RESTAPI and the SDK is regenerated these commands will work correctly, without any change to the CLI.

I suggest to close this bug as fixed in the current version, or as a duplicate of bug 893927.

Comment 4 Doron Fediuck 2014-05-08 16:16:07 UTC
Closing as duplicate, based on comment 3.

*** This bug has been marked as a duplicate of bug 893927 ***