Bug 1051696 - Unable to create a volume with bricks in the root partition for 3.2 clusters made up of 3.1u2 nodes
Summary: Unable to create a volume with bricks in the root partition for 3.2 clusters ...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: rhsc
Version: 2.1
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: Kanagaraj
QA Contact: Dustin Tsang
URL:
Whiteboard:
Depends On:
Blocks: 1035040 1078200
TreeView+ depends on / blocked
 
Reported: 2014-01-10 22:26 UTC by Dustin Tsang
Modified: 2016-04-18 10:06 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Known Issue
Doc Text:
When a cluster with compatibility version 3.2 contains Red Hat Storage 2.1 U2 nodes, creating Volume with bricks in root partition fails and the force option to allow bricks in root partition is not displayed. Workaround: Do not allow bricks in root partition or move the Cluster Compatibility Version to 3.3.
Clone Of:
: 1078200 (view as bug list)
Environment:
Last Closed: 2015-02-17 10:03:02 UTC
Embargoed:


Attachments (Terms of Use)

Description Dustin Tsang 2014-01-10 22:26:41 UTC
Description of problem:

On a 3.2 cluster with 2.1u2 nodes added, an error message is given when a user tries to create a volume with bricks in the root partition. The error message implies that there is a force option which isn't present; from the gui there is no way to create a volume with bricks in the root partition in a 3.2 cluster made up of 2.1u2 nodes.

This is also inconsistent behavior when compared to 3.2 clusters made up of 2.1 and 3.2 clusters made up of 2.1u1 nodes. In these type of clusters, the cluster creates volumes successfully even when bricks are in the root partition.

Version-Release number of selected component (if applicable):
rhsc-cb14

How reproducible:
100%


Steps to Reproduce:
1. create a 3.2 cluster
2. add 2 2.1u2 nodes to the cluster
3. create a volume using bricks in the root partition
for example /tmp/brick1

Actual results:

error message is prompted to user 
"Error while executing action Create Gluster Volume: Volume create failed
error: The brick vm10_lab_eng_blr_redhat_com:/home/test 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_
return code: 115"
user is unable to create a volume with bricks in the root partition


Expected results:

rhsc should allow creation of bricks in the root partition without prompting to be consistent with 3.2 clusters of 2.1 nodes and 3.2 clusters of 2.1u1 nodes.


Additional info:

Comment 2 Kanagaraj 2014-01-12 14:41:17 UTC
VDSM in RHS-2.1-U2(Corbett) has 3.3 Compatibility Version and  VDSM in RHS-2.1(Bigbend and U1) has 3.2 Compatibility Version.

RHS-2.1 and U1 nodes doesn't support 'force' option in 'volume create' and 'add-bricks' commands, also allow bricks in root partition.  

If someone is trying to add a node to a 3.2 Cluster, engine identifies that node as 3.2 compatible and allow the operations which are supported for 3.2 cluster.

'Force' option is a 3.3 cluster operation, which can not be performed on a 3.2 cluster. This is the reason why 'force' option is not shown in the UI.

Even though user is adding a node which has higher compatibility version(ex: 3.3) than the cluster(ex:3.2) which it belongs to, only the operations supported for the compatibility version(3.2) of the cluster is allowed .

Comment 3 Dustin Tsang 2014-01-13 14:09:48 UTC
Hi Kanagaraj,
I agree with you that the force option should not be available in 3.2 clusters. However, the behavior seen is different depending on what nodes you use in the 3.2 cluster.

For example following the steps below using different nodes yields diff results....

1. create a 3.2 cluster
2. add 2 nodes to the cluster
3. create a volume using bricks in the root partition
for example /tmp/brick1

with 2.1u1 and 2.1:
volume is created successfully


with 2.1u2 nodes:
"Error while executing action Create Gluster Volume: Volume create failed
error: The brick vm10_lab_eng_blr_redhat_com:/home/test 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_
return code: 115"

Comment 4 Dusmant 2014-01-15 07:02:23 UTC
The cluster version and node version compatibility and how it would behave has to be documented in the Admin guide.

Comment 5 Shalaka 2014-01-30 11:10:02 UTC
Please review the edited Doc Text and sign off.

Comment 6 Kanagaraj 2014-01-31 04:39:42 UTC
small change in the workaround "Do not create", rest looks good

Comment 7 Sahina Bose 2015-02-17 10:03:02 UTC
Bricks in root partition is not recommended, and work-around exists if needed.


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