Bug 1663632

Summary: [downstream clone - 4.2.8] [RFE] allow to create vm from blank template when datacenter is enforcing quota
Product: Red Hat Enterprise Virtualization Manager Reporter: RHV bug bot <rhv-bugzilla-bot>
Component: ovirt-web-uiAssignee: biakymet
Status: CLOSED ERRATA QA Contact: Lucie Leistnerova <lleistne>
Severity: high Docs Contact:
Priority: medium    
Version: 4.2.5CC: gshereme
Target Milestone: ovirt-4.2.8Keywords: FutureFeature, Rebase, ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-engine-4.2.8.2 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: 1619154 Environment:
Last Closed: 2019-01-22 12:45:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: UX RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1619154    
Bug Blocks:    

Description RHV bug bot 2019-01-05 18:50:02 UTC
+++ This bug is a downstream clone. The original bug is: +++
+++   bug 1619154 +++
======================================================================

Description of problem:
RFE: allow to create vm from blank template when datacenter is enforcing quota

Version-Release number of selected component (if applicable):
rhv 4.2.+

How reproducible:
everytime

Steps to Reproduce:
1. make sure dc is enforcing quota
2. try to create vm in vm portal with user with enough permission from blank template


Actual results:
vm creation will fail with error below:

ERROR [org.ovirt.engine.api.restapi.resource.AbstractBackendResource] (default task-5) [] Operation Failed: [Cannot add VM. The user is not a consumer of the Quota assigned to the resource.]

Expected results:
vm will be created

Additional info:
could we do something also with fact, that once you are enforcing more than 1 quota, you have to have template for each quota?

(Originally by Marian Jankular)

Comment 1 RHV bug bot 2019-01-05 18:50:04 UTC
Quota is rarely used, it’s a pending gap in functionality

(Originally by michal.skrivanek)

Comment 13 Lucie Leistnerova 2019-01-10 15:05:01 UTC
Non admin user is consumer on quota (also tested on other than Default) and can create VM from blank template.

verified in ovirt-web-ui-1.4.5-1.el7ev.noarch with ovirt-engine-4.2.8.2-0.1.el7ev.noarch

Comment 15 errata-xmlrpc 2019-01-22 12:45:56 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/RHBA-2019:0128