Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Error create vApp and error create disk #556

Open
calfer-capgemini opened this issue Sep 2, 2021 · 2 comments
Open

Error create vApp and error create disk #556

calfer-capgemini opened this issue Sep 2, 2021 · 2 comments

Comments

@calfer-capgemini
Copy link

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

fnoorden commented Sep 3, 2021

Hi,

Can you post your vcd.log?

@redwhere
Copy link

redwhere commented Oct 6, 2021

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants