# Problem with the RedHat's VDO module

**URL:** <https://forum.ansible.com/t/problem-with-the-redhats-vdo-module/29909>\
**Category:** Ansible Project\
**Created:** [March 19, 2019, 11:32am UTC](https://forum.ansible.com/t/problem-with-the-redhats-vdo-module/29909 "2019-03-19T11:32:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![William\_Muriithi](https://avatars.discourse-cdn.com/v4/letter/w/6de8d8/32.png) [@William\_Muriithi](https://forum.ansible.com/u/William_Muriithi)\
**Post date:** [March 19, 2019, 11:32am UTC](https://forum.ansible.com/t/problem-with-the-redhats-vdo-module/29909/1 "2019-03-19T11:32:51Z")

</div>

Morning,

I am seeing this error and wonder if someone have seen a similar error  
with this module or would know what could be the problem. These are  
the particulars of this problem:

[william@ansible ~]$ rpm -qa | grep ansible  
ansible-2.7.8-1.el7.noarch  
[william@ansible ~]$

Task:

&nbsp;&nbsp;&nbsp;&nbsp;- name: Intialize VDO storage  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;vdo: name={{ansible\_hostname}} state=present  
device=/dev/disk/by-id/scsi-360022190be1e45001dddfc0413294b89-part6  
logicalsize=30T slabsize=32G blockmapcachesize=25G indexmode=sparse  
indexmem=1  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;when:  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- ansible\_distribution\_major\_version == "7" or  
ansible\_distribution\_major\_version == "8"  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- "'srv02' in inventory\_hostname"

When I attempt to run the above task, I am getting the error below:

fatal: [srv02.eng.example.com]: FAILED! =\> {  
&nbsp;&nbsp;&nbsp;&nbsp;"changed": false,  
&nbsp;&nbsp;&nbsp;&nbsp;"module\_stderr": "Shared connection to srv02.eng.example.com closed.\r\n",  
&nbsp;&nbsp;&nbsp;&nbsp;"module\_stdout": "Traceback (most recent call last):\r\n File  
\"/root/.ansible/tmp/ansible-tmp-1552994022.93-248012118717146/AnsiballZ\_vdo.py\",  
line 113, in \<module\>\r\n \_ansiballz\_main()\r\n File  
\"/root/.ansible/tmp/ansible-tmp-1552994022.93-248012118717146/AnsiballZ\_vdo.py\",  
line 105, in \_ansiballz\_main\r\n invoke\_module(zipped\_mod,  
temp\_path, ANSIBALLZ\_PARAMS)\r\n File  
\"/root/.ansible/tmp/ansible-tmp-1552994022.93-248012118717146/AnsiballZ\_vdo.py\",  
line 48, in invoke\_module\r\n imp.load\_module('\_\_main\_\_', mod,  
module, MOD\_DESC)\r\n File  
\"/tmp/ansible\_vdo\_payload\_\_\_zONc/\_\_main\_\_.py\", line 873, in  
\<module\>\r\n File \"/tmp/ansible\_vdo\_payload\_\_\_zONc/\_\_main\_\_.py\",  
line 869, in main\r\n File  
\"/tmp/ansible\_vdo\_payload\_\_\_zONc/\_\_main\_\_.py\", line 611, in  
run\_module\r\nTypeError: string indices must be integers, not  
str\r\n",  
&nbsp;&nbsp;&nbsp;&nbsp;"msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",  
&nbsp;&nbsp;&nbsp;&nbsp;"rc": 1  
}  
to retry, use: --limit @/etc/ansible/site.retry

What could be tripping this module? I have counter checked that  
modules parameters are correct from documentations, so not sure where  
I am passing string instead of integer.

Regards,  
William
