The way we have to write the variables for 2.8 while setting up cache.
Currently we are writing something like this:
>>>>
gluster_infra_cache_vars:
- vgname: vg_sdb2
cachedisk: /dev/sdb3
cachelvname: cachelv_thinpool_vg_sdb2
cachethinpoolname: thinpool_vg_sdb2
cachelvsize: '10G'
cachemetalvsize: '2G'
cachemetalvname: cache_thinpool_vg_sdb2
cachemode: writethrough
===================
Not that cachedisk is provided as /dev/sdb3 which would be extended with vg vg_sdb2 ... this works well
The module will take care of extending the vg with /dev/sdb3.
However with Ansible-2.8 we cannot provide like this but have to be more explicit. And have to mention the pv underlying
this volume group vg_sdb2. So, with respect to 2.8 we have to write that variable like:
>>>>>>>>>>>>>>>
gluster_infra_cache_vars:
- vgname: vg_sdb2
cachedisk: '/dev/sdb2,/dev/sdb3'
cachelvname: cachelv_thinpool_vg_sdb2
cachethinpoolname: thinpool_vg_sdb2
cachelvsize: '10G'
cachemetalvsize: '2G'
cachemetalvname: cache_thinpool_vg_sdb2
cachemode: writethrough
=====================
Note that I have mentioned both /dev/sdb2 and /dev/sdb3.
This change is backward compatible, that is it works with 2.7 as well. I have raised an issue with Ansible as well.
However, @olafbuitelaar has fixed this in gluster-ansible-infra, and the patch is merged in master.
If you can checkout master branch, you should be fine.