Bug 829838

Summary: GlusterFS: Failure to create one brick fails all bricks in the same command
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Daniel Paikov <dpaikov>
Component: glusterdAssignee: Bug Updates Notification Mailing List <rhs-bugs>
Status: CLOSED NOTABUG QA Contact: storage-qa-internal <storage-qa-internal>
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: amukherj, gluster-bugs, rwheeler, yeylon
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: glusterd
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-12-24 08:45:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
glusterfs log none

Description Daniel Paikov 2012-06-07 16:08:22 UTC
Created attachment 590233 [details]
glusterfs log

When trying to create several bricks, failure to create one brick will cause all bricks to fail.

For example:
* Create brick from host:/brick1.
* Create 3 bricks from host:/brick1 host:/brick2 host:/brick3
* brick1 fails to create because it already exists. But also brick2 and brick3 fail to create, even though they should succeed.

Comment 2 Amar Tumballi 2012-06-08 09:54:39 UTC
can you elaborate what you mean by 'creating a brick' ? we can create a volume, not a brick.

Comment 3 Daniel Paikov 2012-06-10 06:22:58 UTC
(In reply to comment #2)
> can you elaborate what you mean by 'creating a brick' ? we can create a
> volume, not a brick.

What I mean is adding more bricks to an existing volume. To make the process fail, I add a combination of existing and non-existing bricks.


This is the command being run through vdsm:
/usr/sbin/gluster --mode=script volume add-brick stripe1 stripe 4 10.35.97.47:/stripe3 10.35.97.47:/stripe4 10.35.97.47:/stripe5 10.35.97.47:/stripe6

Comment 5 Atin Mukherjee 2015-12-24 08:45:24 UTC
This is an expected behaviour. As part of volume creation, if any of the brick creation fails then we fail the complete transaction and doesn't continue with creating partial bricks.