Bug 864611 - When brick directory doesn't exist, volume creation should fail
Summary: When brick directory doesn't exist, volume creation should fail
Keywords:
Status: CLOSED DUPLICATE of bug 948729
Alias: None
Product: GlusterFS
Classification: Community
Component: glusterd
Version: 3.3.0
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Krutika Dhananjay
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-09 18:16 UTC by Shawn Heisey
Modified: 2014-07-11 15:27 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-07-11 15:27:18 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Shawn Heisey 2012-10-09 18:16:00 UTC
Description of problem:
If one or more of the brick directories specified in a "gluster volume" create" command don't exist, the command will create those directories and then proceed to create the volume.  I believe that if any directories are missing, the command should fail.

Steps to Reproduce:
1. Create /bricks/b1 on each server.  Ensure this directory is empty on all servers.
2. Issue a command to create a volume using brick directories that do not exist.
gluster volume create testvol replica 2 transport tcp srv1:/bricks/b1/vol srv2:/bricks/b1/vol
3. Note that the vol directory now exists on all servers and the volume has been 

Expected results:
It should have refused to create the volume, with a helpful error message indicating which directories did not exist.

Comment 1 Amar Tumballi 2012-11-21 09:33:58 UTC
http://review.gluster.org/4214

Comment 2 Krutika Dhananjay 2013-07-25 05:00:14 UTC
http://review.gluster.org/#/c/4740/ fixes this issue and is merged in 3.4 branch in upstream. Hence, moving the state of the bug to MODIFIED.

Comment 3 Niels de Vos 2014-07-11 15:27:18 UTC

*** This bug has been marked as a duplicate of bug 948729 ***


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