#Sudden but inevitable failure.

1 messages · Page 1 of 1 (latest)

open folio
#

So I'm getting the below error

sing module file /mnt//ansible/collections/ansible_collections/netapp/ontap/plugins/modules/na_ontap_cifs.py

Pipelining is enabled.

EXEC (via pipeline wrapper)

fatal: [HOST.DOMAIN.net]: FAILED! => {

"ansible_facts": {

"discovered_interpreter_python": "/usr/bin/python3"

},

"changed": false,

"module_stderr": "Exception calling \"Create\" with \"1\" argument(s): \"At line:4 char:21\r\n+ def _ansiballz_main():\r\n+ ~\r\nAn expression was expected after '('.\r\nAt line:8 char:19\r\n+ os.getcwd()\r\n+ ~\r\nAn expression was expected after '('.\r\nAt line:20 char:27\r\n+ except (AttributeError, OSError):\r\n+ ~\r\nMissing argument in parameter list.\r\nAt line:22 char:29\r\n+ excludes = set(('', '.', scriptdir))\r\n+ ~\r\nMissing expression after ','.\r\nAt line:22 char:30\r\n+ excludes = set(('', '.', scriptdir))\r\n+ ~~~~~~~~~\r\nUnexpected token 'scriptdir' in expression or statement.\r\nAt line:22 char:29\r\n+ excludes = set(('', '.', scriptdir))\r\n+ ~\r\nMissing closing ')' in expression.\r\nAt line:22 char:39\r\n+ excludes = set(('', '.', scriptdir))\r\n+ ~\r\nUnexpected token ')' in expression or statement.\r\nAt line:22 char:40\r\n+ excludes = set(('', '.', scriptdir))\r\n+ ~\r\nUnexpected token ')' in expression or statement.\r\nAt line:29 char:7\r\n+ if sys.version_info < (3,):\r\n+ ~\r\nMissing '(' after 'if' in if statement.\r\nAt line:29 char:30\r\n+ if sys.version_info < (3,):\r\n+ ~\r\nMissing expression after ','.\r\nNot all parse errors were reported. Correct the reported errors and try again.\"\r\nAt line:10 char:1\r\n+ & ([ScriptBlock]::Create($split_parts[0]))\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n + CategoryInfo : NotSpecified: (:) [], MethodInvocationException\r\n + FullyQualifiedErrorId : ParseException\r\n \r\n",

"module_stdout": "",

"msg": "MODULE FAILURE: No start of json char found\nSee stdout/stderr for the exact error",

"rc": 1

}

When attempting to do a thing I've been doing for months now. Modifying a CIFS share with Ansible.

Specifically.

 - name: R - remove PRD share

    netapp.ontap.na_ontap_cifs:

      state: "{{ state }}"

      hostname: "{{ _hostname }}"

      username: "{{ _username }}"

      password: "{{ _pass }}"

      share_name: "{{ obj_name }}"

      path: "/{{ vol_junction }}/{{ obj_name }}"

      vserver: "CIFS01"

      https: true

      validate_certs: false

    when: prd_vserver == "CIFS"

 

  - name: R - remove DR share

    netapp.ontap.na_ontap_cifs:

      state: "{{ state }}"

      hostname: "{{ _hostname }}"

      username: "{{ _username }}"

      password: "{{ _pass }}"

      share_name: "{{ obj_name }}"

      path: "/{{ vol_junction }}/{{ obj_name }}"

      vserver: "CIFS_dest"

      https: true

      validate_certs: false

    when: prd_vserver == "CIFS"

I did have to fight auth issues for a few where apparently my host decided to not want to allow basic transport scheme for WINRM, but instead NTLM, so after some jiggering, I've gotten to here.

vale snow
#

"curse your sudden but inevitable betrayal"
(sorry I don't have anything substantial to add, but the title just reminded me of this quote from one of the best series ever 😂 )

open folio
#

100% where I stole it from 🙂