vmware-archive / ansible-module-vcloud-director

ansible-module-vcloud-director
Other
112 stars 85 forks source link

Can't connect to vcd #197

Open davbeny opened 3 years ago

davbeny commented 3 years ago

Hello,

I want to get informations for a specific VM in a organisation.

I'm not able to connect to VCD using ansible-playbook 2.10.15 & ansible-module-vcloud-directory and VCD 10.3.1 using the following play :


I get :

fatal: [localhost]: FAILED! => { "changed": false, "module_stderr": "Traceback (most recent call last):\n File \"/root/.ansible/tmp/ansible-tmp-1634892399.1068623-4070-240004511659771/AnsiballZ_vcd_vapp.py\", line 102, in \n _ansiballz_main()\n File \"/root/.ansible/tmp/ansible-tmp-1634892399.1068623-4070-240004511659771/AnsiballZ_vcd_vapp.py\", line 94, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/root/.ansible/tmp/ansible-tmp-1634892399.1068623-4070-240004511659771/AnsiballZ_vcd_vapp.py\", line 40, in invoke_module\n runpy.run_module(mod_name='ansible.modules.vcd_vapp', init_globals=None, run_name='main', alter_sys=True)\n File \"/usr/lib/python3.8/runpy.py\", line 207, in run_module\n return _run_module_code(code, init_globals, run_name, mod_spec)\n File \"/usr/lib/python3.8/runpy.py\", line 97, in _run_module_code\n _run_code(code, mod_globals, init_globals,\n File \"/usr/lib/python3.8/runpy.py\", line 87, in _run_code\n exec(code, run_globals)\n File \"/tmp/ansible_vcd_vapp_payload_8milogn7/ansible_vcd_vapp_payload.zip/ansible/modules/vcd_vapp.py\", line 652, in \n File \"/tmp/ansible_vcd_vapp_payload_8milogn7/ansible_vcd_vapp_payload.zip/ansible/modules/vcd_vapp.py\", line 629, in main\n File \"/tmp/ansible_vcd_vapp_payload_8milogn7/ansible_vcd_vapp_payload.zip/ansible/modules/vcd_vapp.py\", line 245, in init\nAttributeError: 'NoneType' object has no attribute 'get'\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1

Thank you for your help

mukultaneja commented 2 years ago

@davbeny, as per the error message, somehow your VDC is not part of the given org. While trying to fetch the VDC information from org, it is returning None.