Re: peer detach doesn't seem working in glustercli

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Thanks for the feedback, I will look into the issue.

Gluster 4.1 version, glustercli allows to detach peer using peer id as well. As a workaround can you try using REST API as below

curl -i -XDELETE http://localhost:24007/v1/peers/<peerid>

For example, curl -i -XDELETE http://localhost:24007/v1/peers/00590d47-950d-4047-82d5-60f941c51827

Peer id as shown in `glustercli peer status`

On 06/13/2018 05:16 AM, Davide Obbi wrote:
hi,

i'm testing some operations with gluster4 and glustercli.
I have re-installed a node with the same host name/IP and add it back to the cluster.
This resulted in a double entry, this could be expected but then i am not able to remove the old one nor the new nor any other node.
So at this point i am not sure i run peer detach correctly or something is not working as expected or everything broke by re-adding the same node again since i get always:

Error: Unable to find Peer ID

thanks
Davide


Usage:
  glustercli peer detach <HOSTNAME> [flags]

+--------------------------------------+----------------------------------------+---------------------+                                                                                     
|                  ID                  |                  NAME                  |    PEERADDRESSES    |                                                                                     
+--------------------------------------+----------------------------------------+---------------------+                                                                                     
| 00590d47-950d-4047-82d5-60f941c51827 | glusternode-2405 | 10.10.10.1:24008 |                                                                                     
| 5953d666-fccd-48e2-aeb9-5308a53ad5a0 | glusternode-2401 | 10.10.10.2.15:24008 |                                                                                     
| 79ffdcbf-5147-4f7e-b28d-1fa056cd3ccc | glusternode-2404 | 10.10.10.3:24008 |                                                                                     
| ba9e411e-9b69-4841-8b36-e1dbb5663135 | glusternode-2401 | 10.10.10.2:24008 |                                                                                     
+--------------------------------------+----------------------------------------+---------------------+  

[root@glusternode-2404 ~]# glustercli peer detach 00590d47-950d-4047-82d5-60f941c51827
Peer detach failed

Error: Unable to find Peer ID
[root@glusternode-2404 ~]# glustercli peer detach 5953d666-fccd-48e2-aeb9-5308a53ad5a0
Peer detach failed

Error: Unable to find Peer ID
[root@glusternode-2404 ~]# glustercli peer detach glusternode-2401
Peer detach failed

Error: Unable to find Peer ID
[root@glusternode-2404 ~]# glustercli peer detach glusternode-2404
Peer detach failed

Error: Unable to find Peer ID


 


_______________________________________________
Gluster-users mailing list
Gluster-users@xxxxxxxxxxx
http://lists.gluster.org/mailman/listinfo/gluster-users


-- 
regards
Aravinda VK
_______________________________________________
Gluster-users mailing list
Gluster-users@xxxxxxxxxxx
http://lists.gluster.org/mailman/listinfo/gluster-users

[Index of Archives]     [Gluster Development]     [Linux Filesytems Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux