<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-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="moz-txt-link-freetext" href="http://localhost:24007/v1/peers/">http://localhost:24007/v1/peers/</a>&lt;peerid&gt;<br>
      <br>
      For example, curl -i -XDELETE
      <a class="moz-txt-link-freetext" href="http://localhost:24007/v1/peers/00590d47-950d-4047-82d5-60f941c51827">http://localhost:24007/v1/peers/00590d47-950d-4047-82d5-60f941c51827</a><br>
      <br>
      Peer id as shown in `glustercli peer status`<br>
      <br>
      On 06/13/2018 05:16 AM, Davide Obbi wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAH2S_oTVi+rDvYxYCC7kdrrFx4-JTAmfQGXirZ1cG7S7v1E29w@mail.gmail.com">
      <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 &lt;HOSTNAME&gt; [flags]<br>
        </div>
        <div><br>
        </div>
        <div>+--------------------------------------+----------------------------------------+---------------------+                                                                                     
          <br>
          |                  ID                  |                 
          NAME                  |    PEERADDRESSES   
|                                                                                     
          <br>
+--------------------------------------+----------------------------------------+---------------------+                                                                                     
          <br>
          | 00590d47-950d-4047-82d5-60f941c51827 | glusternode-2405 | <a
            href="http://10.10.10.1:24008" moz-do-not-send="true">10.10.10.1:24008</a>
|                                                                                     
          <br>
          | 5953d666-fccd-48e2-aeb9-5308a53ad5a0 | glusternode-2401 |
          10.10.10.2.15:24008
|                                                                                     
          <br>
          | 79ffdcbf-5147-4f7e-b28d-1fa056cd3ccc | glusternode-2404 | <a
            href="http://10.10.10.3:24008" moz-do-not-send="true">10.10.10.3:24008</a>
|                                                                                     
          <br>
          | ba9e411e-9b69-4841-8b36-e1dbb5663135 | glusternode-2401 | <a
            href="http://10.10.10.2:24008" moz-do-not-send="true">10.10.10.2:24008</a>
|                                                                                     
          <br>
+--------------------------------------+----------------------------------------+---------------------+  
          <br>
        </div>
        <div><br>
        </div>
        <div>[root@glusternode-2404 ~]# glustercli peer detach
          00590d47-950d-4047-82d5-60f941c51827<br>
          Peer detach failed<br>
          <br>
          Error: Unable to find Peer ID<br>
          [root@glusternode-2404 ~]# glustercli peer detach
          5953d666-fccd-48e2-aeb9-5308a53ad5a0<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="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Gluster-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a>
<a class="moz-txt-link-freetext" href="http://lists.gluster.org/mailman/listinfo/gluster-users">http://lists.gluster.org/mailman/listinfo/gluster-users</a></pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
regards
Aravinda VK</pre>
  </body>
</html>