vmware-archive / vcd-cli

Command Line Interface for VMware vCloud Director
https://vmware.github.io/vcd-cli
Other
165 stars 108 forks source link

How can I instantiate a vApp from a template that has an internal vApp network? #534

Closed Ptomerty closed 4 years ago

Ptomerty commented 4 years ago

I have a template in a catalog that has an internal vApp network that connects to a larger VDC network, providing NAT capabilities. In VCD, here's what the network looks like: Capture

No matter what options I try, I end up with an error complaining that the vApp network is not found.

Sample input:

$ vcd vapp create test_vapp3 -c $CATALOG_NAME -t $TEMPLATE_NAME
Usage: vcd vapp create [OPTIONS] <name>
Try "vcd vapp create -h" for help.

Error: Network 'Internal Network' not found in the Virtual Datacenter.
$ vcd vapp create test_vapp3 -c $CATALOG_NAME  -t $TEMPLATE_NAME -n $VDC_NETWORK1
vdcInstantiateVapp: Creating Virtual Application test_vapp3(35694193-1c48-41fe-b871-e2be312fa8c0), status: queued, progrvdcInstantiateVapp: Creating Virtual Application test_vapp3(35694193-1c48-41fe-b871-e2be312fa8c0)
vdcInstantiateVapp: Created Virtual Application test_vapp3(35694193-1c48-41fe-b871-e2be312fa8c0), status: error, progrestask: 638c628f-2d25-4601-a276-37f7d49fc9ff, result: error, message: [ 52a65114-cf2d-4175-a514-24a9efe78bd6 ] The VCD entity network "Internal Network" does not exist.

How can I either 1. instantiate a vApp with no network, so I can create a vApp network after-the fact or 2. Tell vcd-cli to respect the internal vApp network?

Ptomerty commented 4 years ago

Closing as this appears to be a pyvcloud issue.