#Documentation misleading/confusing

1 messages · Page 1 of 1 (latest)

fickle glacier
#

The documentation for na_ontap_dns module is misleading. The info for vserver is worded poorly. You are instructed to leave out vserver when using REST for cluster dns but the next statement says you can use the cluster name which is just not true and results in an error

"With REST, for cluster scoped DNS, omit this option or set it to NULL."
"With ZAPI or REST, for cluster scoped DNS, this can also be set to the cluster vserver name." <-- this is not true when using REST. you cant use the cluster name

lone aurora
#

What version of the collection are you using?

#

Under the cover the if you provide a cluster name, we call /api/cluster to get the DNS info as mentioned in the REST api documentation for /name-services/dns

fickle glacier
#

netapp.ontap 22.4.1

#

when adding a cluster name this is the response i get

TASK [Create DNS RTP cluster REST] ***********************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "module_stderr": "/home/matt/development/ansible_na_cluster/venv/lib64/python3.9/site-packages/urllib3/connectionpool.py:1045: InsecureRequestWarning: Unverified HTTPS request is being made to host 'REMOVED'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings\n warnings.warn(\n/home/matt/development/ansible_na_cluster/venv/lib64/python3.9/site-packages/urllib3/connectionpool.py:1045: InsecureRequestWarning: Unverified HTTPS request is being made to host 'REMOVED'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings\n warnings.warn(\nTraceback (most recent call last):\n File "/home/matt/.ansible/tmp/ansible-tmp-1689001005.1444714-2215719-86094855163926/AnsiballZ_na_ontap_dns.py", line 107, in <module>\n _ansiballz_main()\n File "/home/matt/.ansible/tmp/ansible-tmp-1689001005.1444714-2215719-86094855163926/AnsiballZ_na_ontap_dns.py", line 99, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File "/home/matt/.ansible/tmp/ansible-tmp-1689001005.1444714-2215719-86094855163926/AnsiballZ_na_ontap_dns.py", line 47, in invoke_module\n runpy.run_module(mod_name='ansible_collections.netapp.ontap.plugins.modules.na_ontap_dns', init_globals=dict(_module_fqn='ansible_collections.netapp.ontap.plugins.modules.na_ontap_dns', _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_netapp.ontap.na_ontap_dns_payload_3ymhgvkc/ansible_netapp.ontap.na_ontap_dns_payload.zip/ansible_collections/netapp/ontap/plugins/modules/na_ontap_dns.py", line 368, in <module>\n File "/tmp/ansible_netapp.ontap.na_ontap_dns_payload_3ymhgvkc/ansible_netapp.ontap.na_ontap_dns_payload.zip/ansible_collections/netapp/ontap/plugins/modules/na_ontap_dns.py", line 364, in main\n File "/tmp/ansible_netapp.ontap.na_ontap_dns_payload_3ymhgvkc/ansible_netapp.ontap.na_ontap_dns_payload.zip/ansible_collections/netapp/ontap/plugins/modules/na_ontap_dns.py", line 343, in apply\n File "/tmp/ansible_netapp.ontap.na_ontap_dns_payload_3ymhgvkc/ansible_netapp.ontap.na_ontap_dns_payload.zip/ansible_collections/netapp/ontap/plugins/modules/na_ontap_dns.py", line 274, in get_dns\n File "/tmp/ansible_netapp.ontap.na_ontap_dns_payload_3ymhgvkc/ansible_netapp.ontap.na_ontap_dns_payload.zip/ansible_collections/netapp/ontap/plugins/modules/na_ontap_dns.py", line 265, in get_dns_rest\nKeyError: 'svm'\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}

#

had to break error into 2 messages Since discord wont let me post long messages

fickle glacier
#

I should mention this task works on ONTAP 9.12 but not 9.13 GA

#

i havent tried more than those 2 ontap versions right now

fickle glacier
fickle glacier
#

Any help would be appreciated. This is still an issue

lone aurora
#

thanks for the output we are looking in to it

#

I think this is a bug on our side. I have DEVOPS-6341 story open for this.

fickle glacier
#

ok, thank you

fickle glacier
#

@lone aurora Where you able to track this issue down?

#

I have a feeling it will end up being resolved with a P release for 9.13

lone aurora
#

We haven’t had a chance yet to look@at the issue yet in house I’ll let you know when we have an update