<!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> 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 Type Disp Enb Address What</div>
<div>1 breakpoint keep y 0x00007f903ef1a0a0 in
server_getspec at glusterd-handshake.c:122</div>
<div>2 breakpoint keep y 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 breakpoint keep y 0x00007f903ef199f0 in
glusterd_set_clnt_mgmt_program at glusterd-handshake.c:359</div>
<div>4 breakpoint keep y 0x00007f903ef1a0a0 in
server_getspec at glusterd-handshake.c:122</div>
<div><br>
</div>
<div>in <span style="font-family: courier; font-size: 10pt;">rpcsvc_handle_rpc_call
fun, it call </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' <repeats 24
times>, procnum = 2, actor = 0x7f903ef1a0a0
<server_getspec>, vector_sizer = 0, unprivileged =
_gf_false}</div>
<div><br>
</div>
<div>but in </div>
<div>
<p style="font-size: 10pt;"><span style="color: rgb(128,
128, 128);"> </span><span style="color: rgb(0,
0, 128); font-weight: bold;">if</span><span
style="color: rgb(128, 128, 128);"> </span><span
style="font-weight: bold;">(</span><span
style="color: rgb(0, 128, 128);">0</span><span
style="color: rgb(128, 128, 128);"> </span><span
style="font-weight: bold;">==</span><span
style="color: rgb(128, 128, 128);"> </span>svc<span
style="font-weight: bold;">-></span>allow_insecure<span
style="color: rgb(128, 128, 128);"> </span><span
style="font-weight: bold;">&&</span><span
style="color: rgb(128, 128, 128);"> </span>unprivileged<span
style="color: rgb(128, 128, 128);"> </span><span
style="font-weight: bold;">&&</span><span
style="color: rgb(128, 128, 128);"> </span><span
style="font-weight: bold;">!</span>actor<span
style="font-weight: bold;">-></span>unprivileged<span
style="font-weight: bold;">)</span><span
style="color: rgb(128, 128, 128);"> </span><span
style="font-weight: bold;">{</span><span
style="color: rgb(128, 128, 128);"><br>
</span><span style="color:
rgb(0, 0, 255); font-style: italic;">/* Non-privileged user, fail request */</span><span
style="color: rgb(128, 128, 128);"><br>
</span>gf_log<span
style="color: rgb(128, 128, 128);"> </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);"> </span>GF_LOG_ERROR<span
style="font-weight: bold;">,</span><span
style="color: rgb(128, 128, 128);"><br>
</span><span
style="color: rgb(204, 0, 0);">"Request received from non-"</span><span
style="color: rgb(128, 128, 128);"><br>
</span><span
style="color: rgb(204, 0, 0);">"privileged port. Failing request"</span><span
style="font-weight: bold;">);</span><span
style="color: rgb(128, 128, 128);"><br>
</span>rpcsvc_request_destroy<span
style="color: rgb(128, 128, 128);"> </span><span
style="font-weight: bold;">(</span>req<span
style="font-weight: bold;">);</span><span
style="color: rgb(128, 128, 128);"><br>
</span><span style="color:
rgb(0, 0, 128); font-weight: bold;">return</span><span
style="color: rgb(128, 128, 128);"> </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>
</span><span style="font-weight: bold;">}</span></p>
</div>
</span></div>
<div>so the <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);"> </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);"> </span><span style="font-family:
courier; font-size: 10pt;">svc</span><span
style="font-family: courier; font-size: 10pt; font-weight:
bold;">-></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);"> </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);"> </span><span style="font-family:
courier; font-size: 10pt;">unprivileged</span><span
style="font-family: courier; font-size: 10pt; color:
rgb(128, 128, 128);"> </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);"> </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;">-></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;"> </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>
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 set by the previous option.<br>
<br>
volume set <VOLNAME> <KEY> <VALUE> - set options
for volume <VOLNAME><br>
<br>
eg: gluster volume set <volname> nfs.ports-insecure on<br>
something like that.<br>
<br>
</body>
</html>