Closed AwesomeNameMan closed 2 years ago
It looks like a connectivity issue. This issue may be better addressed in slack.
A first step would be to run the following playbook: https://github.com/ansible-collections/netapp.ontap/blob/main/playbooks/examples/support/debug_connectivity.yaml
Doesn't seem like a connectivity issue to me at the first glance, but we can gladly diagnose it on slack together:
TASK [Testing connectivity] ***
task path: /home/awesome/bwsfs-ansible/conn.yml:31
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: awesome
<127.0.0.1> EXEC /bin/sh -c 'echo ~awesome && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "echo /home/awesome/.ansible/tmp
"&& mkdir "echo /home/awesome/.ansible/tmp/ansible-tmp-1650370836.447979-92906-83294384685849
" && echo ansible-tmp-1650370836.447979-92906-83294384685849="echo /home/awesome/.ansible/tmp/ansible-tmp-1650370836.447979-92906-83294384685849
" ) && sleep 0'
Including module_utils file ansible/init.py
Including module_utils file ansible/module_utils/init.py
Including module_utils file ansible/module_utils/_text.py
Including module_utils file ansible/module_utils/basic.py
Including module_utils file ansible/module_utils/common/_collections_compat.py
Including module_utils file ansible/module_utils/common/init.py
Including module_utils file ansible/module_utils/common/_json_compat.py
Including module_utils file ansible/module_utils/common/_utils.py
Including module_utils file ansible/module_utils/common/arg_spec.py
Including module_utils file ansible/module_utils/common/file.py
Including module_utils file ansible/module_utils/common/parameters.py
Including module_utils file ansible/module_utils/common/collections.py
Including module_utils file ansible/module_utils/common/process.py
Including module_utils file ansible/module_utils/common/sys_info.py
Including module_utils file ansible/module_utils/common/text/converters.py
Including module_utils file ansible/module_utils/common/text/init.py
Including module_utils file ansible/module_utils/common/text/formatters.py
Including module_utils file ansible/module_utils/common/validation.py
Including module_utils file ansible/module_utils/common/warnings.py
Including module_utils file ansible/module_utils/compat/selectors.py
Including module_utils file ansible/module_utils/compat/init.py
Including module_utils file ansible/module_utils/compat/_selectors2.py
Including module_utils file ansible/module_utils/compat/selinux.py
Including module_utils file ansible/module_utils/distro/init.py
Including module_utils file ansible/module_utils/distro/_distro.py
Including module_utils file ansible/module_utils/errors.py
Including module_utils file ansible/module_utils/parsing/convert_bool.py
Including module_utils file ansible/module_utils/parsing/init.py
Including module_utils file ansible/module_utils/pycompat24.py
Including module_utils file ansible/module_utils/six/init.py
Including module_utils file ansible_collections/netapp/ontap/plugins/module_utils/netapp.py
Including module_utils file ansible/module_utils/ansible_release.py
Including module_utils file ansible_collections/init.py
Including module_utils file ansible_collections/netapp/init.py
Including module_utils file ansible_collections/netapp/ontap/init.py
Including module_utils file ansible_collections/netapp/ontap/plugins/init.py
Including module_utils file ansible_collections/netapp/ontap/plugins/module_utils/init.py
Including module_utils file ansible_collections/netapp/ontap/plugins/module_utils/netapp_module.py
Including module_utils file ansible_collections/netapp/ontap/plugins/module_utils/rest_user.py
Including module_utils file ansible_collections/netapp/ontap/plugins/module_utils/rest_response_helpers.py
Including module_utils file ansible_collections/netapp/ontap/plugins/module_utils/rest_vserver.py
Using module file /home/awesome/.ansible/collections/ansible_collections/netapp/ontap/plugins/modules/na_ontap_debug.py
<127.0.0.1> PUT /home/awesome/.ansible/tmp/ansible-local-9289941flpzzd/tmpm3ctbm3c TO /home/awesome/.ansible/tmp/ansible-tmp-1650370836.447979-92906-83294384685849/AnsiballZ_na_ontap_debug.py
<127.0.0.1> EXEC /bin/sh -c 'chmod u+x /home/awesome/.ansible/tmp/ansible-tmp-1650370836.447979-92906-83294384685849/ /home/awesome/.ansible/tmp/ansible-tmp-1650370836.447979-92906-83294384685849/AnsiballZ_na_ontap_debug.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '/usr/bin/python3.6 /home/awesome/.ansible/tmp/ansible-tmp-1650370836.447979-92906-83294384685849/AnsiballZ_na_ontap_debug.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c 'rm -f -r /home/awesome/.ansible/tmp/ansible-tmp-1650370836.447979-92906-83294384685849/ > /dev/null 2>&1 && sleep 0'
ok: [localhost] => {
"changed": false,
"invocation": {
"module_args": {
"cert_filepath": null,
"feature_flags": {},
"hostname": "****",
"http_port": null,
"https": true,
"key_filepath": null,
"ontapi": null,
"password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"use_rest": "auto",
"username": "vsadmin",
"validate_certs": false,
"vserver": null
}
},
"msg": [
"netapp-lib imported successfully.",
"zapi connected successfully.",
"ONTAP version: NetApp Release 9.10.1: Sat Jan 15 15:04:44 UTC 2022",
"rest connected successfully.",
"ONTAP version: NetApp Release 9.10.1: Sat Jan 15 15:04:44 UTC 2022"
]
}
Read vars_file './vars/testing/testingyml'
META: ran handlers
Read vars_file './vars/testing/testing.yml'
META: ran handlers
I don't think it's a module issue. I used the latest collection version, and I could run na_ontap_flexcache as vsadmin both with ONTAP 9.8 and 9.10.1.
The test with na_ontap_debug rules out any connectivity issue related to vsadmin account.
The last time we saw such an issue, it was a proxy issue. Maybe something malformed sent to ONTAP?
This would need to be addressed with ONTAP support, as we merely report what ONTAP is sending back to us.
I found the cause of the error: ssl was not enabled for the vserver (although the same task is used for other vserver). This then causes the actual error to occur.
Solution:
ssl modify -vserver <vserver> -server-enabled true
Great! A bit surprising na_ontap_debug did not help here.
Summary
When I try to create a FlexCache volume with cluster-admin privileges, the task works jsut fine. Doing the same with vsadmin privileges throws an error (please view actual results).
Component Name
na_ontap_flexcache
Ansible Version
ONTAP Collection Version
ONTAP Version
Playbook
Steps to Reproduce
Expected Results
Create a FlexCache volume on the destination cluster.
Actual Results