Bug 1583242

Summary: Hammer doesn't support Quota option for RHEV
Product: Red Hat Satellite Reporter: Lukáš Hellebrandt <lhellebr>
Component: Compute Resources - RHEVAssignee: orabin
Status: CLOSED ERRATA QA Contact: Lukáš Hellebrandt <lhellebr>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.4.0CC: apatel, dhlavacd, inecas, kgaikwad, mhulan, pcreech, rabajaj
Target Milestone: 6.6.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-10-22 19:51:55 UTC Type: Bug
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: 1501927    
Bug Blocks:    

Description Lukáš Hellebrandt 2018-05-28 14:24:11 UTC
Description of problem:
'hammer compute-resource create' command doesn't support specifying Quota ID as WebUI does.

Version-Release number of selected component (if applicable):
Tested with Sat6.4, Hammer 0.13.0

How reproducible:
Deterministic

Steps to Reproduce:
hammer compute-resource create --help | grep -i quota

Actual results:
No --quota or similar parameter

Expected results:
Quota should be specifiable

Comment 2 orabin 2018-06-18 11:54:45 UTC
Created redmine issue http://projects.theforeman.org/issues/23976 from this bug

Comment 3 Satellite Program 2018-06-18 12:20:18 UTC
Upstream bug assigned to orabin

Comment 4 Satellite Program 2018-06-18 12:20:22 UTC
Upstream bug assigned to orabin

Comment 5 Satellite Program 2018-06-19 16:24:35 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/23976 has been resolved.

Comment 6 Lukáš Hellebrandt 2018-07-16 09:58:25 UTC
FailedQA with Sat 6.4 snap 12.

The Quota isn't set by either 'hammer create' or 'hammer update'. The field is left empty. This might be caused by bug 1583243 still not being fixed. Anyway, the result is that the Quota can't be set by Hammer in the current snap -> failed.

Comment 7 Lukáš Hellebrandt 2018-07-16 10:00:50 UTC
^ I mean bug 1501927

Comment 8 orabin 2018-08-09 09:39:28 UTC
When: https://bugzilla.redhat.com/show_bug.cgi?id=1501927 is merged I suggest to move this to ON_QA again.

Comment 10 orabin 2019-03-12 09:27:12 UTC
Moving to on_qa because the bug it depends on is also on_qa.
Please note - ovirt-quota expects an id and not a name.
There is an RFE to change that but this is currently the expected behavior.

Comment 11 Lukáš Hellebrandt 2019-05-29 12:57:13 UTC
Verified with Sat 6.6 snap 4.

It is possible to set Quota for a new CR, it is possible to update Quota in an existing CR. It is possible not to set any Quota (so default Quota is used).

To get Quota ID, I ran ovirt-shell in the RHEV server's command line and inside, I ran "list quotas --parent-datacenter-name <datacenter-name>".

Comment 13 Bryan Kearney 2019-10-22 19:51:55 UTC
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.

https://access.redhat.com/errata/RHSA-2019:3172