Bug 866985

Summary: Cloned VM can't be placed on chosen storage domain
Product: Red Hat Enterprise Virtualization Manager Reporter: Petr Dufek <pdufek>
Component: ovirt-engine-restapiAssignee: Michael Pasternak <mpastern>
Status: CLOSED NOTABUG QA Contact: Oded Ramraz <oramraz>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.1.0CC: bazulay, bugzilla-qe-tlv, dyasny, ecohen, iheim, mpastern, Rhev-m-bugs, ykaul
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-10-16 13:52:36 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
logs none

Description Petr Dufek 2012-10-16 13:38:04 UTC
Created attachment 628162 [details]
logs

Description of problem:
When creating VM (clone VM from snapshot), final storage domain is stated. But VM is created then on different storage domain.

Version-Release number of selected component (if applicable):
rhevm-3.1.0-20.el6ev.noarch

How reproducible:
- send CREATE on rhevm/api/vms with body like:
<vm>
  :
  <snapshots>
    <snapshot id="..">
    :
  </snapshots>
  <storage_domain id="">
  :
  </storage_domain>
</vm>
  
Actual results:
VM on data_sd storage domain

Expected results:
VM on data_sd2 storage domain

Additional info:

Comment 1 Michael Pasternak 2012-10-16 13:52:36 UTC
Petr,

your syntax is wrong, storage domain set via disk

<vm>
<disks>
  <disk>
    <storage_domains>
      <storage_domain id=xxx>