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

Create as provider #225

Open
ArchaicHammer opened this issue Sep 4, 2023 · 0 comments
Open

Create as provider #225

ArchaicHammer opened this issue Sep 4, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@ArchaicHammer
Copy link

Describe the bug

Good morning,

How can I deploy a template in a vApp as "provider" and not "Organization Administrator" please ?
I try to create rog user for provisionning but not working too with provider account.

I have read several issues which indicate to put the org "system" however it does not work. Do I necessarily have to already have a user created on the tenant ?

Here the error for an user :

An exception occurred during task execution. To see the full traceback, use -vvv. The error was: TypeError: Value of unknown type: <class 'pyvcloud.vcd.exceptions.OperationNotSupportedException'>, Unable to execute query.
fatal: [localhost]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n  File \"/tmp/ansible_vcd_user_payload_umml9pvj/ansible_vcd_user_payload.zip/ansible/modules/vcd_user.py\", line 301, in main\n  File \"/tmp/ansible_vcd_user_payload_umml9pvj/ansible_vcd_user_payload.zip/ansible/modules/vcd_user.py\", line 202, in manage_states\n  File \"/tmp/ansible_vcd_user_payload_umml9pvj/ansible_vcd_user_payload.zip/ansible/modules/vcd_user.py\", line 238, in create\n  File \"/home/jcoopmann/.local/lib/python3.8/site-packages/pyvcloud/vcd/org.py\", line 1142, in get_role_record\n    role_record = self.list_roles(('name', role_name))\n  File \"/home/jcoopmann/.local/lib/python3.8/site-packages/pyvcloud/vcd/org.py\", line 1177, in list_roles\n    for r in list(query.execute()):\n  File \"/home/jcoopmann/.local/lib/python3.8/site-packages/pyvcloud/vcd/client.py\", line 1991, in execute\n    raise OperationNotSupportedException('Unable to execute query.')\npyvcloud.vcd.exceptions.OperationNotSupportedException: Unable to execute query.\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n  File \"/home/jcoopmann/.ansible/tmp/ansible-tmp-1693813685.182755-60203-175060986046363/AnsiballZ_vcd_user.py\", line 107, in <module>\n    _ansiballz_main()\n  File \"/home/jcoopmann/.ansible/tmp/ansible-tmp-1693813685.182755-60203-175060986046363/AnsiballZ_vcd_user.py\", line 99, in _ansiballz_main\n    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n  File \"/home/jcoopmann/.ansible/tmp/ansible-tmp-1693813685.182755-60203-175060986046363/AnsiballZ_vcd_user.py\", line 47, in invoke_module\n    runpy.run_module(mod_name='ansible.modules.vcd_user', init_globals=dict(_module_fqn='ansible.modules.vcd_user', _modlib_path=modlib_path),\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_user_payload_umml9pvj/ansible_vcd_user_payload.zip/ansible/modules/vcd_user.py\", line 313, in <module>\n  File \"/tmp/ansible_vcd_user_payload_umml9pvj/ansible_vcd_user_payload.zip/ansible/modules/vcd_user.py\", line 307, in main\n  File \"/tmp/ansible_vcd_user_payload_umml9pvj/ansible_vcd_user_payload.zip/ansible/module_utils/basic.py\", line 1533, in fail_json\n  File \"/tmp/ansible_vcd_user_payload_umml9pvj/ansible_vcd_user_payload.zip/ansible/module_utils/basic.py\", line 1506, in _return_formatted\n  File \"/tmp/ansible_vcd_user_payload_umml9pvj/ansible_vcd_user_payload.zip/ansible/module_utils/common/parameters.py\", line 887, in remove_values\n  File \"/tmp/ansible_vcd_user_payload_umml9pvj/ansible_vcd_user_payload.zip/ansible/module_utils/common/parameters.py\", line 461, in _remove_values_conditions\nTypeError: Value of unknown type: <class 'pyvcloud.vcd.exceptions.OperationNotSupportedException'>, Unable to execute query.\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}

Reproduction steps

  1. create provider user
  2. set environnement variable org, user, password
  3. create user with module vcd_user

Expected behavior

User created

Additional context

No response

@ArchaicHammer ArchaicHammer added the bug Something isn't working label Sep 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant