Bug 957917 - gluster create volume doesn't cleanup after its self if the create fails.
Summary: gluster create volume doesn't cleanup after its self if the create fails.
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: GlusterFS
Classification: Community
Component: core
Version: pre-release
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: ---
Assignee: bugs@gluster.org
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 1056551
TreeView+ depends on / blocked
 
Reported: 2013-04-29 22:27 UTC by Mark
Modified: 2015-08-08 13:49 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1056551 (view as bug list)
Environment:
Last Closed: 2015-08-08 13:49:17 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Mark 2013-04-29 22:27:39 UTC
Description of problem:

During a volume create bricks are marked as being part of a volume. If the create fails for some reason,  this is not cleaned up and the bricks are still marked as being used. the volume may not be deleted by a volume delete command and the volume create command can't use those bricks until they are cleaned up. 



Version-Release number of selected component (if applicable):
glusterfs-server-3.4.0-0.3.alpha3.el6.x86_64
glusterfs-fuse-3.4.0-0.3.alpha3.el6.x86_64
glusterfs-3.4.0-0.3.alpha3.el6.x86_



How reproducible:
every time

Steps to Reproduce:
1. create a situation where a volume create will fail on one of the nodes, but succeed on the others. 
2. run a create volume command on all nodes (including the one that will fail, e.g. for iptable rule)
3. try a volume delete or a volume create using the same bricks. 

  
Actual results:


Expected results:
a failed volume create should clean up after it's self, without the user having to use the steps at http://joejulian.name/blog/glusterfs-path-or-a-prefix-of-it-is-already-part-of-a-volume/ to clean up. 

Additional info:

Comment 1 Richard 2013-09-24 07:44:35 UTC
I'd be interested in seeing this feature added to Gluster.

Comment 2 Atin Mukherjee 2015-08-08 13:49:17 UTC
I don't think we will be working on this bug in near future. We do have a workaround of using 'force' option as part of volume create. Considering that I don't think its a high priority bug and can be closed. Feel free to reopen with proper justification.


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