Bug 916101

Summary: [RHSC] - Force Removal of the server is not happening.
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: RamaKasturi <knarra>
Component: rhscAssignee: Sahina Bose <sabose>
Status: CLOSED NOTABUG QA Contact: RamaKasturi <knarra>
Severity: medium Docs Contact:
Priority: high    
Version: 2.1CC: dtsang, mmahoney, pprakash, rhs-bugs, shaines, shtripat, ssampat
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: bb4 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-11 12:01:09 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:
Bug Depends On:    
Bug Blocks: 973888    
Attachments:
Description Flags
Adding vdsm,glusterfs logs of both the nodes and engine.log
none
Build bb3 none

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