Bug 988393

Summary: unable to peer detach; peer is localhost
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Dustin Tsang <dtsang>
Component: glusterfsAssignee: Amar Tumballi <amarts>
Status: CLOSED NOTABUG QA Contact: Sudhir D <sdharane>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.1CC: dtsang, knarra, mmahoney, mmccune, pprakash, rhs-bugs, ssampat, vbellur, vraman
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-25 14:16:06 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
sosreport
none
glusterd log
none
cli log none

Description Dustin Tsang 2013-07-25 13:44:11 UTC
Created attachment 778263 [details]
sosreport

Description of problem:
after running "gluster --mode=script peer detach xxxx",  stderr is  "xxxx is localhost"

command was run from xxxx's peer; 'gluster peer status' shows xxxx.


output below
-------------
```
[root@dhcp129-5 glusterfs]# gluster --mode=script peer detach 10.70.37.125

10.70.37.125 is localhost


[2013-07-25 05:51:54.243667] W [rpc-transport.c:174:rpc_transport_load] 0-rpc-transport: missing 'option transport-type'. defaulting to "socket"

==> etc-glusterfs-glusterd.vol.log <==
[2013-07-25 05:51:54.315208] I [glusterd-handler.c:774:glusterd_handle_cli_deprobe] 0-glusterd: Received CLI deprobe req
[2013-07-25 05:51:54.315360] I [glusterd-handler.c:2508:glusterd_xfer_cli_deprobe_resp] 0-glusterd: Responded to CLI, ret: 0


==> cli.log <==
[2013-07-25 05:51:54.315558] I [cli-rpc-ops.c:218:gf_cli3_1_deprobe_cbk] 0-cli: Received resp to deprobe
[2013-07-25 05:51:54.315593] E [cli-rpc-ops.c:254:gf_cli3_1_deprobe_cbk] 0-glusterd: Detach failed with op_ret -1 and op_errno 1
[2013-07-25 05:51:54.315751] I [input.c:46:cli_batch] 0-: Exiting with: -1
```




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

U5 anshi node
gluster-swift.noarch                                                                1.4.8-5.el6rhs                                                           @anaconda-InstallationRepo-201307080525.x86_64/2.0
gluster-swift-account.noarch                                                        1.4.8-5.el6rhs                                                           @anaconda-InstallationRepo-201307080525.x86_64/2.0
gluster-swift-container.noarch                                                      1.4.8-5.el6rhs                                                           @anaconda-InstallationRepo-201307080525.x86_64/2.0
gluster-swift-doc.noarch                                                            1.4.8-5.el6rhs                                                           @anaconda-InstallationRepo-201307080525.x86_64/2.0
gluster-swift-object.noarch                                                         1.4.8-5.el6rhs                                                           @anaconda-InstallationRepo-201307080525.x86_64/2.0
gluster-swift-plugin.noarch                                                         1.0-5                                                                    @anaconda-InstallationRepo-201307080525.x86_64/2.0
gluster-swift-proxy.noarch                                                          1.4.8-5.el6rhs                                                           @anaconda-InstallationRepo-201307080525.x86_64/2.0
glusterfs.x86_64                                                                    3.3.0.11rhs-1.el6rhs                                                     @anaconda-InstallationRepo-201307080525.x86_64/2.0
glusterfs-fuse.x86_64                                                               3.3.0.11rhs-1.el6rhs                                                     @anaconda-InstallationRepo-201307080525.x86_64/2.0
glusterfs-geo-replication.x86_64                                                    3.3.0.11rhs-1.el6rhs                                                     @anaconda-InstallationRepo-201307080525.x86_64/2.0
glusterfs-rdma.x86_64                                                               3.3.0.11rhs-1.el6rhs                                                     @anaconda-InstallationRepo-201307080525.x86_64/2.0
glusterfs-server.x86_64                                                             3.3.0.11rhs-1.el6rhs                                                     @anaconda-InstallationRepo-201307080525.x86_64/2.0

 
How reproducible:

not sure yet. will update ticket.


Steps to Reproduce:
1. add nodes from RHSC to the same cluster
2. from gluster cli from one of the nodes, perform gluster peer detach xxxx, where xxxx is the ip of the other node in the cluster

Actual results:
xxxx is localhost

Expected results:
peer detach successful.

Additional info:

Comment 1 Dustin Tsang 2013-07-25 13:45:23 UTC
Created attachment 778265 [details]
glusterd log

Comment 2 Dustin Tsang 2013-07-25 13:45:47 UTC
Created attachment 778266 [details]
cli log