Bug 916101 - [RHSC] - Force Removal of the server is not happening.
Summary: [RHSC] - Force Removal of the server is not happening.
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: rhsc
Version: 2.1
Hardware: All
OS: All
high
medium
Target Milestone: ---
: ---
Assignee: Sahina Bose
QA Contact: RamaKasturi
URL:
Whiteboard:
Depends On:
Blocks: 973888
TreeView+ depends on / blocked
 
Reported: 2013-02-27 09:58 UTC by RamaKasturi
Modified: 2013-07-11 12:01 UTC (History)
7 users (show)

Fixed In Version: bb4
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-07-11 12:01:09 UTC
Embargoed:


Attachments (Terms of Use)
Adding vdsm,glusterfs logs of both the nodes and engine.log (12.31 MB, text/x-log)
2013-02-27 09:58 UTC, RamaKasturi
no flags Details
Build bb3 (1.82 MB, application/x-gzip)
2013-06-18 19:49 UTC, Matt Mahoney
no flags Details

Description RamaKasturi 2013-02-27 09:58:19 UTC
Created attachment 703346 [details]
Adding vdsm,glusterfs logs of both the nodes and engine.log

Description of problem: When doing a force removal of the server it is not detaching the server.


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


How reproducible:


Steps to Reproduce:
1. Create a new cluster.
2. Add two hosts into the cluster.
3. Create a volume on one of the hosts in the cluster and start it.
4. Now put the host in maintenance mode.
5. Do a force removal of the host.
  
Actual results: The hosts gets removed from GUI but the volume is still present and host is not getting the detached from the CLI, i.e when you do a peer status it still shows the other peer and the volume info as well.


Expected results: The hosts and the volumes created should be removed and the server should get detached from both CLI and GUI. i.e. both the UI and CLI should be sycned.


Additional info:

Comment 2 Shireesh 2013-05-13 11:04:15 UTC
This should happen only if there was no other UP server in the cluster when you tried to force remove this one. Can you please confirm that?

The logic is like this:

- When "force" checkbox is not selected
   Will perform "gluster peer detach" from one of the UP servers
   Will fail if there is no UP server in the cluster

- When "Force" checkbox is selected
   Will perform "gluster peer detach force" from one of the UP servers
   Will simply remove the server from DB if there is no UP server

Comment 3 Matt Mahoney 2013-06-18 19:49:38 UTC
Created attachment 762622 [details]
Build bb3

Comment 4 Matt Mahoney 2013-06-18 19:51:34 UTC
This bug continues to be an issue in build bb3 - see attached log files.

Comment 5 Sahina Bose 2013-06-26 10:40:06 UTC
If there's an UP server in cluster, force remove of server will detach server from cluster. However, if server has associated bricks, force remove is not permitted on server. (unless all servers in cluster are in Maintenance mode)

Comment 7 Sahina Bose 2013-07-11 12:01:09 UTC
As per discussion, the Console behaves as expected. Documentation to be updated to detail the workflow to be performed when removing server from CLI for it to be in sync with the Console

Adding to tracker doc bug 973888


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