<div dir="ltr"><h3 style="margin:10px 0px;font-family:'PT Sans',sans-serif;line-height:40px;color:rgb(51,51,51)"><font><span style="font-weight:normal">Hi Liu,</span></font></h3><h3 style="margin:10px 0px;font-family:'PT Sans',sans-serif;line-height:40px;color:rgb(51,51,51)">

I think you should use : <span style="background-color:rgb(245,245,245);font-family:Monaco,Menlo,Consolas,'Courier New',monospace;font-size:13px;line-height:20px;white-space:pre-wrap;font-weight:normal">rootwrap_config=/etc/quantum/rootwrap.conf</span></h3>

<div><span style="background-color:rgb(245,245,245);font-family:Monaco,Menlo,Consolas,'Courier New',monospace;font-size:13px;line-height:20px;white-space:pre-wrap">Found this at below mentioned wiki page. I think this should hold true for Quantum too.</span><br>

</div><h3 style="margin:10px 0px;font-family:'PT Sans',sans-serif;line-height:40px;color:rgb(51,51,51)"><a href="https://wiki.openstack.org/wiki/Nova/Rootwrap">https://wiki.openstack.org/wiki/Nova/Rootwrap</a><br>

</h3><h3 style="margin:10px 0px;font-family:'PT Sans',sans-serif;line-height:40px;color:rgb(51,51,51)"><font size="4"><span style="font-weight:normal">Refer to the section :</span></font></h3><h3 style="margin:10px 0px;font-family:'PT Sans',sans-serif;line-height:40px;color:rgb(51,51,51);font-size:24px">

<span class="" id="Nova_configuration">Nova configuration</span></h3><p style="margin:0px 0px 10px;color:rgb(51,51,51);font-family:'Arial Unicode MS',Arial,sans-serif;font-size:14px;line-height:20px">You must provide the location of the rootwrap configuration file to Nova, by setting the following in <b>nova.conf</b>:</p>

<p style="margin:0px 0px 10px;color:rgb(51,51,51);font-family:'Arial Unicode MS',Arial,sans-serif;font-size:14px;line-height:20px"><br></p><pre style="padding:9.5px;font-family:Monaco,Menlo,Consolas,'Courier New',monospace;font-size:13px;color:rgb(51,51,51);border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px;margin-top:0px;margin-bottom:10px;line-height:20px;word-break:break-all;word-wrap:break-word;white-space:pre-wrap;background-color:rgb(245,245,245);border:1px solid rgba(0,0,0,0.14902)">

rootwrap_config=/etc/nova/rootwrap.conf
</pre><p style="margin:0px 0px 10px;color:rgb(51,51,51);font-family:'Arial Unicode MS',Arial,sans-serif;font-size:14px;line-height:20px"><br>The configuration file used here must match the one defined in the <i>sudoers</i> entry (see below), otherwise the commands will be rejected ! There is no need to specify the <i>root_helper</i> parameter anymore.</p>

<p style="margin:0px 0px 10px;color:rgb(51,51,51);font-family:'Arial Unicode MS',Arial,sans-serif;font-size:14px;line-height:20px"><br></p><p style="margin:0px 0px 10px;color:rgb(51,51,51);font-family:'Arial Unicode MS',Arial,sans-serif;font-size:14px;line-height:20px">

Regards,</p><p style="margin:0px 0px 10px;color:rgb(51,51,51);font-family:'Arial Unicode MS',Arial,sans-serif;font-size:14px;line-height:20px">Rahul.</p></div><div class="gmail_extra"><br><br><div class="gmail_quote">

On Tue, Apr 9, 2013 at 12:45 PM, Liu Wenmao <span dir="ltr"><<a href="mailto:marvelliu@gmail.com" target="_blank">marvelliu@gmail.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">Hi all:<div><br></div><div>In quantum dhcp grizzly log, I find the following warnings:</div><div>2013-04-09 15:12:48  WARNING [quantum.agent.common.config] Deprecated: DEFAULT.root_helper is deprecated!<div>



<br></div><div>I do set root_helper in the ini file:</div><div> root_helper = sudo /usr/local/bin/quantum-rootwrap /etc/quantum/rootwrap.conf<br><div><br></div><div>After I remove this line, it gives the following error:</div>



<div><div>Stderr: 'sudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: 3 incorrect password attempts\n'</div>



<div>2013-04-09 15:07:56    DEBUG [quantum.agent.linux.utils] Running command: ['sudo', 'cat', '/proc/5609/cmdline']</div><div>2013-04-09 15:07:56    DEBUG [quantum.agent.linux.utils] </div><div>Command: ['sudo', 'cat', '/proc/5609/cmdline']</div>



</div></div></div><div><br></div><div><br></div><div>So it seems that I still have to use root_helper, then how can I get the warning removed?</div></div>
<br>_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Regards,<br>Rahul<div>=======================================================</div>
</div>