Bug 1028282 - Create Volume: No systems root partition error when script mode
Summary: Create Volume: No systems root partition error when script mode
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: glusterfs
Version: unspecified
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: RHGS 2.1.2
Assignee: Krutika Dhananjay
QA Contact: SATHEESARAN
URL:
Whiteboard:
Depends On: 1028281
Blocks: 1008942
TreeView+ depends on / blocked
 
Reported: 2013-11-08 05:40 UTC by Aravinda VK
Modified: 2015-05-13 16:31 UTC (History)
13 users (show)

Fixed In Version: glusterfs-3.4.0.47.1u2rhs
Doc Type: Bug Fix
Doc Text:
Previously by design, creation of bricks on root partition was made to succeed in script mode, during volume creation. With this update, this operation is not allowed and volume creation fails with an error message when bricks are being created in root partition, even in script mode.
Clone Of: 1028281
Environment:
Last Closed: 2014-02-25 08:01:55 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2014:0208 0 normal SHIPPED_LIVE Red Hat Storage 2.1 enhancement and bug fix update #2 2014-02-25 12:20:30 UTC

Description Aravinda VK 2013-11-08 05:40:38 UTC
+++ This bug was initially created as a clone of Bug #1028281 +++

Description of problem:
When we try to create volume with bricks in root partition, gluster cli will give following error. But it creates volume successfully in script mode.

gluster volume create gv1 sumne.sumne:/gfs/gv1_b1 sumne.sumne:/gfs/gv1_b2

volume create: gv1: failed: The brick sumne.sumne:/gfs/gv1_b1 is is being created in the root partition. It is recommended that you don't use the system's root partition for storage backend. Or use 'force' at the end of the command if you want to override this behavior.


How reproducible:
100%

Steps to Reproduce:
1. Create volume with bricks dir in root partition
gluster volume create gv1 sumne.sumne:/gfs/gv1_b1 sumne.sumne:/gfs/gv1_b2
It will fail with above mentioned error
2. Create volume with script mode
gluster volume create gv1 sumne.sumne:/gfs/gv1_b1 sumne.sumne:/gfs/gv1_b2 --mode=script
Creates volume successfully.

Actual results:
Creates volume successfully without any error.

Expected results:
Script mode should fail if brick dirs are system's root partition.

Comment 2 Amar Tumballi 2013-11-26 06:50:16 UTC
The idea here was 'force' is inbuilt into the command in script mode. Isn't that expected?

Comment 3 Aravinda VK 2013-11-26 07:09:07 UTC
script mode bypasses all warnings and Yes/No kind of prompts. For example "Y" in volume stop.

But in this case CLI is throwing error and script mode is succeeding, Problem with this is from UI(ovirt) we can't prevent users from creating bricks in system's root partition.

Comment 5 SATHEESARAN 2013-12-19 15:14:47 UTC
Verified with glusterfs-3.4.0.51rhs.el6rhs with the following steps:

case-1 - without --mode=script
==============================
[root@rhss1 ~]# gluster volume create test 10.70.37.86:/rhs/brick3
volume create: test: failed: The brick 10.70.37.86:/rhs/brick3 is a mount point. Please create a sub-directory under the mount point and use that as the brick directory. Or use 'force' at the end of the command if you want to override this behavior.


case-2 - with --mode=script
===========================
[root@rhss1 ~]# gluster volume create test 10.70.37.86:/rhs/brick3 --mode=script
volume create: test: failed: The brick 10.70.37.86:/rhs/brick3 is a mount point. Please create a sub-directory under the mount point and use that as the brick directory. Or use 'force' at the end of the command if you want to override this behavior.

Comment 6 Pavithra 2014-01-07 07:03:30 UTC
Can you please review the doc text for technical accuracy?

Comment 7 Krutika Dhananjay 2014-01-07 07:16:51 UTC
LGTM.

Comment 9 errata-xmlrpc 2014-02-25 08:01:55 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.

http://rhn.redhat.com/errata/RHEA-2014-0208.html


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