# netapp volume create play book gives error

**URL:** <https://forum.ansible.com/t/netapp-volume-create-play-book-gives-error/26553>\
**Category:** Ansible Developer\
**Created:** [January 24, 2018, 8:24am UTC](https://forum.ansible.com/t/netapp-volume-create-play-book-gives-error/26553 "2018-01-24T08:24:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ashish\_Badgujar](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@Ashish\_Badgujar](https://forum.ansible.com/u/Ashish_Badgujar)\
**Post date:** [January 24, 2018, 8:24am UTC](https://forum.ansible.com/t/netapp-volume-create-play-book-gives-error/26553/1 "2018-01-24T08:24:10Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Karol\_Czeryna](https://avatars.discourse-cdn.com/v4/letter/k/ed655f/32.png) [@Karol\_Czeryna](https://forum.ansible.com/u/Karol_Czeryna)\
**Post date:** [January 24, 2018, 9:36am UTC](https://forum.ansible.com/t/netapp-volume-create-play-book-gives-error/26553/2 "2018-01-24T09:36:24Z")

</div>

Hi Ashish!

It looks like the python library(netapp-lib - [http://docs.ansible.com/ansible/latest/na\_cdot\_volume\_module.html](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
