Bug 809805 - Failed to clone vm from a snapshot which is not the first in chain
Summary: Failed to clone vm from a snapshot which is not the first in chain
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: oVirt
Classification: Retired
Component: ovirt-engine-core
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ---
: ---
Assignee: Yair Zaslavsky
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-04-04 12:34 UTC by Avihai Shoham
Modified: 2015-03-05 00:17 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-04-05 12:19:54 UTC
oVirt Team: ---
Embargoed:


Attachments (Terms of Use)
vdsm log (887.78 KB, application/octet-stream)
2012-04-04 12:34 UTC, Avihai Shoham
no flags Details

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


Note You need to log in before you can comment on or make changes to this bug.