Generic error, definitely non standard module.

Alright,

So I’m using NetApp Ansible modules to try and just pass CLI commands, as seen below.
I’m getting the further error (very bottom), no matter what I do for some awful reason.

Wtf am I doing wrong?

No workie

  • name: Create CLI event forwarding
    na_ontap_command:
    hostname: “{{ target_fas }}”
    username: “{{ target_fas_usn }}”
    password: “{{ target_fas_pw }}”
    https: true
    validate_certs: false
    return_dict: yes
    command: [ ‘cluster’, ‘log-forwarding’, ‘create’, ‘-destination’, ‘{{ loginsight_ip }}’, ‘-port’, ‘514’]

Workie

  • name: check for CLI Event forwarding
    na_ontap_command:
    hostname: “{{ target_fas }}”
    username: “{{ target_fas_usn }}”
    password: “{{ target_fas_pw }}”
    https: true
    validate_certs: false
    return_dict: yes
    command: [‘cluster’, ‘log-forwarding’, ‘show’]
    register: results_log_forwarding

lxml.etree.XMLSyntaxError: PCDATA invalid Char value 8, line 4, column 117

fatal: [localhost]: FAILED! => {
“changed”: false,
“module_stderr”: “Traceback (most recent call last):\n File "/root/.ansible/tmp/ansible-tmp-1600692910.7940214-205509662386614/AnsiballZ_na_ontap_command.py", line 102, in \n _ansiballz_main()\n File "/root/.ansible/tmp/ansible-tmp-1600692910.7940214-205509662386614/AnsiballZ_na_ontap_command.py", line 94, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File "/root/.ansible/tmp/ansible-tmp-1600692910.7940214-205509662386614/AnsiballZ_na_ontap_command.py", line 40, in invoke_module\n runpy.run_module(mod_name=‘ansible.modules.storage.netapp.na_ontap_command’, init_globals=None, run_name=‘main’, alter_sys=True)\n File "/usr/lib64/python3.6/runpy.py", line 205, in run_module\n return _run_module_code(code, init_globals, run_name, mod_spec)\n File "/usr/lib64/python3.6/runpy.py", line 96, in _run_module_code\n mod_name, mod_spec, pkg_name, script_name)\n File "/usr/lib64/python3.6/runpy.py", line 85, in _run_code\n exec(code, run_globals)\n File "/tmp/ansible_na_ontap_command_payload_eehk53_3/ansible_na_ontap_command_payload.zip/ansible/modules/storage/netapp/na_ontap_command.py", line 228, in \n File "/tmp/ansible_na_ontap_command_payload_eehk53_3/ansible_na_ontap_command_payload.zip/ansible/modules/storage/netapp/na_ontap_command.py", line 224, in main\n File "/tmp/ansible_na_ontap_command_payload_eehk53_3/ansible_na_ontap_command_payload.zip/ansible/modules/storage/netapp/na_ontap_command.py", line 149, in apply\n File "/tmp/ansible_na_ontap_command_payload_eehk53_3/ansible_na_ontap_command_payload.zip/ansible/modules/storage/netapp/na_ontap_command.py", line 132, in run_command\n File "/usr/local/lib/python3.6/site-packages/netapp_lib/api/zapi/zapi.py", line 281, in invoke_successfully\n result = self.invoke_elem(na_element, enable_tunneling)\n File "/usr/local/lib/python3.6/site-packages/netapp_lib/api/zapi/zapi.py", line 266, in invoke_elem\n response_element = self._get_result(response_xml)\n File "/usr/local/lib/python3.6/site-packages/netapp_lib/api/zapi/zapi.py", line 337, in _get_result\n processed_response = self._parse_response(response)\n File "/usr/local/lib/python3.6/site-packages/netapp_lib/api/zapi/zapi.py", line 332, in _parse_response\n xml = etree.XML(response)\n File "src/lxml/etree.pyx", line 3213, in lxml.etree.XML\n File "src/lxml/parser.pxi", line 1876, in lxml.etree._parseMemoryDocument\n File "src/lxml/parser.pxi", line 1764, in lxml.etree._parseDoc\n File "src/lxml/parser.pxi", line 1127, in lxml.etree._BaseParser._parseDoc\n File "src/lxml/parser.pxi", line 601, in lxml.etree._ParserContext._handleParseResultDoc\n File "src/lxml/parser.pxi", line 711, in lxml.etree._handleParseResult\n File "src/lxml/parser.pxi", line 640, in lxml.etree._raiseParseError\n File "", line 4\nlxml.etree.XMLSyntaxError: PCDATA invalid Char value 8, line 4, column 117\n”,
“module_stdout”: “”,
“msg”: “MODULE FAILURE\nSee stdout/stderr for the exact error”,

… solved it by updating modules and converting to collections.

Please disregard :slight_smile: