[ovirt-devel] can't clone vm from export domain via rest/json

Sven Kieske s.kieske at mittwald.de
Fri Sep 26 13:09:14 UTC 2014


Hi,

I need some devel power here:

this is on ovirt 3.3.3 el6 (yes I know, I need to upgrade..)

error while cloning a vm from export to local storage data domain:

  POST
https://REDACTED/api/storagedomains/e89fdbcb-cb51-42b7-b42c-7f4f0ec1f580/vms/fc0f82f3-fb34-429b-aa52-e8276cdc49c0/import
{

"storageDomain":{"id":"15679d40-0f20-4a0e-9880-eb5795cb8d1e","name":"LOCAL_DATA_DOMAIN_NAME"},
  "cluster":{"id":"e65dc5f5-61e6-4d17-a5bf-33c677d129c7"},
  "vm":{"name":"VM_NAME_1"},
    "clone":true
}



ANSWER:
{
"storageDomain":{
"name":"LOCAL_DATA_DOMAIN_NAME",
"id":"15679d40-0f20-4a0e-9880-eb5795cb8d1e"
},
"cluster":{
"id":"e65dc5f5-61e6-4d17-a5bf-33c677d129c7"
},
"vm":{
"name":"VM_NAME_2"
},
"clone":true,
"status":{
"state":"failed"
},
"fault":{
"reason":"Operation Failed",
"detail":"[action type failed import clone not collapsed]"
}
}


why does it fail?

this vm was exported from this storage domain onto the export
domain and should then get re-imported as another vm-name

is this because of lacking/inconsistent json support in 3.3.z?

until now we were able to reverse engineer all needed functionality
via json.


-- 
Mit freundlichen Grüßen / Regards

Sven Kieske

Systemadministrator
Mittwald CM Service GmbH & Co. KG
Königsberger Straße 6
32339 Espelkamp
T: +49-5772-293-100
F: +49-5772-293-333
https://www.mittwald.de
Geschäftsführer: Robert Meyer
St.Nr.: 331/5721/1033, USt-IdNr.: DE814773217, HRA 6640, AG Bad Oeynhausen
Komplementärin: Robert Meyer Verwaltungs GmbH, HRB 13260, AG Bad Oeynhausen



More information about the Devel mailing list