vmware-archive / vcd-cli

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

Error create vApp and error create disk #556

Open calfer-capgemini opened 3 years ago

calfer-capgemini commented 3 years ago

$>vcd vdc use HCX_PPU now using org: 'org1', vdc: 'vdc1', vApp: ''.

$>vcd vapp create "vapp_empty" Usage: vcd vapp create [OPTIONS] Try "vcd vapp create -h" for help.

Error: Operation is not supported

$>vcd vapp create vapp1 -c catalog_priv_admin -t dummy_ubuntu18 -a Usage: vcd vapp create [OPTIONS] Try "vcd vapp create -h" for help.

Error: local variable 'links' referenced before assignment

$>vcd disk create disk1 10g Usage: vcd disk create [OPTIONS] Try "vcd disk create -h" for help.

Error: Operation is not supported

fnoorden commented 3 years ago

Hi,

Can you post your vcd.log?

redwhere commented 3 years ago

I'm getting the same "Error: local variable 'links' referenced before assignment" error when trying to create a vAPP from template.

tail vcd_cli_error.log File "/home/user/.local/lib/python3.8/site-packages/vcd_cli/vapp.py", line 528, in create vapp_resource = vdc.instantiate_vapp( File "/home/user/.local/lib/python3.8/site-packages/pyvcloud/vcd/vdc.py", line 300, in instantiate_vapp catalog_item = org.get_catalog_item(catalog, template) File "/home/user/.local/lib/python3.8/site-packages/pyvcloud/vcd/org.py", line 330, in get_catalog_item catalog_resource = self.get_catalog(name) File "/home/user/.local/lib/python3.8/site-packages/pyvcloud/vcd/org.py", line 202, in get_catalog if links: UnboundLocalError: local variable 'links' referenced before assignment