Bug 1257162 - gdeploy: volume force option doesn't work as expected
Summary: gdeploy: volume force option doesn't work as expected
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: gdeploy
Version: rhgs-3.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: RHGS 3.1.1
Assignee: Nandaja Varma
QA Contact: Anush Shetty
URL:
Whiteboard:
Depends On:
Blocks: 1251815
TreeView+ depends on / blocked
 
Reported: 2015-08-26 11:57 UTC by Anush Shetty
Modified: 2019-11-15 07:06 UTC (History)
5 users (show)

Fixed In Version: gdeploy-1.0-11
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-10-05 07:24:45 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:1845 0 normal SHIPPED_LIVE Moderate: Red Hat Gluster Storage 3.1 update 2015-10-05 11:06:22 UTC

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


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