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

Bug 826134

Summary: backend [multiple domains]: trying to create snapshot for a vm with multiple disks on multiple domains while one domain is in maintenance is not blocked by backend and will fail by vdsm
Product: Red Hat Enterprise Virtualization Manager Reporter: Dafna Ron <dron>
Component: ovirt-engineAssignee: mkublin <mkublin>
Status: CLOSED CURRENTRELEASE QA Contact: Dafna Ron <dron>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.1.0CC: abaron, amureini, bazulay, dyasny, hateya, iheim, mkublin, Rhev-m-bugs, yeylon, ykaul
Target Milestone: ---   
Target Release: 3.1.0   
Hardware: x86_64   
OS: Linux   
Whiteboard: storage
Fixed In Version: SI7 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: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 563304, 830872, 831988, 835348, 835349, 835724    
Attachments:
Description Flags
logs none

Description Dafna Ron 2012-05-29 16:48:53 UTC
Description of problem:

trying to create a snapshot on vm with multiple disks on multiple domains will while one of the domains is in maintenance will not be blocked by backend.
the command is sent to the vdsm which fails the command with Storage domain does not exist error. 
also, the error presented to the user will be "Error: A Request to the Server failed with the following Status Code: 500" 

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

si4

How reproducible:

100%

Steps to Reproduce:
1. create two domains
2. create a vm with multiple disks located on both domains
3. put one domain in maintenance 
4. try to create snapshot
  
Actual results:

1. the action is sent to vdsm and failed with Storage domain does not exist error when it should be blocked in backend side
2. the error presented to the user is A Request to the Server failed with the following Status Code: 500"  which is not the correct code or correct message. 

Expected results:

1. action should be blocked by backend 
2. we need to present a correct error message

Additional info: full logs are attached

Comment 1 Dafna Ron 2012-05-29 16:56:12 UTC
Created attachment 587460 [details]
logs

Comment 2 Dafna Ron 2012-06-03 13:13:34 UTC
please add the same to preview/commit/undo and delete snapshot commands.

Comment 3 mkublin 2012-06-20 18:54:46 UTC
The following commit should solve that problem:
http://gerrit.ovirt.org/#/c/5343/

Comment 4 Ayal Baron 2012-06-24 09:13:59 UTC
Please verify also what happens if domain is moved to maintenance (or just inactive) after create snapshot started.

Comment 5 Dafna Ron 2012-07-02 13:05:53 UTC
CreateAllSnapshotsFromVm fails in backend: 

2012-07-02 15:58:39,085 WARN  [org.ovirt.engine.core.bll.CreateAllSnapshotsFromVmCommand] (ajp-/0.0.0.0:8009-11) [78ff498e] CanDoAction of action CreateAllSnapshotsFromVm failed. Reasons:ACTION_TYPE_FAILED_STORAGE_DOMAIN_STATUS_ILLEGAL,VAR__ACTION__CREATE,VAR__TYPE__SNAPSHOT

there is a different UI bug which will not close the dialogue after CanDoAction from backend. 

verified on si8