Bug 1369357

Summary: While replacing the brick, the destination brick chosen from host should be the sub-directory under the mount
Product: [oVirt] ovirt-engine Reporter: SATHEESARAN <sasundar>
Component: Frontend.WebAdminAssignee: Ramesh N <rnachimu>
Status: CLOSED CURRENTRELEASE QA Contact: SATHEESARAN <sasundar>
Severity: high Docs Contact:
Priority: high    
Version: 4.0.2.7CC: bugs, rnachimu, sabose
Target Milestone: ovirt-4.0.4Flags: sabose: ovirt-4.0.z?
sasundar: planning_ack?
sabose: devel_ack+
sasundar: testing_ack+
Target Release: 4.0.4   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: While replacing gluster brick, brick mount point was used as brick directory. Consequence: Using brick mount point as a brick directory is not advisable because for some reason if the brick fails to mount then we will end up writing in the root file system. Fix: Use a sub-directory under the brick mount point as brick directory during replace brick.
Story Points: ---
Clone Of: Environment:
RHEV-RHGS hyperconvergence
Last Closed: 2016-09-26 12:35:27 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Gluster RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
screenshot showing replace brick window none

Description SATHEESARAN 2016-08-23 08:10:13 UTC
Description of problem:
-----------------------
While replacing the brick, the destination brick is chosen by selecting "Show available brick from host". After the replacing the brick, the destination brick is directly created on XFS mount

Version-Release number of selected component (if applicable):
--------------------------------------------------------------
RHV 4.0.2-7

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

Steps to Reproduce:
--------------------
1. Create a gluster replica 3 volume
2. Start the volume
3. Replace one of the brick with the brick available on that host, by choosing "Show available brick from the host"

Actual results:
---------------
The source brick is replaced with destination brick directly on the XFS mount of the brick
host1:/rhgs/brick1/brick1 is replaced with host1:/rhgs/brick2

Expected results:
------------------
The source brick should be replaced with the destination brick, with sub-directory under the XFS mount

Comment 1 Red Hat Bugzilla Rules Engine 2016-08-23 08:12:10 UTC
Bug tickets must have version flags set prior to targeting them to a release. Please ask maintainer to set the correct version flags and only then set the target milestone.

Comment 2 SATHEESARAN 2016-08-23 08:13:55 UTC
Created attachment 1193243 [details]
screenshot showing replace brick window

Comment 3 SATHEESARAN 2016-09-16 16:20:40 UTC
Tested with RHV 4.0.4-3, while replacing the brick with the available bricks from the dropdown, the brick path is created within the XFS mount of the brick.