Red Hat Bugzilla – Bug 888862
Live Snaphost: There is no validation of the DC's compatability version for a diskless VM
Last modified: 2016-02-10 15:12:09 EST
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):
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
Live snapshot fail with an error message from VDSM
Should get a canDoAction about an unsupported operation in this DC compatability level.
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.
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?
Pushed upstream at http://gerrit.ovirt.org/#/c/11107/
Merged upstream with change id I77e301643b3ac9789cc5eb7527b6a5a4a0aac6be
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
3.2 has been released