Bug 921399

Summary: Cannot start VMs in Posixfs datacenter with Quota in Audit/Enforced mode
Product: Red Hat Enterprise Virtualization Manager Reporter: Anush Shetty <ashetty>
Component: ovirt-engine-webadmin-portalAssignee: ofri <omasad>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Pavel Stehlik <pstehlik>
Severity: urgent Docs Contact:
Priority: low    
Version: 3.1.0CC: acathrow, asriram, dfediuck, dyasny, ecohen, grajaiya, hateya, iheim, omasad, Rhev-m-bugs, sgrinber, shaines, tkatarki, ykaul
Target Milestone: ---   
Target Release: 3.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: sla
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-04-18 07:26:17 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:
Embargoed:

Description Anush Shetty 2013-03-14 06:47:11 UTC
Description of problem: We are unable to create VMs in posixfs datacenter with RHS storagedomain when the quota mode is in Audit/Enforced mode for the datacenter. The quota dropdown while creating the VM is empty which is the reason we are unable to create the VM.


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

rhevm: rhevm-webadmin-portal-3.1.0-43.el6ev.noarch

How reproducible: Always


Steps to Reproduce:
1. Set the quota in Audit/Enforced mode for the posixfs datacenter
2.
3.
  
Actual results:

Cannot create VMs

Expected results:


Additional info:

Comment 1 Haim 2013-03-14 07:05:29 UTC
please attach all relevant logs, screen-shots, also, does it work for you when quota is disabled?

Comment 2 Anush Shetty 2013-03-14 07:18:11 UTC
Yes, works when quota is disabled.

Comment 6 ofri 2013-03-14 09:43:43 UTC
could not reproduce. please provide reproducible. 

Separating this into two: 
 - Creating new VM in Enforced mode without assigning a quota should not be permitted. To select Quota from quota drop down list the user must first create quotas in the Quota tab and define proper consumer. NOT A BUG. 

 - Creating a disk in Audit mode should not be blocked by quota mechanism. Could not reproduce this bug.

Comment 7 Anush Shetty 2013-03-14 09:48:48 UTC
1) Create a posixfs datacenter.
2) Change the quota from disabled to enforced.
3) Click on datacenter, I see the quota tab but see a way to assign quota. 
4) Try creating a VM, it fails
5) Now change the quota mode to audit. 
6) Create VM, add network interface but adding disk fails.


All of this is with RHEVM 3.1

Comment 9 ofri 2013-03-17 07:48:25 UTC
could not reproduce. please provide reproducible.

Creating Disk on Audit mode does not fail for me.
Please provide a log containing the Create-Disk Fail.

Comment 13 Doron Fediuck 2013-04-11 12:14:26 UTC
Just clearing one thing here;
Anush seems to be working on 3.1, while the bz is set for 3.2.
So indeed in 3.2 code this may not be reproducible (failure in audit),
as there was an issue which may have been fixed since.

So for 3.2 I'm lowering the priority for now.
Please provide a reproducer based on the published beta.