Red Hat Bugzilla – Bug 809805
Failed to clone vm from a snapshot which is not the first in chain
Last modified: 2015-03-04 19:17:57 EST
Created attachment 575109 [details]
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
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).