#Module timeout and error in na_ontap_rest_info with Ansible collection 22.9.0 and 22.10.0

1 messages · Page 1 of 1 (latest)

cosmic remnant
#

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

cosmic remnant
#

Any hint about such a long response time ?

#

Can the timeout of 60 seconds be increased ?

#

What about the response time of the API. 60 seconds is very long.