Bug 1635939 - [ansible e2e] fstab entry for a XFS bricks created on VDO volume, should have additional mount option
Summary: [ansible e2e] fstab entry for a XFS bricks created on VDO volume, should have...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: rhhi
Version: rhhiv-1.5
Hardware: x86_64
OS: Linux
high
high
Target Milestone: ---
: RHHI-V 1.5
Assignee: Sahina Bose
QA Contact: SATHEESARAN
URL:
Whiteboard:
Depends On: 1635938
Blocks: 1520836
TreeView+ depends on / blocked
 
Reported: 2018-10-04 02:28 UTC by SATHEESARAN
Modified: 2019-05-20 04:55 UTC (History)
5 users (show)

Fixed In Version: gluster-ansible-roles-1.0.3
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1635938
Environment:
Last Closed: 2019-05-20 04:55:36 UTC
Embargoed:


Attachments (Terms of Use)

Description SATHEESARAN 2018-10-04 02:28:33 UTC
Description of problem:
-----------------------
Kernel Filesystem service is started ahead of VDO service. To enable VDO service to start ahead, there is a special mount option - 'x-systemd.requires=vdo.service' - that needs to be added to the XFS fstab entry.

Example:
/dev/gluster_vg_sdc/gluster_lv_engine /gluster_bricks/engine xfs inode64,noatime,nodiratime,x-systemd.requires=vdo.service 0 0

But the gluster-ansible role is not adding this special mount option to fstab entry, if VDO is enabled

Version-Release number of selected component (if applicable):
-------------------------------------------------------------
gluster-ansible-role-1.0

How reproducible:
-----------------
Always

Steps to Reproduce:
-------------------
1. Create a playbook that enabled VDO volumes & creates bricks up on that.
2. Observe the /etc/fstab

Actual results:
---------------
fstab entry doesn't have the special mount option - 'x-systemd.requires=vdo.service', and this leads to reboot of hosts going to maintenance shell as the filesystems are not available

Expected results:
-----------------
If XFS bricks are created on the VDO volume, fstab entry should have additional mount option - 'x-systemd.requires=vdo.service'

Comment 1 Sachidananda Urs 2018-10-04 08:24:41 UTC
Patch: https://github.com/gluster/gluster-ansible-infra/commit/db8fc7 should fix the issue.

Comment 5 SATHEESARAN 2018-10-12 13:14:41 UTC
The dependent gluster-ansible bug is already in MODIFIED state, changing the state of this bug accordingly

Comment 6 SATHEESARAN 2018-10-16 02:44:35 UTC
The dependent bug is already in ON_QA state, changing the state of this bug too

Comment 7 SATHEESARAN 2018-10-16 02:44:55 UTC
Tested with gluster-ansible-role-1.0.3

When XFS filesystem created over VDO volume, fstab entry is added with the required options

/dev/gluster_vg_sdc/gluster_lv_data /gluster_bricks/data xfs inode64,noatime,nodiratime,x-systemd.requires=vdo.service 0 0
/dev/gluster_vg_sdc/gluster_lv_vmstore /gluster_bricks/vmstore xfs inode64,noatime,nodiratime,x-systemd.requires=vdo.service 0 0
/dev/gluster_vg_sdc/gluster_lv_engine /gluster_bricks/engine xfs inode64,noatime,nodiratime,x-systemd.requires=vdo.service 0 0


Note You need to log in before you can comment on or make changes to this bug.