Bug 845070

Summary: ovirt-engine-backend [Quota]: move vm from domain with quota to domain with no quota defined will give CanDoAction with wrong error message [TEXT]
Product: Red Hat Enterprise Virtualization Manager Reporter: Dafna Ron <dron>
Component: ovirt-engineAssignee: ofri <omasad>
Status: CLOSED CURRENTRELEASE QA Contact: Dafna Ron <dron>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.1.0CC: dfediuck, dyasny, iheim, lpeer, Rhev-m-bugs, sgrinber, yeylon, ykaul
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: sla
Fixed In Version: si18 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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:
Attachments:
Description Flags
log none

Description Dafna Ron 2012-08-01 16:09:06 UTC
Created attachment 601779 [details]
log

Description of problem:

I tried moving a disk from a domain with defined quota to domain with no quota and got CanDoAction: 
Error while executing action: Cannot move Virtual Machine Disk. Quota is not valid.


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

si12

How reproducible:

100%

Steps to Reproduce:
1. create 2 domains under the same DC 
2. define quota on one domain and not on the other and create a disk on it
3. try to move disk from domain with quota to domain with no quota
  
Actual results:

we get error: 
Error while executing action: Cannot move Virtual Machine Disk. Quota is not valid.


Expected results:

if we are allowed to select the domain with no quota defined we should change error message. 

Additional info:backend log

Comment 1 Itamar Heim 2012-08-02 07:17:16 UTC
"Cannot move Virtual Machine Disk. Quota XXX has XXX GB allowed for this storage domain, but moving the disk will require XXX"

if not text only change to get this text message, postpone from 3.1.

Comment 2 ofri 2012-08-21 09:31:04 UTC
The log messages and popup errors were changed to be more informative on BZ#838589.

Comment 3 Dafna Ron 2012-09-02 12:51:39 UTC
comments #1 and #2 are not what the bug is about.

i have 1 quota on a single domain while having 3 domains under the DC
if I try to move the disk from the current domain (that has a quota on it) the roller of quota will appear as blank but a domain can be selected -> so I can press OK and get the following error: 

Error while executing action: Cannot move Virtual Machine Disk. Quota is not valid.

we should wither fix the CanDoAction error or we should block operation in UI with no valid domain with quota exists. 

this is not fixed on si16

moving back to devel

Comment 4 ofri 2012-09-04 12:49:45 UTC
Posted to upstream: http://gerrit.ovirt.org/#/c/7736/

Comment 6 Dafna Ron 2012-09-21 09:44:49 UTC
verified on si18
we cannot press OK while the roller is blank