Bug 1257162

Summary: gdeploy: volume force option doesn't work as expected
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Anush Shetty <ashetty>
Component: gdeployAssignee: Nandaja Varma <nvarma>
Status: CLOSED ERRATA QA Contact: Anush Shetty <ashetty>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rhgs-3.1CC: musoni, nvarma, smohan, surs, vagarwal
Target Milestone: ---Keywords: ZStream
Target Release: RHGS 3.1.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: gdeploy-1.0-11 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-10-05 07:24:45 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: 1251815    

Description Anush Shetty 2015-08-26 11:57:24 UTC
Description of problem: The force option under Volume in gdeploy config file doesn't fail volume creation fail when the bricks are created over root partition or when the brick sizes are uneven.

Version-Release number of selected component (if applicable): gdeploy-1.0-6.el7rhgs.noarch.rpm


How reproducible: Always


Steps to Reproduce:
1. Install deploy: https://brewweb.devel.redhat.com/buildinfo?buildID=453652
2. Create config file enabling volume creation with "force=no" and bricks of unequal sizes. 
3. Run gdeploy

Actual results:

Volume creation succeeds

Expected results:

1) The force option under Volume in gdeploy config file is expected work like the force option in gluster cli. It is expected to issue a warning and exit.

2) The default value for force should a "no"

Additional info:

Comment 2 Nandaja Varma 2015-08-26 12:57:02 UTC
Fix has been merged in the upstream branch 1.0. Will be available with next build.

Comment 3 Anush Shetty 2015-09-09 12:05:33 UTC
Even when [mountpoints] and [brick_dirs] values are given, with force=no, I get the following error:

# gdeploy -k -c gluster.conf

Error: Mountpoints cannot be brick directories.
 Provide 'brick_dirs' option/section or use force=yes in your configuration file. Exiting!

Comment 5 Anush Shetty 2015-09-14 12:17:43 UTC
Verified with gdeploy-1.0-11.el6rhs.noarch

Comment 7 errata-xmlrpc 2015-10-05 07:24:45 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://rhn.redhat.com/errata/RHSA-2015-1845.html