Bug 809805

Summary: Failed to clone vm from a snapshot which is not the first in chain
Product: [Retired] oVirt Reporter: Avihai Shoham <ashoham>
Component: ovirt-engine-coreAssignee: Yair Zaslavsky <yzaslavs>
Status: CLOSED NOTABUG QA Contact:
Severity: urgent Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: acathrow, dyasny, iheim, mgoldboi, oourfali, ykaul
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-04-05 12:19:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
vdsm log none

Description Avihai Shoham 2012-04-04 12:34:47 UTC
Created attachment 575109 [details]
vdsm log

when i cloned a VM from a snapshot which it isn't the first in  chain the cloning action failed due to "Can not found any default active domain for one of the disks of template with id : 00000000-0000-0000-0000-000000000000"


Observed by Yzaslavs 


Steps to Reproduce:
1.Create 2 snapshot
2.Clone VM from the 2nd snapshot

Actual results:
Snapshot failed

Expected results:
Snapshot success

Comment 1 Yair Zaslavsky 2012-04-04 12:43:04 UTC
This has to do with wrong treatment in the code of multiple storage domains -
there is a check that compares the map passed by UI and the size of the list of images - it uses the code of AddVmCommand.buildAndCheckDestStorageDomains -
This method should be changed to use methods that will be overriden in child classes to return the correct images list (and not the images of the templates which are not relevant here).

Comment 2 Avihai Shoham 2012-04-05 12:19:54 UTC
environment miss-configuration