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

Bug 888862

Summary: Live Snaphost: There is no validation of the DC's compatability version for a diskless VM
Product: Red Hat Enterprise Virtualization Manager Reporter: Allon Mureinik <amureini>
Component: ovirt-engineAssignee: Maor <mlipchuk>
Status: CLOSED CURRENTRELEASE QA Contact: Dafna Ron <dron>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.1.1CC: abaron, dyasny, iheim, lpeer, Rhev-m-bugs, sgrinber, yeylon, ykaul
Target Milestone: ---   
Target Release: 3.2.0   
Hardware: All   
OS: All   
Whiteboard: storage
Fixed In Version: sf5 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: 915537    

Description Allon Mureinik 2012-12-19 16:45:53 UTC
Description of problem:
Taking a live snapshot of a diskless VM on a 3.0 DC fails since this DC does not support the snapshot verb instead of failing "nicely" with a canDoAction message.

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

How reproducible:
100%

Steps to Reproduce:
1. Create a 3.0 DC ***WITH A 3.0 HOST*** on RHEV-M 3.1
2. Create a VM with no disks and boot it from network
3. Take a live snapshot
  
Actual results:
Live snapshot fail with an error message from VDSM

Expected results:
Should get a canDoAction about an unsupported operation in this DC compatability level.

Additional info:

Comment 1 Allon Mureinik 2012-12-19 16:50:22 UTC
technical insight:

CreateAllSnapshotsFromVmCommand's canDoAction loads the VM's disks, and only if there are any disks, performs the relevant checks, among them the cluster compatibility level check.
This check should be pushed forward, and done before loading the disks.

Comment 2 Allon Mureinik 2013-01-20 10:02:22 UTC
Maor - why did you move this bug to POST?
Can you add a change-id of a patch that solves this and/or a gerrit link?

Comment 3 Maor 2013-01-20 13:07:52 UTC
Pushed upstream at http://gerrit.ovirt.org/#/c/11107/

Comment 4 Maor 2013-01-20 13:08:22 UTC
Merged upstream with change id I77e301643b3ac9789cc5eb7527b6a5a4a0aac6be

Comment 6 Dafna Ron 2013-02-06 15:30:18 UTC
verified on sf5

tested for 3.0 DC and cluster and a 3.0 DC and 3.1 Cluster

Error while executing action: Cannot create Snapshot. Selected data center compatibility version does not support live snaps

Comment 7 Itamar Heim 2013-06-11 08:25:47 UTC
3.2 has been released

Comment 8 Itamar Heim 2013-06-11 08:26:21 UTC
3.2 has been released