You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.
{
"module_stdout": "",
"module_stderr": "Traceback (most recent call last):\n File "/tmp/ansible_vcd_user_payload_5ex_m9me/ansible_vcd_user_payload.zip/ansible/modules/vcd_user.py", line 301, in main\n File "/tmp/ansible_vcd_user_payload_5ex_m9me/ansible_vcd_user_payload.zip/ansible/modules/vcd_user.py", line 202, in manage_states\n File "/tmp/ansible_vcd_user_payload_5ex_m9me/ansible_vcd_user_payload.zip/ansible/modules/vcd_user.py", line 238, in create\n File "/usr/local/lib/python3.6/site-packages/pyvcloud/vcd/org.py", line 1142, in get_role_record\n role_record = self.list_roles(('name', role_name))\n File "/usr/local/lib/python3.6/site-packages/pyvcloud/vcd/org.py", line 1175, in list_roles\n qfilter=org_filter)\n File "/usr/local/lib/python3.6/site-packages/pyvcloud/vcd/client.py", line 1749, in get_typed_query\n fields=fields)\n File "/usr/local/lib/python3.6/site-packages/pyvcloud/vcd/client.py", line 2136, in init\n fields=fields)\n File "/usr/local/lib/python3.6/site-packages/pyvcloud/vcd/client.py", line 1945, in init\n urllib.parse.quote(equality_filter[1]))\n File "/usr/lib64/python3.6/urllib/parse.py", line 825, in quote\n return quote_from_bytes(string, safe)\n File "/usr/lib64/python3.6/urllib/parse.py", line 850, in quote_from_bytes\n raise TypeError("quote_from_bytes() expected bytes")\nTypeError: quote_from_bytes() expected bytes\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File "/root/.ansible/tmp/ansible-tmp-1647276050.569314-7547-152016328611604/AnsiballZ_vcd_user.py", line 102, in \n _ansiballz_main()\n File "/root/.ansible/tmp/ansible-tmp-1647276050.569314-7547-152016328611604/AnsiballZ_vcd_user.py", line 94, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File "/root/.ansible/tmp/ansible-tmp-1647276050.569314-7547-152016328611604/AnsiballZ_vcd_user.py", line 40, in invoke_module\n runpy.run_module(mod_name='ansible.modules.vcd_user', init_globals=None, run_name='main', alter_sys=True)\n File "/usr/lib64/python3.6/runpy.py", line 205, in run_module\n return _run_module_code(code, init_globals, run_name, mod_spec)\n File "/usr/lib64/python3.6/runpy.py", line 96, in _run_module_code\n mod_name, mod_spec, pkg_name, script_name)\n File "/usr/lib64/python3.6/runpy.py", line 85, in _run_code\n exec(code, run_globals)\n File "/tmp/ansible_vcd_user_payload_5ex_m9me/ansible_vcd_user_payload.zip/ansible/modules/vcd_user.py", line 313, in \n File "/tmp/ansible_vcd_user_payload_5ex_m9me/ansible_vcd_user_payload.zip/ansible/modules/vcd_user.py", line 307, in main\n File "/tmp/ansible_vcd_user_payload_5ex_m9me/ansible_vcd_user_payload.zip/ansible/module_utils/basic.py", line 2196, in fail_json\n File "/tmp/ansible_vcd_user_payload_5ex_m9me/ansible_vcd_user_payload.zip/ansible/module_utils/basic.py", line 2168, in _return_formatted\n File "/tmp/ansible_vcd_user_payload_5ex_m9me/ansible_vcd_user_payload.zip/ansible/module_utils/basic.py", line 426, in remove_values\n File "/tmp/ansible_vcd_user_payload_5ex_m9me/ansible_vcd_user_payload.zip/ansible/module_utils/basic.py", line 403, in _remove_values_conditions\nTypeError: Value of unknown type: <class 'TypeError'>, quote_from_bytes() expected bytes\n",
"exception": "Traceback (most recent call last):\n File "/tmp/ansible_vcd_user_payload_5ex_m9me/ansible_vcd_user_payload.zip/ansible/modules/vcd_user.py", line 301, in main\n File "/tmp/ansible_vcd_user_payload_5ex_m9me/ansible_vcd_user_payload.zip/ansible/modules/vcd_user.py", line 202, in manage_states\n File "/tmp/ansible_vcd_user_payload_5ex_m9me/ansible_vcd_user_payload.zip/ansible/modules/vcd_user.py", line 238, in create\n File "/usr/local/lib/python3.6/site-packages/pyvcloud/vcd/org.py", line 1142, in get_role_record\n role_record = self.list_roles(('name', role_name))\n File "/usr/local/lib/python3.6/site-packages/pyvcloud/vcd/org.py", line 1175, in list_roles\n qfilter=org_filter)\n File "/usr/local/lib/python3.6/site-packages/pyvcloud/vcd/client.py", line 1749, in get_typed_query\n fields=fields)\n File "/usr/local/lib/python3.6/site-packages/pyvcloud/vcd/client.py", line 2136, in init\n fields=fields)\n File "/usr/local/lib/python3.6/site-packages/pyvcloud/vcd/client.py", line 1945, in init\n urllib.parse.quote(equality_filter[1]))\n File "/usr/lib64/python3.6/urllib/parse.py", line 825, in quote\n return quote_from_bytes(string, safe)\n File "/usr/lib64/python3.6/urllib/parse.py", line 850, in quote_from_bytes\n raise TypeError("quote_from_bytes() expected bytes")\nTypeError: quote_from_bytes() expected bytes\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File "/root/.ansible/tmp/ansible-tmp-1647276050.569314-7547-152016328611604/AnsiballZ_vcd_user.py", line 102, in \n _ansiballz_main()\n File "/root/.ansible/tmp/ansible-tmp-1647276050.569314-7547-152016328611604/AnsiballZ_vcd_user.py", line 94, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File "/root/.ansible/tmp/ansible-tmp-1647276050.569314-7547-152016328611604/AnsiballZ_vcd_user.py", line 40, in invoke_module\n runpy.run_module(mod_name='ansible.modules.vcd_user', init_globals=None, run_name='main', alter_sys=True)\n File "/usr/lib64/python3.6/runpy.py", line 205, in run_module\n return _run_module_code(code, init_globals, run_name, mod_spec)\n File "/usr/lib64/python3.6/runpy.py", line 96, in _run_module_code\n mod_name, mod_spec, pkg_name, script_name)\n File "/usr/lib64/python3.6/runpy.py", line 85, in _run_code\n exec(code, run_globals)\n File "/tmp/ansible_vcd_user_payload_5ex_m9me/ansible_vcd_user_payload.zip/ansible/modules/vcd_user.py", line 313, in \n File "/tmp/ansible_vcd_user_payload_5ex_m9me/ansible_vcd_user_payload.zip/ansible/modules/vcd_user.py", line 307, in main\n File "/tmp/ansible_vcd_user_payload_5ex_m9me/ansible_vcd_user_payload.zip/ansible/module_utils/basic.py", line 2196, in fail_json\n File "/tmp/ansible_vcd_user_payload_5ex_m9me/ansible_vcd_user_payload.zip/ansible/module_utils/basic.py", line 2168, in _return_formatted\n File "/tmp/ansible_vcd_user_payload_5ex_m9me/ansible_vcd_user_payload.zip/ansible/module_utils/basic.py", line 426, in remove_values\n File "/tmp/ansible_vcd_user_payload_5ex_m9me/ansible_vcd_user_payload.zip/ansible/module_utils/basic.py", line 403, in _remove_values_conditions\nTypeError: Value of unknown type: <class 'TypeError'>, quote_from_bytes() expected bytes\n",
"msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
"rc": 1,
"_ansible_no_log": false,
"changed": false
}
vCD version is 10.3
API_version is 36.0
pyvcloud version is 23.0.3
1. TestRole exists in the Org Roles list.
2. Manually created a user and then deleted using the delete_user option, to check host and org variables
pass correctly.
3. is_group_role added and set to true, to testif this is why it couldn't identify the role correctly. Issue still occurred.4. Manually created a user and then ran the update_user task to enable a disabled user. This worked
Expected behavior
Create a user called testuser within the Org "AnsibleOrg" and assign it to the existing Org role "TestRole".
The user would have been created with the password testuserpw
The user would have been set as disabled. However, the user set as enabled was also attempted and failed.
Additional context
Please let me know if there's any further information required. I appreciate VCD 10.3 and API 36 aren't listed on your releases table but everything else I have tested so far, seems to have worked OK:
create Org, Create OrgVDC, read Org.
The text was updated successfully, but these errors were encountered:
Describe the bug
{
"module_stdout": "",
"module_stderr": "Traceback (most recent call last):\n File "/tmp/ansible_vcd_user_payload_5ex_m9me/ansible_vcd_user_payload.zip/ansible/modules/vcd_user.py", line 301, in main\n File "/tmp/ansible_vcd_user_payload_5ex_m9me/ansible_vcd_user_payload.zip/ansible/modules/vcd_user.py", line 202, in manage_states\n File "/tmp/ansible_vcd_user_payload_5ex_m9me/ansible_vcd_user_payload.zip/ansible/modules/vcd_user.py", line 238, in create\n File "/usr/local/lib/python3.6/site-packages/pyvcloud/vcd/org.py", line 1142, in get_role_record\n role_record = self.list_roles(('name', role_name))\n File "/usr/local/lib/python3.6/site-packages/pyvcloud/vcd/org.py", line 1175, in list_roles\n qfilter=org_filter)\n File "/usr/local/lib/python3.6/site-packages/pyvcloud/vcd/client.py", line 1749, in get_typed_query\n fields=fields)\n File "/usr/local/lib/python3.6/site-packages/pyvcloud/vcd/client.py", line 2136, in init\n fields=fields)\n File "/usr/local/lib/python3.6/site-packages/pyvcloud/vcd/client.py", line 1945, in init\n urllib.parse.quote(equality_filter[1]))\n File "/usr/lib64/python3.6/urllib/parse.py", line 825, in quote\n return quote_from_bytes(string, safe)\n File "/usr/lib64/python3.6/urllib/parse.py", line 850, in quote_from_bytes\n raise TypeError("quote_from_bytes() expected bytes")\nTypeError: quote_from_bytes() expected bytes\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File "/root/.ansible/tmp/ansible-tmp-1647276050.569314-7547-152016328611604/AnsiballZ_vcd_user.py", line 102, in \n _ansiballz_main()\n File "/root/.ansible/tmp/ansible-tmp-1647276050.569314-7547-152016328611604/AnsiballZ_vcd_user.py", line 94, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File "/root/.ansible/tmp/ansible-tmp-1647276050.569314-7547-152016328611604/AnsiballZ_vcd_user.py", line 40, in invoke_module\n runpy.run_module(mod_name='ansible.modules.vcd_user', init_globals=None, run_name='main', alter_sys=True)\n File "/usr/lib64/python3.6/runpy.py", line 205, in run_module\n return _run_module_code(code, init_globals, run_name, mod_spec)\n File "/usr/lib64/python3.6/runpy.py", line 96, in _run_module_code\n mod_name, mod_spec, pkg_name, script_name)\n File "/usr/lib64/python3.6/runpy.py", line 85, in _run_code\n exec(code, run_globals)\n File "/tmp/ansible_vcd_user_payload_5ex_m9me/ansible_vcd_user_payload.zip/ansible/modules/vcd_user.py", line 313, in \n File "/tmp/ansible_vcd_user_payload_5ex_m9me/ansible_vcd_user_payload.zip/ansible/modules/vcd_user.py", line 307, in main\n File "/tmp/ansible_vcd_user_payload_5ex_m9me/ansible_vcd_user_payload.zip/ansible/module_utils/basic.py", line 2196, in fail_json\n File "/tmp/ansible_vcd_user_payload_5ex_m9me/ansible_vcd_user_payload.zip/ansible/module_utils/basic.py", line 2168, in _return_formatted\n File "/tmp/ansible_vcd_user_payload_5ex_m9me/ansible_vcd_user_payload.zip/ansible/module_utils/basic.py", line 426, in remove_values\n File "/tmp/ansible_vcd_user_payload_5ex_m9me/ansible_vcd_user_payload.zip/ansible/module_utils/basic.py", line 403, in _remove_values_conditions\nTypeError: Value of unknown type: <class 'TypeError'>, quote_from_bytes() expected bytes\n",
"exception": "Traceback (most recent call last):\n File "/tmp/ansible_vcd_user_payload_5ex_m9me/ansible_vcd_user_payload.zip/ansible/modules/vcd_user.py", line 301, in main\n File "/tmp/ansible_vcd_user_payload_5ex_m9me/ansible_vcd_user_payload.zip/ansible/modules/vcd_user.py", line 202, in manage_states\n File "/tmp/ansible_vcd_user_payload_5ex_m9me/ansible_vcd_user_payload.zip/ansible/modules/vcd_user.py", line 238, in create\n File "/usr/local/lib/python3.6/site-packages/pyvcloud/vcd/org.py", line 1142, in get_role_record\n role_record = self.list_roles(('name', role_name))\n File "/usr/local/lib/python3.6/site-packages/pyvcloud/vcd/org.py", line 1175, in list_roles\n qfilter=org_filter)\n File "/usr/local/lib/python3.6/site-packages/pyvcloud/vcd/client.py", line 1749, in get_typed_query\n fields=fields)\n File "/usr/local/lib/python3.6/site-packages/pyvcloud/vcd/client.py", line 2136, in init\n fields=fields)\n File "/usr/local/lib/python3.6/site-packages/pyvcloud/vcd/client.py", line 1945, in init\n urllib.parse.quote(equality_filter[1]))\n File "/usr/lib64/python3.6/urllib/parse.py", line 825, in quote\n return quote_from_bytes(string, safe)\n File "/usr/lib64/python3.6/urllib/parse.py", line 850, in quote_from_bytes\n raise TypeError("quote_from_bytes() expected bytes")\nTypeError: quote_from_bytes() expected bytes\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File "/root/.ansible/tmp/ansible-tmp-1647276050.569314-7547-152016328611604/AnsiballZ_vcd_user.py", line 102, in \n _ansiballz_main()\n File "/root/.ansible/tmp/ansible-tmp-1647276050.569314-7547-152016328611604/AnsiballZ_vcd_user.py", line 94, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File "/root/.ansible/tmp/ansible-tmp-1647276050.569314-7547-152016328611604/AnsiballZ_vcd_user.py", line 40, in invoke_module\n runpy.run_module(mod_name='ansible.modules.vcd_user', init_globals=None, run_name='main', alter_sys=True)\n File "/usr/lib64/python3.6/runpy.py", line 205, in run_module\n return _run_module_code(code, init_globals, run_name, mod_spec)\n File "/usr/lib64/python3.6/runpy.py", line 96, in _run_module_code\n mod_name, mod_spec, pkg_name, script_name)\n File "/usr/lib64/python3.6/runpy.py", line 85, in _run_code\n exec(code, run_globals)\n File "/tmp/ansible_vcd_user_payload_5ex_m9me/ansible_vcd_user_payload.zip/ansible/modules/vcd_user.py", line 313, in \n File "/tmp/ansible_vcd_user_payload_5ex_m9me/ansible_vcd_user_payload.zip/ansible/modules/vcd_user.py", line 307, in main\n File "/tmp/ansible_vcd_user_payload_5ex_m9me/ansible_vcd_user_payload.zip/ansible/module_utils/basic.py", line 2196, in fail_json\n File "/tmp/ansible_vcd_user_payload_5ex_m9me/ansible_vcd_user_payload.zip/ansible/module_utils/basic.py", line 2168, in _return_formatted\n File "/tmp/ansible_vcd_user_payload_5ex_m9me/ansible_vcd_user_payload.zip/ansible/module_utils/basic.py", line 426, in remove_values\n File "/tmp/ansible_vcd_user_payload_5ex_m9me/ansible_vcd_user_payload.zip/ansible/module_utils/basic.py", line 403, in _remove_values_conditions\nTypeError: Value of unknown type: <class 'TypeError'>, quote_from_bytes() expected bytes\n",
"msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
"rc": 1,
"_ansible_no_log": false,
"changed": false
}
vCD version is 10.3
API_version is 36.0
pyvcloud version is 23.0.3
host: vCD URL
org: system
org_username: testuser
org_userpassword: testuserpw
description: testuser
role_name: TestRole
org_name: AnsibleOrg
is_enabled: false
Reproduction steps
Expected behavior
Create a user called testuser within the Org "AnsibleOrg" and assign it to the existing Org role "TestRole".
The user would have been created with the password testuserpw
The user would have been set as disabled. However, the user set as enabled was also attempted and failed.
Additional context
Please let me know if there's any further information required. I appreciate VCD 10.3 and API 36 aren't listed on your releases table but everything else I have tested so far, seems to have worked OK:
create Org, Create OrgVDC, read Org.
The text was updated successfully, but these errors were encountered: