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

Can't modify vApp Template CustomizationSection

$
0
0

I capture an undeployed vApp as a template using  POST /vdc/{id}/action/captureVApp

Before adding it to a catalog, i am trying to modify CustomizationSection to have CustomizeOnInstantiate set to false.

I am trying to follow Example 5.2 from here: http://pubs.vmware.com/vcloud-api-1/wwhelp/wwhimpl/js/html/wwhelp.htm#href=api/vCloud_API_Guide_SSDC.7.4.html

But when i try to run PUT <vAppTemplate>/customizationSection i get a Method Not Allowed error.

 

Since i couldn't get this working I also tried to force customization at deployment by setting forceCustomization=”true” for DeployVAppParams. This should again work according to documentation, but I get the following error: “Parameter forceCustomization is not supported for VApps.”  I only mentioned this because i am suspecting it might be related to the first issue...

 

Can this because of some user permission setting in vCloud?  I contacted our IT, but they are new to vCloud too, and they had no idea what I'm talking about...

Without this, i can't deploy more than one copy of this template. I get this error: "The following IP/MAC addresses have already been used by running virtual machines... Use the Fence vApp option to use same MAC/IP..."  But with fencing the vApp won't have any network access - this must be an issue for our infrastucture...  I am not sure if this makes a difference but I am using DHCP IP mode.

 

 

This is what i get:

GET https://.../api/vAppTemplate/vappTemplate-cf8ad7b9-914e-44ff-ae64-d4f5293df0f1/customizationSection/

    <?xml version="1.0" encoding="UTF-8"?>

    <CustomizationSection xmlns="http://www.vmware.com/vcloud/v1.5" xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1" type="application/vnd.vmware.vcloud.customizationSection+xml" href=...>

    <ovf:Info>VApp template customization section</ovf:Info>

    <CustomizeOnInstantiate>false</CustomizeOnInstantiate>

    </CustomizationSection>

    

PUT https://.../api/vAppTemplate/vappTemplate-cf8ad7b9-914e-44ff-ae64-d4f5293df0f1/customizationSection/

    <?xml version="1.0" encoding="UTF-8"?>

    <CustomizationSection xmlns="http://www.vmware.com/vcloud/v1.5" xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1" type="application/vnd.vmware.vcloud.customizationSection+xml" href=...>

    <ovf:Info>VApp template customization section</ovf:Info>

    <CustomizeOnInstantiate>true</CustomizeOnInstantiate>

    </CustomizationSection>

 

 

I get this error:

<?xml version="1.0" encoding="UTF-8"?>

<Error xmlns="http://www.vmware.com/vcloud/v1.5" minorErrorCode="METHOD_NOT_ALLOWED" message="HTTP method not allowed" majorErrorCode="405" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5http://147.34.135.65/api/v1.5/schema/master.xsd"></Error>

 

Any suggestions would be greatly appreciated!

 

Thank you!!!


Viewing all articles
Browse latest Browse all 230663

Trending Articles