General Discussion

Highlighted

Unable to Create and enable Scanner pool using ansible

Unable to Create and enable Scanner pool using ansible:

 

I am new user trying to learn ansible, when i was trying to create scanner pool using playbook received below error:
Kindly help me to understand the error also if there is any other way to capture the exact errors please suggest.

 

TASK [Create and enable Scanner pool] **********************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "module_stderr": "/home/tinz096/.ansible/tmp/ansible-tmp-1588754252.9913952-278961512290863/AnsiballZ_na_ontap_vscan_scanner_pool.py:18: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses\n import imp\nTraceback (most recent call last):\n File \"/home/tinz096/.ansible/tmp/ansible-tmp-1588754252.9913952-278961512290863/AnsiballZ_na_ontap_vscan_scanner_pool.py\", line 114, in <module>\n _ansiballz_main()\n File \"/home/tinz096/.ansible/tmp/ansible-tmp-1588754252.9913952-278961512290863/AnsiballZ_na_ontap_vscan_scanner_pool.py\", line 106, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/home/tinz096/.ansible/tmp/ansible-tmp-1588754252.9913952-278961512290863/AnsiballZ_na_ontap_vscan_scanner_pool.py\", line 49, in invoke_module\n imp.load_module('__main__', mod, module, MOD_DESC)\n File \"/usr/lib/python3.7/imp.py\", line 234, in load_module\n return load_source(name, filename, file)\n File \"/usr/lib/python3.7/imp.py\", line 169, in load_source\n module = _exec(spec, sys.modules[name])\n File \"<frozen importlib._bootstrap>\", line 630, in _exec\n File \"<frozen importlib._bootstrap_external>\", line 728, in exec_module\n File \"<frozen importlib._bootstrap>\", line 219, in _call_with_frames_removed\n File \"/tmp/ansible_na_ontap_vscan_scanner_pool_payload_x3t2bgep/__main__.py\", line 238, in <module>\n File \"/tmp/ansible_na_ontap_vscan_scanner_pool_payload_x3t2bgep/__main__.py\", line 234, in main\n File \"/tmp/ansible_na_ontap_vscan_scanner_pool_payload_x3t2bgep/__main__.py\", line 210, in apply\n File \"/tmp/ansible_na_ontap_vscan_scanner_pool_payload_x3t2bgep/__main__.py\", line 176, in get_scanner_pool\nAttributeError: 'NoneType' object has no attribute 'get_child_by_name'\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}

Cloud Volumes ONTAP
Review Banner
All Community Forums
Public