vcd-cli icon indicating copy to clipboard operation
vcd-cli copied to clipboard

Error create vApp and error create disk

Open calfer-capgemini opened this issue 4 years ago • 2 comments

$>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

calfer-capgemini avatar Sep 02 '21 15:09 calfer-capgemini

Hi,

Can you post your vcd.log?

fnoorden avatar Sep 03 '21 09:09 fnoorden

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

redwhere avatar Oct 06 '21 14:10 redwhere