UKCloud / maloja

A Python toolkit for use with your VMware cloud. You can survey existing infrastructure and automate the task of building VApps.
Apache License 2.0
2 stars 0 forks source link

recomposeVApp ends with error: insufficient IPs #31

Closed tundish closed 8 years ago

tundish commented 8 years ago

Recomposing a VApp in Python development environment finally ends in error:

<Task cancelRequested="false" endTime="2016-02-03T10:27:19.023Z" expiryTime="2016-05-03T09:55:20.563+01:00" operation="Recomposed Virtual Application ec4a5b14265b403c8c48ea1a7554ae19(60df0d2c-3521-401e-9603-35a8032ce08e)" operationName="vdcRecomposeVapp" serviceNamespace="com.vmware.vcloud" startTime="2016-02-03T09:55:20.563Z" status="error" name="task" id="urn:vcloud:task:8905bcdb-7c16-4882-807a-b2ec880de913" href="https://api.vcd.portal.skyscapecloud.com/api/task/8905bcdb-7c16-4882-807a-b2ec880de913" type="application/vnd.vmware.vcloud.task+xml">

vCloudDirector GUI shows this message:

[ b02371f7-4955-4c18-b762-73058bf4c769 ] Following errors occurred while updating network connections: 
 There are insufficient IP addresses to complete operation. You need to add IP addresses to the network that is associated with the object being created or deployed.
tundish commented 8 years ago

To reproduce:

Run the 'build' command:

start %HOME%\py3.5\scripts\python -m maloja.main @options.private -v --log=run.log build --input=maloja\test\issue_025-02.yaml
tundish commented 8 years ago

IpAllocation mode was set to POOL, requiring a static IP pool. Setting one up eliminated the error.

In practice, IP allocation is defined as MANUAL, making this issue less common in our case.