Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 230663

Problem when moving a vappTemplate

$
0
0

Hello,

I would like to move a vapptemplate from a vdc to another vdc.

 

vcloud direcro vesrion : 5.1.2.1068441

php sdk version : 5.5.0-1294398

 

I use the following code :

$cloneParams = new VMware_VCloud_API_CloneVAppTemplateParamsType();

$cloneParams->set_name($vappTemplateName);

$cloneParams->setSource($vappTemplateRefObj);

$cloneParams->setVdcStorageProfile($storageProfileRefObj);

$cloneParams->setIsSourceDelete(true);

 

$sdkVdc = $service->createSDKObj($destinationVdcRefObj);

 

$vappTemplate = $sdkVdc->cloneMoveVAppTemplate($cloneParams);

 

the code is executed as cloud admin.

 

but I got this error :

 

POST https://vcd-demo.ecocenter.fr/api/admin/vdc/23a52af1-c6be-449b-9e46-22290e3508aa/action/cloneVAppTemplate failed, return code: 404, error: <?xml version="1.0" encoding="UTF-8"?>

<Error xmlns="http://www.vmware.com/vcloud/v1.5" stackTrace="javax.ws.rs.WebApplicationException

    at org.apache.cxf.jaxrs.utils.JAXRSUtils.findTargetMethod(JAXRSUtils.java:411)

    at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:224)

    at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:91)

   [...]

     at java.lang.Thread.run(Unknown Source)

" minorErrorCode="RESOURCE_NOT_FOUND" message="Resource not found" majorErrorCode="404" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5http://vcd-demo.ecocenter.fr/api/v1.5/schema/master.xsd"></Error>

, request data:

<CloneVAppTemplateParams xmlns="http://www.vmware.com/vcloud/v1.5" xmlns:vcloud="http://www.vmware.com/vcloud/v1.5" xmlns:ns12="http://www.vmware.com/vcloud/v1.5" xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1" xmlns:ovfenv="http://schemas.dmtf.org/ovf/environment/1" xmlns:vmext="http://www.vmware.com/vcloud/extension/v1.5" xmlns:cim="http://schemas.dmtf.org/wbem/wscim/1/common" xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData" xmlns:vssd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData" xmlns:vmw="http://www.vmware.com/schema/ovf" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="test">

<Source href="https://vcd-demo.ecocenter.fr/api/vAppTemplate/vappTemplate-21c6cb87-709d-4038-9305-d7acf4a75333" type="application/vnd.vmware.vcloud.vAppTemplate+xml"/>
<IsSourceDelete>true</IsSourceDelete>
<VdcStorageProfile href="https://vcd-demo.ecocenter.fr/api/vdcStorageProfile/a446ed2f-cf4a-41fc-96e2-4e15406ac4f0" type="application/vnd.vmware.vcloud.vdcStorageProfile+xml" name="Standard"/>

</CloneVAppTemplateParams>

 

I'm sure that the resource exist and is accessible to cloud admin.

The important information is that the vappTemplate source is not in the destination vdc. Is that a problem ?. If yes what is the good method to move a vappTemplate from a vdc to an other.

 

I thought  that it was due to the storage profile, but without set the storage profile I've got the same problem :

<CloneVAppTemplateParams[...] name="test">

    <Source href="https://vcd-demo.ecocenter.fr/api/vAppTemplate/vappTemplate-9b898c9c-b7e4-4f99-8327-7051e7b0df2a" type="application/vnd.vmware.vcloud.vAppTemplate+xml"/>

    <IsSourceDelete>true</IsSourceDelete>

</CloneVAppTemplateParams>

 

 

Any Idea ?

 

regards,

 

Yann


Viewing all articles
Browse latest Browse all 230663

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>