<div dir="ltr">It might be worth if you can open a github issue <a href="https://github.com/gluster/glusterd2/issues">https://github.com/gluster/glusterd2/issues</a> with all the details so that this doesn't go out of from our radar.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 14, 2018 at 10:25 PM, Davide Obbi <span dir="ltr"><<a href="mailto:davide.obbi@booking.com" target="_blank">davide.obbi@booking.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>thanks,</div><div><br></div><div>i have been able to remove the old id entry: 5953d666-fccd-48e2-aeb9-<wbr>5308a53ad5a0 succesfully<br></div></div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">On Thu, Jun 14, 2018 at 4:07 PM, Aravinda <span dir="ltr"><<a href="mailto:avishwan@redhat.com" target="_blank">avishwan@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<div class="m_6560111968581302783m_-1605839572184724499moz-cite-prefix">Hi,<br>
<br>
Thanks for the feedback, I will look into the issue.<br>
<br>
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<br>
<br>
curl -i -XDELETE <a class="m_6560111968581302783m_-1605839572184724499moz-txt-link-freetext" href="http://localhost:24007/v1/peers/" target="_blank">http://localhost:24007/v1/peer<wbr>s/</a><peerid><br>
<br>
For example, curl -i -XDELETE
<a class="m_6560111968581302783m_-1605839572184724499moz-txt-link-freetext" href="http://localhost:24007/v1/peers/00590d47-950d-4047-82d5-60f941c51827" target="_blank">http://localhost:24007/v1/peer<wbr>s/00590d47-950d-4047-82d5-60f9<wbr>41c51827</a><br>
<br>
Peer id as shown in `glustercli peer status`<div><div class="m_6560111968581302783h5"><br>
<br>
On 06/13/2018 05:16 AM, Davide Obbi wrote:<br>
</div></div></div>
<blockquote type="cite"><div><div class="m_6560111968581302783h5">
<div dir="ltr">
<div>hi,</div>
<div><br>
</div>
<div>i'm testing some operations with gluster4 and glustercli.</div>
<div>I have re-installed a node with the same host name/IP and
add it back to the cluster.</div>
<div>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.</div>
<div>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:</div>
<div><br>
</div>
<div>Error: Unable to find Peer ID<br>
</div>
<div><br>
</div>
<div>thanks<br>
</div>
<div>Davide<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Usage:<br>
glustercli peer detach <HOSTNAME> [flags]<br>
</div>
<div><br>
</div>
<div>+-----------------------------<wbr>---------+--------------------<wbr>--------------------+---------<wbr>------------+ <wbr> <wbr> <wbr>
<br>
| ID |
NAME | PEERADDRESSES
| <wbr> <wbr>
<br>
+-----------------------------<wbr>---------+--------------------<wbr>--------------------+---------<wbr>------------+ <wbr> <wbr> <wbr>
<br>
| 00590d47-950d-4047-82d5-60f941<wbr>c51827 | glusternode-2405 | <a href="http://10.10.10.1:24008" target="_blank">10.10.10.1:24008</a>
| <wbr> <wbr>
<br>
| 5953d666-fccd-48e2-aeb9-5308a5<wbr>3ad5a0 | glusternode-2401 |
10.10.10.2.15:24008
| <wbr> <wbr>
<br>
| 79ffdcbf-5147-4f7e-b28d-1fa056<wbr>cd3ccc | glusternode-2404 | <a href="http://10.10.10.3:24008" target="_blank">10.10.10.3:24008</a>
| <wbr> <wbr>
<br>
| ba9e411e-9b69-4841-8b36-e1dbb5<wbr>663135 | glusternode-2401 | <a href="http://10.10.10.2:24008" target="_blank">10.10.10.2:24008</a>
| <wbr> <wbr>
<br>
+-----------------------------<wbr>---------+--------------------<wbr>--------------------+---------<wbr>------------+
<br>
</div>
<div><br>
</div>
<div>[root@glusternode-2404 ~]# glustercli peer detach
00590d47-950d-4047-82d5-60f941<wbr>c51827<br>
Peer detach failed<br>
<br>
Error: Unable to find Peer ID<br>
[root@glusternode-2404 ~]# glustercli peer detach
5953d666-fccd-48e2-aeb9-5308a5<wbr>3ad5a0<br>
Peer detach failed<br>
<br>
Error: Unable to find Peer ID<br>
[root@glusternode-2404 ~]# glustercli peer detach
glusternode-2401<br>
Peer detach failed<br>
<br>
Error: Unable to find Peer ID<br>
[root@glusternode-2404 ~]# glustercli peer detach
glusternode-2404<br>
Peer detach failed<br>
<br>
Error: Unable to find Peer ID<br>
<br>
</div>
<div><br>
</div>
<div> <br>
</div>
</div>
<br>
<fieldset class="m_6560111968581302783m_-1605839572184724499mimeAttachmentHeader"></fieldset>
<br>
</div></div><pre>______________________________<wbr>_________________
Gluster-users mailing list
<a class="m_6560111968581302783m_-1605839572184724499moz-txt-link-abbreviated" href="mailto:Gluster-users@gluster.org" target="_blank">Gluster-users@gluster.org</a>
<a class="m_6560111968581302783m_-1605839572184724499moz-txt-link-freetext" href="http://lists.gluster.org/mailman/listinfo/gluster-users" target="_blank">http://lists.gluster.org/mailm<wbr>an/listinfo/gluster-users</a></pre><span class="m_6560111968581302783HOEnZb"><font color="#888888">
</font></span></blockquote><span class="m_6560111968581302783HOEnZb"><font color="#888888">
<br>
<br>
<pre class="m_6560111968581302783m_-1605839572184724499moz-signature" cols="72">--
regards
Aravinda VK</pre>
</font></span></div>
</blockquote></div><br><br clear="all"><br></div></div><span class="HOEnZb"><font color="#888888">-- <br><div class="m_6560111968581302783gmail_signature" data-smartmail="gmail_signature"><span style="display:block;font-size:11.0pt;font-family:Century Gothic;color:#003580"><div style="color:rgb(0,53,128);font-family:Arial,Helvetica,sans-serif;font-weight:bold;font-size:15px"><div>Davide Obbi</div><div style="font-weight:normal;font-size:13px;color:rgb(0,174,239)">System Administrator<br><br></div><div style="font-weight:normal;font-size:13px;color:rgb(102,102,102)">Booking.com B.V.<br>Vijzelstraat 66-80 Amsterdam 1017HL Netherlands</div><div style="font-weight:normal;font-size:13px;color:rgb(102,102,102)"><span style="color:rgb(0,174,239)">Direct </span>+31207031558<br></div><div style="font-weight:normal;font-size:13px;color:rgb(102,102,102)"><div style="font-weight:bold;font-size:16px;color:rgb(0,53,128)"><a href="https://www.booking.com/" style="color:rgb(0,127,255);background-image:initial;background-position:initial;background-repeat:initial" target="_blank"><img src="https://bstatic.com/static/img/siglogo.jpg" alt="Booking.com" title="Booking.com"></a></div><span style="font-size:11px">The world's #1 accommodation site <br>43 languages, 198+ offices worldwide, 120,000+ global destinations, 1,550,000+ room nights booked every day <br>No booking fees, best price always guaranteed <br></span><span style="font-size:11px">Subsidiary of Booking Holdings Inc. (NASDAQ: BKNG)</span><span style="font-size:11px"><br></span></div></div></span></div>
</font></span></div>
<br>______________________________<wbr>_________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
<a href="http://lists.gluster.org/mailman/listinfo/gluster-users" rel="noreferrer" target="_blank">http://lists.gluster.org/<wbr>mailman/listinfo/gluster-users</a><br></blockquote></div><br></div>