Bug 847411 - Gluster volume delete leaves behind xattrs that cause errors if attempted to create a new volume.
Summary: Gluster volume delete leaves behind xattrs that cause errors if attempted to ...
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: rhsc
Version: 2.0
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Shireesh
QA Contact: Sudhir D
URL:
Whiteboard:
Depends On:
Blocks: 847778
TreeView+ depends on / blocked
 
Reported: 2012-08-10 23:23 UTC by Ben Turner
Modified: 2015-05-13 16:46 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
: 847778 (view as bug list)
Environment:
Last Closed: 2012-11-16 09:04:30 UTC
Embargoed:


Attachments (Terms of Use)

Description Ben Turner 2012-08-10 23:23:16 UTC
Description of problem:  When gluster volume delete is run and removes the volume it leaves behind xattrs that cause a gluster volume create in the device from RHSC as well as command line to fail.

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

glusterfs-server-3.3.0rhs-25.el6rhs.x86_64

How reproducible:

Every time.

Steps to Reproduce:
1.  Run gluster volume delete on a volume
2.  Try to create a new volume using the brick from a deleted volume
3.
  
Actual results:

***From the command line***
Create: 
[root@hp-dl380g7-1 distributed-volume-setup]# gluster volume create distributed-volume hp-dl380g7-1.gsslab.rdu.redhat.com:/brick1 hp-dl380g7-2.gsslab.rdu.redhat.com:/brick1 
Creation of volume distributed-volume has been successful. Please start the volume to access data.

Delete: 
[root@hp-dl380g7-1 distributed-volume-setup]# gluster volume delete distributed-volume 
Deleting volume will erase all information about the volume. Do you want to continue? (y/n) y Deleting volume distributed-volume has been successful

And create again: 
[root@hp-dl380g7-1 distributed-volume-setup]# gluster volume create distributed-volume hp-dl380g7-1.gsslab.rdu.redhat.com:/brick1 hp-dl380g7-2.gsslab.rdu.redhat.com:/brick1 
/brick1 or a prefix of it is already part of a volume

***From RHSC***

snip--------- 
Error while executing action Create Gluster Volume: Volume create failed
error: /opt/gluster/bricks/brick1 or a prefix of it is already part of a volume
return code: 255 
snip---------

Expected results:

The xattrs are properly cleared so that a volume create can be executed without manually clearing them.

Additional info:

This is a problem especial because of RHSC.  I feel that the GUI manager should be able to accomplish this task without using the command line.  I would also like to see the command line to be able to clear them as well.

Comment 1 Ben Turner 2012-08-13 02:06:37 UTC
Changing the component of this bug to RHSC.  I will open a separate RFE for the command line.

Comment 2 Shireesh 2012-09-25 15:14:21 UTC
RHS-C will allow user to optionally clear the xattrs when deleting a volume or removing a brick, after a cli option is available in gluster cli to do the same.


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