Bug 1494062

Summary: Setting up lvmcache using gdeploy fails
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: SATHEESARAN <sasundar>
Component: gdeployAssignee: Sachidananda Urs <surs>
Status: CLOSED ERRATA QA Contact: SATHEESARAN <sasundar>
Severity: high Docs Contact:
Priority: unspecified    
Version: rhgs-3.3CC: amukherj, knarra, rcyriac, rhs-bugs, sabose, smohan, storage-qa-internal, surs
Target Milestone: ---Keywords: ZStream
Target Release: RHGS 3.3.1   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: gdeploy-2.0.2-16 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1494041 Environment:
Last Closed: 2017-11-29 03:27:19 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1475688, 1494041    

Description SATHEESARAN 2017-09-21 12:21:16 UTC
+++ This bug was initially created as a clone of Bug #1494041 +++

Description of problem:
------------------------
Setting up lvmcache using gdeploy fails.

Note:
This happens consistently with RHEL 7.4 platform, and works well with RHEL 7.3

Version-Release number of selected component (if applicable):
-------------------------------------------------------------
RHEL 7.4
gdeploy-2.0.2-15

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

Steps to Reproduce:
-------------------
1. setup lvmcache using the following configuration

[lv]
action=setup-cache
ssd=sdc
vgname=vg
poolname=thinpool
cache_lv=lvcache
cache_lvsize=10GB
cachemode=writethrough

Actual results:
---------------
gdeploy throws error while changing attributes of the logical volume

Expected results:
------------------
gdeploy should setup lvmcache successfully

--- Additional comment from Red Hat Bugzilla Rules Engine on 2017-09-21 07:39:59 EDT ---

This bug is automatically being proposed for the release of Red Hat Gluster Storage 3 under active development and open for bug fixes, by setting the release flag 'rhgs‑3.4.0' to '?'. 

If this bug should be proposed for a different release, please manually change the proposed release flag.

--- Additional comment from Red Hat Bugzilla Rules Engine on 2017-09-21 07:49:30 EDT ---

This bug is automatically being proposed for the release of Red Hat Gluster Storage 3 under active development and open for bug fixes, by setting the release flag 'rhgs‑3.4.0' to '?'. 

If this bug should be proposed for a different release, please manually change the proposed release flag.

Comment 1 SATHEESARAN 2017-09-21 12:22:43 UTC
This bug is actually cloned from the RHHI 1.1 bug which directly corresponds to the failure of gdeploy in creating lvmcache backed LVs

Comment 2 Sachidananda Urs 2017-09-22 07:27:25 UTC
Commit: https://github.com/gluster/gdeploy/commit/be2c9ddbecb47c fixes the issue.

Comment 3 SATHEESARAN 2017-09-22 15:58:30 UTC
Verified with gdeploy-2.0.2-16.el7rhgs and this issue is not seen.

The configuration file used is:
[lv]
action=setup-cache
ssd=vde
vgname=vg
poolname=thinpool
cache_lv=lvcache
cache_lvsize=5GB
cachemode=writeback

This setup the lvmcache as required.

Note:
Not marking this bug as **VERIFIED** as the gdeploy errata is not yet available.
Once the gdeploy errata is available with this specified build, I will move this bug to VERIFIED state.

Comment 4 SATHEESARAN 2017-09-28 07:54:17 UTC
The build - gdeploy-2.0.2-16.el7rhgs is available with the errata and with comment3 marking this bug as VERIFIED

Comment 7 errata-xmlrpc 2017-11-29 03:27:19 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:3274