vmware-archive / vcd-cli

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

vcd create vapp (instantiated from a template) fails to power on. #546

Closed anithapriyanatarajan closed 1 year ago

anithapriyanatarajan commented 3 years ago

VCD-CLI command used: vcd vapp create -d vapp-withvcd -c catalog -t test_vapp_mysql -n xyz -i DHCP -m 4096 -u 2 -k 20000 -v vcd-vm-01 -o vcd-vm-1.test.local -a True

Issue While using this command for automation, there is an inconsistent behavior.

On a few attempts the vapp gets deployed from template successfully and is powered-on as expected but it most cases vapp gets created but does not power-on. Task status shows as "Failed". Still the vapp could be powered on manually from ui.

Quoting a general observation with VCD automation, which might in case cause this issue: As a general observation there is a latency issue between the actual vapp powerstates visible to org user and the actual power state of the vapp maintained internally. This is causing a lot of automation cases break and forces us to write unconditional waits based on defined vcloud vapp state model.

anithapriyanatarajan commented 1 year ago

I am closing this issue as i am no more focusing on this area.