<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=GB2312" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    On 08/30/2012 08:27 AM, Yin Yin wrote:
    <blockquote
cite="mid:CAEw35nJbo9g88A3=FJySrz4QjZdfkWXxhMVrA6PW4+CET2RoXg@mail.gmail.com"
      type="cite">Hi, Harsh:
      <div>&nbsp; I make some break in glusterd , and can gdb the qemu-kvm
        forked from libvirtd.</div>
      <div><br>
      </div>
      <div>break in glusterd:</div>
      <div><br>
        <div>
          <div>(gdb) i b</div>
          <div>Num &nbsp; &nbsp; Type &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Disp Enb Address &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;What</div>
          <div>1 &nbsp; &nbsp; &nbsp; breakpoint &nbsp; &nbsp; keep y &nbsp; 0x00007f903ef1a0a0 in
            server_getspec at glusterd-handshake.c:122</div>
          <div>2 &nbsp; &nbsp; &nbsp; breakpoint &nbsp; &nbsp; keep y &nbsp; 0x00000034f4607070 in
            rpcsvc_program_actor at rpcsvc.c:137</div>
          <div><span class="Apple-tab-span" style="white-space: pre;"> </span>breakpoint
            already hit 2 times</div>
          <div>3 &nbsp; &nbsp; &nbsp; breakpoint &nbsp; &nbsp; keep y &nbsp; 0x00007f903ef199f0 in
            glusterd_set_clnt_mgmt_program at glusterd-handshake.c:359</div>
          <div>4 &nbsp; &nbsp; &nbsp; breakpoint &nbsp; &nbsp; keep y &nbsp; 0x00007f903ef1a0a0 in
            server_getspec at glusterd-handshake.c:122</div>
          <div><br>
          </div>
          <div>in&nbsp;<span style="font-family: courier; font-size: 10pt;">rpcsvc_handle_rpc_call
              fun, it call&nbsp;</span><span style="font-family: courier;
              font-size: 10pt;">rpcsvc_program_actor and return right.</span></div>
          <div><span style="font-family: courier; font-size: 10pt;">
              <div>
                (gdb) p *actor</div>
              <div>$13 = {procname = "GETSPEC", '\000' &lt;repeats 24
                times&gt;, procnum = 2, actor = 0x7f903ef1a0a0
                &lt;server_getspec&gt;, vector_sizer = 0, unprivileged =
                _gf_false}</div>
              <div><br>
              </div>
              <div>but in&nbsp;</div>
              <div>
                <p style="font-size: 10pt;"><span style="color: rgb(128,
                    128, 128);">&nbsp; &nbsp; &nbsp;</span><span style="color: rgb(0,
                    0, 128); font-weight: bold;">if</span><span
                    style="color: rgb(128, 128, 128);">&nbsp;</span><span
                    style="font-weight: bold;">(</span><span
                    style="color: rgb(0, 128, 128);">0</span><span
                    style="color: rgb(128, 128, 128);">&nbsp;</span><span
                    style="font-weight: bold;">==</span><span
                    style="color: rgb(128, 128, 128);">&nbsp;</span>svc<span
                    style="font-weight: bold;">-&gt;</span>allow_insecure<span
                    style="color: rgb(128, 128, 128);">&nbsp;</span><span
                    style="font-weight: bold;">&amp;&amp;</span><span
                    style="color: rgb(128, 128, 128);">&nbsp;</span>unprivileged<span
                    style="color: rgb(128, 128, 128);">&nbsp;</span><span
                    style="font-weight: bold;">&amp;&amp;</span><span
                    style="color: rgb(128, 128, 128);">&nbsp;</span><span
                    style="font-weight: bold;">!</span>actor<span
                    style="font-weight: bold;">-&gt;</span>unprivileged<span
                    style="font-weight: bold;">)</span><span
                    style="color: rgb(128, 128, 128);">&nbsp;</span><span
                    style="font-weight: bold;">{</span><span
                    style="color: rgb(128, 128, 128);"><br>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color:
                    rgb(0, 0, 255); font-style: italic;">/*&nbsp;Non-privileged&nbsp;user,&nbsp;fail&nbsp;request&nbsp;*/</span><span
                    style="color: rgb(128, 128, 128);"><br>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>gf_log<span
                    style="color: rgb(128, 128, 128);">&nbsp;</span><span
                    style="font-weight: bold;">(</span><span
                    style="color: rgb(204, 0, 0);">"glusterd"</span><span
                    style="font-weight: bold;">,</span><span
                    style="color: rgb(128, 128, 128);">&nbsp;</span>GF_LOG_ERROR<span
                    style="font-weight: bold;">,</span><span
                    style="color: rgb(128, 128, 128);"><br>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
                    style="color: rgb(204, 0, 0);">"Request&nbsp;received&nbsp;from&nbsp;non-"</span><span
                    style="color: rgb(128, 128, 128);"><br>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
                    style="color: rgb(204, 0, 0);">"privileged&nbsp;port.&nbsp;Failing&nbsp;request"</span><span
                    style="font-weight: bold;">);</span><span
                    style="color: rgb(128, 128, 128);"><br>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>rpcsvc_request_destroy<span
                    style="color: rgb(128, 128, 128);">&nbsp;</span><span
                    style="font-weight: bold;">(</span>req<span
                    style="font-weight: bold;">);</span><span
                    style="color: rgb(128, 128, 128);"><br>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color:
                    rgb(0, 0, 128); font-weight: bold;">return</span><span
                    style="color: rgb(128, 128, 128);">&nbsp;</span><span
                    style="font-weight: bold;">-</span><span
                    style="color: rgb(0, 128, 128);">1</span><span
                    style="font-weight: bold;">;</span><span
                    style="color: rgb(128, 128, 128);"><br>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="font-weight: bold;">}</span></p>
              </div>
            </span></div>
          <div>so the&nbsp;<span style="font-family: courier; font-size:
              13.6364px;">server_getspec on server not be called, which
              cause qemu-kvm progress failed.</span></div>
          <div><span style="font-family: courier; font-size: 13.6364px;"><br>
            </span></div>
          <div><span style="font-family: courier; font-size: 13.6364px;">my
              question:</span></div>
          <div><span style="font-family: courier; font-size: 13.6364px;">1.</span><span
              style="font-family: courier; font-size: 10pt; font-weight:
              bold;">(</span><span style="font-family: courier;
              font-size: 10pt; color: rgb(0, 128, 128);">0</span><span
              style="font-family: courier; font-size: 10pt; color:
              rgb(128, 128, 128);">&nbsp;</span><span style="font-family:
              courier; font-size: 10pt; font-weight: bold;">==</span><span
              style="font-family: courier; font-size: 10pt; color:
              rgb(128, 128, 128);">&nbsp;</span><span style="font-family:
              courier; font-size: 10pt;">svc</span><span
              style="font-family: courier; font-size: 10pt; font-weight:
              bold;">-&gt;</span><span style="font-family: courier;
              font-size: 10pt;">allow_insecure</span><span
              style="font-family: courier; font-size: 10pt; color:
              rgb(128, 128, 128);">&nbsp;</span><span style="font-family:
              courier; font-size: 10pt; font-weight: bold;">&amp;&amp;</span><span
              style="font-family: courier; font-size: 10pt; color:
              rgb(128, 128, 128);">&nbsp;</span><span style="font-family:
              courier; font-size: 10pt;">unprivileged</span><span
              style="font-family: courier; font-size: 10pt; color:
              rgb(128, 128, 128);">&nbsp;</span><span style="font-family:
              courier; font-size: 10pt; font-weight: bold;">&amp;&amp;</span><span
              style="font-family: courier; font-size: 10pt; color:
              rgb(128, 128, 128);">&nbsp;</span><span style="font-family:
              courier; font-size: 10pt; font-weight: bold;">!</span><span
              style="font-family: courier; font-size: 10pt;">actor</span><span
              style="font-family: courier; font-size: 10pt; font-weight:
              bold;">-&gt;</span><span style="font-family: courier;
              font-size: 10pt;">unprivileged</span><span
              style="font-family: courier; font-size: 10pt; font-weight:
              bold;">) which one wrong here ?</span><span
              style="font-family: courier; font-size: 10pt;">&nbsp;</span></div>
          <div><span style="font-family: courier; font-size: 10pt;"><br>
            </span></div>
          <div>Best Regards,</div>
          <div>Yin Yin</div>
          <div><br>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    Yin,<br>
    &nbsp;&nbsp; IIUC, you need to set this option to True on your gluster volume
    to get past this error.<br>
    Gluster experts can provide more info here.<br>
    <br>
    Option: nfs.ports-insecure<br>
    Default Value: (null)<br>
    Description: Allow client connections from unprivileged ports. By
    default only privileged ports are allowed. Use this option to enable
    or disable insecure ports for a specific subvolume and to override
    the global setting&nbsp; set by the previous option.<br>
    <br>
    volume set &lt;VOLNAME&gt; &lt;KEY&gt; &lt;VALUE&gt; - set options
    for volume &lt;VOLNAME&gt;<br>
    <br>
    eg: gluster volume set &lt;volname&gt; nfs.ports-insecure on<br>
    something like that.<br>
    <br>
  </body>
</html>