netapp volume create play book gives error

Hi ALL,

i am getting below error while running playbook

Using /etc/ansible/ansible.cfg as config file

PLAY *********************************************************************************************************

TASK [na_cdot_volume] *******************************************************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: netapp_lib.api.zapi.zapi.NaAError: NetApp API failed. Reason - 13010:Version 1.21 was requested, but only 1.19 is supported.
fatal: : FAILED! => {“changed”: false, “module_stderr”: “Traceback (most recent call last):\n File "/tmp/ansie_nPfY5N/ansible_module_na_cdot_volume.py", line 402, in \n main()\n File "/tmp/ansible_nPfY5N/ansible_module_ncdot_volume.py", line 399, in main\n v.apply()\n File "/tmp/ansible_nPfY5N/ansible_module_na_cdot_volume.py", line 347in apply\n volume_detail = self.get_volume()\n File "/tmp/ansible_nPfY5N/ansible_module_na_cdot_volume.py", line 197, iget_volume\n result = self.server.invoke_successfully(volume_info, True)\n File "/usr/lib/python2.7/site-packages/netappib/api/zapi/zapi.py", line 294, in invoke_successfully\n raise NaApiError(code, msg)\nnetapp_lib.api.zapi.zapi.NaApiErrorNetApp API failed. Reason - 13010:Version 1.21 was requested, but only 1.19 is supported.\n”, “module_stdout”: “”, “msg”: “MOLE FAILURE”, “rc”: 0}
to retry, use: --limit @/etc/ansible/playbooks/1.retry

PLAY RECAP ******************************************************************************************************************
: ok=0 changed=0 unreachable=0 failed=1

  • user: root
    hosts:
    gather_facts: no
    connection: local
    vars:
    netapp_hostname:
    netapp_username: root
    netapp_password:
    tasks:
  • na_cdot_volume:
    state: present
    name: ansibleVolume
    aggregate_name: aggr1
    vserver: ansibleVServer
    size: 20
    size_unit: mb
    hostname: “{{ netapp_hostname }}”
    username: “{{ netapp_username }}”
    password: “{{ netapp_password }}”

can someone help me here.

Hi Ashish!

It looks like the python library(netapp-lib - http://docs.ansible.com/ansible/latest/na_cdot_volume_module.html) is too new.

The error was: netapp_lib.api.zapi.zapi.NaAError: NetApp API failed. Reason - 13010:Version 1.21 was requested, but only 1.19 is supported.

Try to downgrade the library and try again.

Best,
Karol