Hello,
When I run the below ansible playbook against a SVM:
- name: REST Get NetApp infos
netapp.ontap.na_ontap_rest_info:
<<: login
use_rest: Always
fields:
- ''
gather_subset:
- storage/volumes/snapshots
owning_resource:
volume_name: "{{ item }}"
svm_name: "{{ full_target }}"
with_items: "{{ ontap_info_vol }}"
I get the following module error :
TASK [REST Get NetApp infos] ***************************************************
Monday 22 April 2024 16:18:47 +0200 (0:00:00.039) 0:00:13.709 **********
ok: [localhost] => (item=nasr426dsy_root)
failed: [localhost] (item=nasr426dsy_vol426) => {"ansible_loop_var": "item", "changed": false, "item": "nasr426dsy_vol426", "module_stderr": "/usr/lib/python3.6/site-
None: Other error: HTTPSConnectionPool(host=xxxxxxxxxxxxxxxxxxxxxxxxx', port=443): Read timed out. (read timeout=60)
Traceback (most recent call last):
File "...AnsiballZ_na_ontap_rest_info.py", line 100, in <module> _ansiballz_main()
..
File "... _payload.zip/ansible_collections/netapp/ontap/plugins/modules/na_ontap_rest_info.py", line 1151, in <module>
..
File "... _payload.zip/ansible_collections/netapp/ontap/plugins/modules/na_ontap_rest_info.py", line 813, in get_ontap_subset_info_all
File "... _payload.zip/ansible_collections/netapp/ontap/plugins/modules/na_ontap_rest_info.py", line 549, in get_subset_info\nAttributeError: 'str' object has no attribute 'get'
", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}
I tried with :
- ONTAP 9.13.1P7
- Ansible module 22.9.0 and 22.10.0 (near latest version)
- RHEL 9.3
- Ansible 3.6
So I get a read timeout (read timeout=60) as exposed above.
How should I work around this timeout ?
Thx