gluster / gluster-ansible-infra

Ansible role to enable and deploy the backend of a Gluster cluster.
GNU General Public License v3.0
28 stars 36 forks source link

This fix addresses 2 issues - blacklisting with partition devices & fstab mount options for LUKS devices #102

Closed satheesaran closed 4 years ago

satheesaran commented 4 years ago

This PR fixes 2 issues

  1. Blacklisting with partition devices
  2. fstab mount option for devices created on top of LUKS devices

Blacklisting with partition devices: When the device name is listed as /dev/sdb1 ( for example ), blacklisting was trying to do 'multipath -a /dev/sdb1' Now with regex pattern in the play, even with input device as /dev/sdb1, blacklisting will try 'multipath -a /dev/sdb'

fstab mount option for devices created on top of LUKS devices: When using device name corresponding to LUKS device ( /dev/mapper/luks_sdc ), and enabling VDO on that brick, adds the VDO options for all the bricks, as the earlier logic always considered whatever as '/dev/mapper/' as VDO device. Now LUKS device is also created under '/dev/mapper' and that is considered as VDO device as per that logic. Latest logic includes searching for VDO devices with patter '/dev/mapper/vdo', rather than simple search of '/dev/mapper/