Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1067103

Summary: [engine-webadmin] unclear error message when starting a VM with disk that located on a domain in maintenance
Product: [Retired] oVirt Reporter: Elad <ebenahar>
Component: ovirt-engine-webadminAssignee: Allon Mureinik <amureini>
Status: CLOSED CURRENTRELEASE QA Contact: Elad <ebenahar>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.4CC: acanan, acathrow, amureini, derez, ecohen, gklein, iheim, mgoldboi, yeylon
Target Milestone: ---   
Target Release: 3.4.0   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: storage
Fixed In Version: ovirt-3.4.0-rc Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-03-31 12:31:31 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
engine.log and screenshot none

Description Elad 2014-02-19 17:13:23 UTC
Created attachment 865166 [details]
engine.log and screenshot

Description of problem:
I tried to start a VM that has disk which located on a domain in maintenance. The operation was blocked with CanDoAction failure, but the error message on UI is not clear:

Cannot run VM. The relevant Storage Domain's status is ${status}. 
Maintenance

Version-Release number of selected component (if applicable):
ovirt-engine-3.4.0-0.11.beta3.el6.noarch

How reproducible:
Always

Steps to Reproduce:
Shared DC with 2 storage domains
1. Create a VM with 2 disks located on different SDs 
2. Put one of the domains to maintenance
3. Try to start the VM

Actual results:
Operation is blocked with CanDoAction failure:
2014-02-19 18:35:15,332 WARN  [org.ovirt.engine.core.bll.RunVmCommand] (ajp--127.0.0.1-8702-4) [939ef2a] CanDoAction of action RunVm failed. Reasons:VAR__ACTION__RUN,VAR__TYPE__VM,ACTION_TYPE_FAILED_STORAGE_DOMAIN
_STATUS_ILLEGAL2,Maintenance

Error on UI is unclear:
Cannot run VM. The relevant Storage Domain's status is ${status}. 
Maintenance

Expected results:
The error message on UI should be informative

Additional info:
engine.log and screenshot

Comment 1 Sandro Bonazzola 2014-03-03 14:40:16 UTC
This BZ should be fixed in oVirt 3.4.0 RC

Comment 2 Elad 2014-03-18 09:19:04 UTC
Trying to run a VM while one of its attached disks's storage domain is in maintenance fails with a proper error message:
 Cannot run VM. The relevant Storage Domain's status is Maintenance.

Verified using RHEV3.4-AV3

Comment 3 Sandro Bonazzola 2014-03-31 12:31:31 UTC
this is an automated message: moving to Closed CURRENT RELEASE since oVirt 3.4.0 has been released