it succeeds on some Pure arrays, but fails on one Pure array with below stack trace.
I have not tested all arrays. Just few ones among 50.
warnings.warn(\nTraceback (most recent call last):\n
File \"/home/xxxxxxxxx/.ansible/tmp/ansible-tmp-1684937614.3134828-506956-13682452215673/AnsiballZ_purefa_info.py\", line 100, in <module>\n _ansiballz_main()\n
File \"/home/xxxxxxxxx/.ansible/tmp/ansible-tmp-1684937614.3134828-506956-13682452215673/AnsiballZ_purefa_info.py\", line 92, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n
File \"/home/xxxxxxxxx/.ansible/tmp/ansible-tmp-1684937614.3134828-506956-13682452215673/AnsiballZ_purefa_info.py\", line 40, in invoke_module\n runpy.run_module(mod_name='ansible_collections.purestorage.flasharray.plugins.modules.purefa_info', init_globals=dict(_module_fqn='ansible_collections.purestorage.flasharray.plugins.modules.purefa_info', _modlib_path=modlib_path),\n
File \"/usr/lib64/python3.9/runpy.py\", line 225, in run_module\n return _run_module_code(code, init_globals, run_name, mod_spec)\n
File \"/usr/lib64/python3.9/runpy.py\", line 97, in _run_module_code\n _run_code(code, mod_globals, init_globals,\n
File \"/usr/lib64/python3.9/runpy.py\", line 87, in _run_code\n exec(code, run_globals)\n
File \"/tmp/ansible_purestorage.flasharray.purefa_info_payload_kmvnqhxf/ansible_purestorage.flasharray.purefa_info_payload.zip/ansible_collections/purestorage/flasharray/plugins/modules/purefa_info.py\", line 2286,
in <module>\n
File \"/tmp/ansible_purestorage.flasharray.purefa_info_payload_kmvnqhxf/ansible_purestorage.flasharray.purefa_info_payload.zip/ansible_collections/purestorage/flasharray/plugins/modules/purefa_info.py\", line 2225, in main\n
File \"/tmp/ansible_purestorage.flasharray.purefa_info_payload_kmvnqhxf/ansible_purestorage.flasharray.purefa_info_payload.zip/ansible_collections/purestorage/flasharray/plugins/modules/purefa_info.py\", line 2020,
in generate_hgroups_dict\n
File \"/usr/local/lib/python3.9/site-packages/pypureclient/flasharray/FA_2_16/models/space.py\", line 142, in __getattribute__\n raise AttributeError\nAttributeError\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}
As per the stack strace, it looks related to generate_hgroups_dict.
So I did a try commenting the hgroup subset collect in above playbook.
Execution went fine by commenting hgroup subset collect.
To Reproduce
Execute above playbook on some Pure array to collect hgroup subset.
Most of the time, it works. But it fails on one array.
I've done only few tests on different arrays.
Expected behavior
Exection show have completed wothout stack trace on any Pure array
Additional context
I had installed version 1.19.1 of Ansible collection for Pure array yesterday, before above test.
Describe the bug While executing below playbook,
it succeeds on some Pure arrays, but fails on one Pure array with below stack trace.
I have not tested all arrays. Just few ones among 50.
As per the stack strace, it looks related to generate_hgroups_dict. So I did a try commenting the hgroup subset collect in above playbook. Execution went fine by commenting hgroup subset collect.
To Reproduce Execute above playbook on some Pure array to collect hgroup subset. Most of the time, it works. But it fails on one array. I've done only few tests on different arrays.
Expected behavior Exection show have completed wothout stack trace on any Pure array
Additional context I had installed version 1.19.1 of Ansible collection for Pure array yesterday, before above test.