#Unverified HTTPS request is being made to host
1 messages · Page 1 of 1 (latest)
This is a private network and we do not use certs. As mentioned this code does work with existing clusters in our environment.
This looks like a code bug to me. Try to edit the file/tmp/ansible_netapp.ontap.na_ontap_login_messages_payload_oQeF4R/ansible_netapp.ontap.na_ontap_login_messages_payload.zip/ansible_collections/netapp/ontap/plugins/module_utils/netapp.py change line 990 from self.module.fail_json('User is not authorized.')
to
self.module.fail_json(msg="User is not authorized.")
I think you will get a "User is not authorized" back after the change. So probably your credentials are incorrect. 😄
@valid violet Could you share the error message you're getting?
@stuck dew Shortend version of the original error in the post was this:
"module_stderr": "No handlers could be found for logger \"ansible_collections.netapp.ontap.plugins.module_utils.netapp\"\nTraceback (most recent call last):\n File \"/var/lib/awx/.ansible/tmp/ansible-tmp-/AnsiballZ_na_ontap_login_messages.py\", line 102, in <module>\n _ansiballz_main()\n File \"/var/lib/awx/.ansible/tmp/ansible-tmp-/AnsiballZ_na_ontap_login_messages.py\", line 94, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/var/lib/awx/.ansible/tmp/ansible-tmp-/AnsiballZ_na_ontap_login_messages.py\", line 40, in invoke_module\n runpy.run_module(mod_name='ansible_collections.netapp.ontap.plugins.modules.na_ontap_login_messages', init_globals=None, run_name='__main__', alter_sys=True)\n File \"/usr/lib64/python2.7/runpy.py\", line 176, in run_module\n fname, loader, pkg_name)\n File \"/usr/lib64/python2.7/runpy.py\", line 82, in _run_module_code\n mod_name, mod_fname, mod_loader, pkg_name)\n File \"/usr/lib64/python2.7/runpy.py\", line 72, in _run_code\n exec code in run_globals\n File \"/tmp/payload.zip/ansible_collections/netapp/ontap/plugins/modules/na_ontap_login_messages.py\", line 310, in <module>\n File \"/tmp/payload.zip/ansible_collections/netapp/ontap/plugins/modules/na_ontap_login_messages.py\", line 305, in main\n File \"/tmp/payload.zip/ansible_collections/netapp/ontap/plugins/modules/na_ontap_login_messages.py\", line 118, in __init__\n File \"/tmp/payload.zip/ansible_collections/netapp/ontap/plugins/module_utils/netapp.py\", line 1090, in is_rest\n File \"/tmp/payload.zip/ansible_collections/netapp/ontap/plugins/module_utils/netapp.py\", line 1038, in _is_rest\n File \"/tmp/payload.zip/ansible_collections/netapp/ontap/plugins/module_utils/netapp.py\", line 990, in get_ontap_version_using_rest\nTypeError: fail_json() takes exactly 1 argument (2 given)\n",
It works fine with Python3. Maybe related to Python 2.7