Forum Discussion

alex_storey's avatar
alex_storey
Novice I
2 months ago
Solved

I have another one actually simon - this time

I have another one actually simon - this time with `purefa_dsrole` - raising `AttributeError` when trying to set LDAP groups against builtin roles in the policy mapping section / directory service. The module is able to make changes and/or recognise no changes are required if values have already been populated manually in the GUI. but it's not able to set a Group Base and Group if no values are currently present. Using 1.33.1 of the module against Purity FA 6.7.2. Traceback error is in the thread.
  • alex_storey try this patch: https://github.com/Pure-Storage-Ansible/FlashArray-Collection/pull/721
  • Not sure yet - we have a few things we want to get into the next release.
  • You're a machine lol - thanks! What does the release schedule look like for these pull requests to get merged?
  • alex_storey try this patch: https://github.com/Pure-Storage-Ansible/FlashArray-Collection/pull/721
  • ```The full traceback is: Traceback (most recent call last): File "/Users/AStorey/.ansible/tmp/ansible-tmp-1741082888.790067-93740-186418374223329/AnsiballZ_purefa_dsrole.py", line 107, in <module> _ansiballz_main() File "/Users/AStorey/.ansible/tmp/ansible-tmp-1741082888.790067-93740-186418374223329/AnsiballZ_purefa_dsrole.py", line 99, in _ansiballz_main invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS) File "/Users/AStorey/.ansible/tmp/ansible-tmp-1741082888.790067-93740-186418374223329/AnsiballZ_purefa_dsrole.py", line 47, in invoke_module runpy.run_module(mod_name='ansible_collections.purestorage.flasharray.plugins.modules.purefa_dsrole', init_globals=dict(_module_fqn='ansible_collections.purestorage.flasharray.plugins.modules.purefa_dsrole', _modlib_path=modlib_path), File "<frozen runpy>", line 226, in run_module File "<frozen runpy>", line 98, in _run_module_code File "<frozen runpy>", line 88, in _run_code File "/var/folders/wf/5fg7c3m90h377brwqls7fbs40000gr/T/ansible_purestorage.flasharray.purefa_dsrole_payload_z36atvyt/ansible_purestorage.flasharray.purefa_dsrole_payload.zip/ansible_collections/purestorage/flasharray/plugins/modules/purefa_dsrole.py", line 330, in <module> File "/var/folders/wf/5fg7c3m90h377brwqls7fbs40000gr/T/ansible_purestorage.flasharray.purefa_dsrole_payload_z36atvyt/ansible_purestorage.flasharray.purefa_dsrole_payload.zip/ansible_collections/purestorage/flasharray/plugins/modules/purefa_dsrole.py", line 322, in main File "/var/folders/wf/5fg7c3m90h377brwqls7fbs40000gr/T/ansible_purestorage.flasharray.purefa_dsrole_payload_z36atvyt/ansible_purestorage.flasharray.purefa_dsrole_payload.zip/ansible_collections/purestorage/flasharray/plugins/modules/purefa_dsrole.py", line 183, in update_role File "/path/t2.pure.flasharray/venv/lib/python3.11/site-packages/pypureclient/flasharray/FA_2_36/models/directory_service_role.py", line 86, in __getattribute__ raise AttributeError AttributeError fatal: [localhost]: FAILED! => { "changed": false, "module_stderr": "Traceback (most recent call last):\n File \"/Users/AStorey/.ansible/tmp/ansible-tmp-1741082888.790067-93740-186418374223329/AnsiballZ_purefa_dsrole.py\", line 107, in <module>\n _ansiballz_main()\n File \"/Users/AStorey/.ansible/tmp/ansible-tmp-1741082888.790067-93740-186418374223329/AnsiballZ_purefa_dsrole.py\", line 99, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/Users/AStorey/.ansible/tmp/ansible-tmp-1741082888.790067-93740-186418374223329/AnsiballZ_purefa_dsrole.py\", line 47, in invoke_module\n runpy.run_module(mod_name='ansible_collections.purestorage.flasharray.plugins.modules.purefa_dsrole', init_globals=dict(_module_fqn='ansible_collections.purestorage.flasharray.plugins.modules.purefa_dsrole', _modlib_path=modlib_path),\n File \"<frozen runpy>\", line 226, in run_module\n File \"<frozen runpy>\", line 98, in _run_module_code\n File \"<frozen runpy>\", line 88, in _run_code\n File \"/var/folders/wf/5fg7c3m90h377brwqls7fbs40000gr/T/ansible_purestorage.flasharray.purefa_dsrole_payload_z36atvyt/ansible_purestorage.flasharray.purefa_dsrole_payload.zip/ansible_collections/purestorage/flasharray/plugins/modules/purefa_dsrole.py\", line 330, in <module>\n File \"/var/folders/wf/5fg7c3m90h377brwqls7fbs40000gr/T/ansible_purestorage.flasharray.purefa_dsrole_payload_z36atvyt/ansible_purestorage.flasharray.purefa_dsrole_payload.zip/ansible_collections/purestorage/flasharray/plugins/modules/purefa_dsrole.py\", line 322, in main\n File \"/var/folders/wf/5fg7c3m90h377brwqls7fbs40000gr/T/ansible_purestorage.flasharray.purefa_dsrole_payload_z36atvyt/ansible_purestorage.flasharray.purefa_dsrole_payload.zip/ansible_collections/purestorage/flasharray/plugins/modules/purefa_dsrole.py\", line 183, in update_role\n File \"/path/t2.pure.flasharray/venv/lib/python3.11/site-packages/pypureclient/flasharray/FA_2_36/models/directory_service_role.py\", line 86, in __getattribute__\n raise AttributeError\nAttributeError\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1```