FlashArray-Collection
FlashArray-Collection copied to clipboard
Bug in purestorage.flasharray.purefa_info collecting flash array info
Hi I am experiencing a module failure while trying to collect flash array info using module purestorage.flasharray.purefa_info:
Steps to reproduce the behavior:
Run a playbook with task:
- name: Collect FlashArray data
purestorage.flasharray.purefa_info:
fa_url: "{{ url }}"
api_token: "{{ token }}"
gather_subset:
- all
register: _flasharray_output
- name: Debug FlashArray data
ansible.builtin.debug:
var: _flasharray_output
(also tried with smaller subset)
Expected behavior An output showing dict with the gathered info.
Actual behavior Error as follows:
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: TypeError: Client.get_hosts_tags() got an unexpected keyword argument 'resource_destroyed'
fatal: [localhost]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):
File \"/home/your_user/.ansible/tmp/ansible-tmp-1762957501.5003517-191281-125701112631151/AnsiballZ_purefa_info.py\", line 107, in <module>
_ansiballz_main()
File \"/home/your_user/.ansible/tmp/ansible-tmp-1762957501.5003517-191281-125701112631151/AnsiballZ_purefa_info.py\", line 99, in _ansiballz_main
invoke_module(zipped_mod, temp_path,ANSIBALLZ_PARAMS)
File \"/home/your_user/.ansible/tmp/ansible-tmp-1762957501.5003517-191281-125701112631151/AnsiballZ_purefa_info.py\", line 47, in invoke_module
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),
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 \"/tmp/ansible_purestorage.flasharray.purefa_info_payload_9fjfdfw3/ansible_purestorage.flasharray.purefa_info_payload.zip/ansible_collections/purestorage/flasharray/plugins/modules/purefa_info.py\", line 3603, in <module>
File \"/tmp/ansible_purestorage.flasharray.purefa_info_payload_9fjfdfw3/ansible_purestorage.flasharray.purefa_info_payload.zip/ansible_collections/purestorage/flasharray/plugins/modules/purefa_info.py\", line 3527, in main
File \"/tmp/ansible_purestorage.flasharray.purefa_info_payload_9fjfdfw3/ansible_purestorage.flasharray.purefa_info_payload.zip/ansible_collections/purestorage/flasharray/plugins/modules/purefa_info.pHy\", line 1979, in generate_host_dict
TypeError: Client.get_hosts_tags() got an unexpected keyword argument 'resource_destroyed'
", "module_stdout": "", "msg": "MODULE FAILURE
See stdout/stderr for the exact error", "rc": 1}
Context
- Ansible, python, and pip packages:
ansible==9.13.0
ansible-core==2.16.14
purestorage==1.19.0
py-pure-client==1.77.1
ansible-playbook [core 2.16.14]
config file = /etc/ansible/ansible.cfg
configured module search path = ['/home/your_user/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/your_user/.local/lib/python3.12/site-packages/ansible
ansible collection location = /home/your_user/.ansible/collections:/usr/share/ansible/collections
executable location = /home/your_user/.local/bin/ansible-playbook
python version = 3.12.9 (main, Aug 14 2025, 00:00:00) [GCC 11.5.0 20240719 (Red Hat 11.5.0-5)] (/usr/bin/python3.12)
purestorage.flasharray 1.40.0
Let me know if I can provide other info.
Thanks!
Hi, for info this issue is not happening in pure arrays in version 6.9.2. Only in older ones (6.7.4). We plan to migrate our arrays to this versions, but it might be worth seeing if it can be fixed for older versions too?