<html>
<head>
<meta content="text/html; charset=GB2312" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">we can deploy many dhcp agents and l3
agents.<br>
<br>
for multihost, we are doing:<br>
<meta http-equiv="content-type" content="text/html;
charset=GB2312">
<a href="https://review.openstack.org/#/c/24771/">https://review.openstack.org/#/c/24771/</a><br>
On 03/20/2013 10:13 AM, tommy(小包) wrote:<br>
</div>
<blockquote
cite="mid:CACDmTCdg+GPETM1xO0oJWu0YL92wO46kCXZrfB7TLTcTVSLLVQ@mail.gmail.com"
type="cite">
<div dir="ltr">i worry about performance of quantum use subnet in
one dhcp & l3 agent work for it(more dhcp & l3 just for
backup)
<div><br>
</div>
<div style="">if quantum have any solution to performance about
quantum dhcp & l3 (may be one compute node have dhcp &
l3 agent work for local VMs)</div>
<div style=""><br>
</div>
<div style=""><br>
</div>
<div style="">Thanks,</div>
<div style="">Tommy</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">2013/3/20 Martinx - ジェームズ <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:thiagocmartinsc@gmail.com" target="_blank">thiagocmartinsc@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">User "quantum" running `python
/usr/bin/quantum-dhcp-agent'...</div>
<div class="HOEnZb">
<div class="h5">
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On 19 March 2013 22:55, gong
yong sheng <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:gongysh@linux.vnet.ibm.com"
target="_blank">gongysh@linux.vnet.ibm.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>that depends what user is running the dhcp
agent.
<div>
<div><br>
On 03/20/2013 09:52 AM, Martinx - ジェームズ
wrote:<br>
</div>
</div>
</div>
<div>
<div>
<blockquote type="cite">
<div dir="ltr">My /etc/sudoers.d/nova_sudoers
contains:
<div><br>
</div>
<div>--</div>
<div>
<div>Defaults:nova !requiretty</div>
<div><br>
</div>
<div>nova ALL = (root) NOPASSWD:
/usr/bin/nova-rootwrap </div>
</div>
<div>--</div>
<div> <br>
</div>
<div>Do I need to change it?</div>
<div><br>
</div>
<div>Tks!</div>
<div>Thiago</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On 19 March
2013 22:46, gong yong sheng <span
dir="ltr"><<a
moz-do-not-send="true"
href="mailto:gongysh@linux.vnet.ibm.com"
target="_blank">gongysh@linux.vnet.ibm.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote"
style="margin:0 0 0
.8ex;border-left:1px #ccc
solid;padding-left:1ex">
<div bgcolor="#FFFFFF"
text="#000000">
<div>It seems be about sudo.<br>
to create one sudo file under
/etc/sudoers.d<br>
mine is: nova_sudoers:<br>
Defaults:gongysh !requiretty<br>
gongysh ALL = (ALL) NOPASSWD:
ALL
<div>
<div><br>
<br>
On 03/20/2013 09:37 AM,
Martinx - ジェームズ wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div>
<div dir="ltr">
<div>Hi!</div>
<div><br>
</div>
I just rollback to the
default namespace options,
my Instance now get its IP
without problem.
<div><br>
</div>
<div>But, the message from
my first e-mail on this
thread, still persist...</div>
<div><br>
</div>
<div>I tried to enable
quantum metadata proxy
stuff but, nothing
changes...</div>
<div><br>
</div>
<div>The following error
keeps rolling at
my /var/log/quantum/dhcp-agent.log:</div>
<div><br>
</div>
<div> ---</div>
<div>...</div>
<div>Command: ['sudo',
'ip', 'netns', 'exec',
'qdhcp-21a39c11-03fd-4e2e-b7a0-94eee95f5f91',
'quantum-ns-metadata-proxy',
'--pid_file=/var/lib/quantum/external/pids/21a39c11-03fd-4e2e-b7a0-94eee95f5f91.pid',
'--network_id=21a39c11-03fd-4e2e-b7a0-94eee95f5f91',
'--state_path=/var/lib/quantum',
'--metadata_port=80',
'--debug', '--verbose',
'--log-file=quantum-ns-metadata-proxy21a39c11-03fd-4e2e-b7a0-94eee95f5f91.log',
'--log-dir=/var/log/quantum']<br>
</div>
<div>
<div>Exit code: 1</div>
<div>Stdout: ''</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>---</div>
</div>
<div><br>
</div>
<div> I tried everything I
could... But this
message persist...</div>
<div><br>
</div>
<div> The namespaces are
enabled, look:</div>
<div><br>
</div>
<div>
<div> ip netns exec
qdhcp-21a39c11-03fd-4e2e-b7a0-94eee95f5f91
ip r</div>
<div><a
moz-do-not-send="true"
href="http://10.33.14.0/24" target="_blank">10.33.14.0/24</a> dev
tapeb27823a-5e proto
kernel scope link
src 10.33.14.2 </div>
<div><br>
</div>
<div> What can I do?</div>
<div><br>
</div>
<div>Tks,</div>
<div>Thiago</div>
</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On
19 March 2013 20:35,
Martinx - ジェームズ <span
dir="ltr"><<a
moz-do-not-send="true"
href="mailto:thiagocmartinsc@gmail.com" target="_blank">thiagocmartinsc@gmail.com</a>></span>
wrote:<br>
<blockquote
class="gmail_quote">
<div dir="ltr">
<div>After disabling
namespaces, with:</div>
<div><br>
</div>
<div>`allow_overlapping_ips
= False' in
quantum.conf<br>
</div>
<div><br>
</div>
<div>and with:</div>
<div><br>
</div>
<div>`use_namespaces
= False'
in /etc/quantum/dhcp_agent.ini<br>
</div>
<div><br>
</div>
The previous error
message dissapear
but, My Instance
isn't getting its IP
via DHCP now...
Weird thing is that
it was working
couple minutes ago,
without disabling
namespaces explicitly...
<div>
<div><br>
</div>
<div>
<div> If I add
the Instance
IP by hand, I
can reach the
Internet /
gateway from
it.</div>
</div>
<div><br>
</div>
<div> I'm
finishing my
Grizzly Quantum
Single Flat PoC
environment,
planning to
publish a nice
guide soon!</div>
<div><br>
</div>
<div> I appreciate
any help!</div>
<div><br>
</div>
</div>
<div>Tks!</div>
<div>Thiago</div>
<div>
<div>
<div
class="gmail_extra"><br>
<div
class="gmail_quote">On
19 March 2013
20:09, Martinx
- ジェームズ <span
dir="ltr"><<a
moz-do-not-send="true" href="mailto:thiagocmartinsc@gmail.com"
target="_blank">thiagocmartinsc@gmail.com</a>></span>
wrote:<br>
<blockquote
class="gmail_quote">
<div dir="ltr">Guys,
<div><br>
</div>
<div> My
/var/log/quantum/dhcp-agent.log
file shows:</div>
<div><br>
</div>
<div>
<div>2013-03-19
20:04:48
DEBUG
[quantum.agent.linux.utils]
Running
command:
['sudo', 'ip',
'netns',
'exec',
'qdhcp-21a39c11-03fd-4e2e-b7a0-94eee95f5f91',
'quantum-ns-metadata-proxy',
'--pid_file=/var/lib/quantum/external/pids/21a39c11-03fd-4e2e-b7a0-94eee95f5f91.pid',
'--network_id=21a39c11-03fd-4e2e-b7a0-94eee95f5f91',
'--state_path=/var/lib/quantum',
'--metadata_port=80',
'--debug',
'--verbose',
'--log-file=quantum-ns-metadata-proxy21a39c11-03fd-4e2e-b7a0-94eee95f5f91.log','--log-dir=/var/log/quantum']</div>
<div>2013-03-19
20:04:48
DEBUG
[quantum.agent.linux.utils] </div>
<div>Command:
['sudo', 'ip',
'netns',
'exec',
'qdhcp-21a39c11-03fd-4e2e-b7a0-94eee95f5f91',
'quantum-ns-metadata-proxy',
'--pid_file=/var/lib/quantum/external/pids/21a39c11-03fd-4e2e-b7a0-94eee95f5f91.pid',
'--network_id=21a39c11-03fd-4e2e-b7a0-94eee95f5f91',
'--state_path=/var/lib/quantum',
'--metadata_port=80',
'--debug',
'--verbose',
'--log-file=quantum-ns-metadata-proxy21a39c11-03fd-4e2e-b7a0-94eee95f5f91.log','--log-dir=/var/log/quantum']</div>
<div>Exit
code: 1</div>
<div>Stdout:
''</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-03-19
20:04:48
ERROR
[quantum.agent.dhcp_agent]
Unable to sync
network state.</div>
<div>Traceback
(most recent
call last):</div>
<div> File
"/usr/lib/python2.7/dist-packages/quantum/agent/dhcp_agent.py",
line 154, in
sync_state</div>
<div>
self.refresh_dhcp_helper(network_id)</div>
<div> File
"/usr/lib/python2.7/dist-packages/quantum/agent/dhcp_agent.py",
line 208, in
refresh_dhcp_helper</div>
<div>
return
self.enable_dhcp_helper(network_id)</div>
<div> File
"/usr/lib/python2.7/dist-packages/quantum/agent/dhcp_agent.py",
line 187, in
enable_dhcp_helper</div>
<div>
self.enable_isolated_metadata_proxy(network)</div>
<div> File
"/usr/lib/python2.7/dist-packages/quantum/agent/dhcp_agent.py",
line 321, in
enable_isolated_metadata_proxy</div>
<div>
pm.enable(callback)</div>
<div> File
"/usr/lib/python2.7/dist-packages/quantum/agent/linux/external_process.py",
line 55, in
enable</div>
<div>
ip_wrapper.netns.execute(cmd)</div>
<div> File
"/usr/lib/python2.7/dist-packages/quantum/agent/linux/ip_lib.py",
line 407, in
execute</div>
<div>
check_exit_code=check_exit_code)</div>
<div> File
"/usr/lib/python2.7/dist-packages/quantum/agent/linux/utils.py",
line 61, in
execute</div>
<div> raise
RuntimeError(m)</div>
<div>RuntimeError: </div>
<div> Command:
['sudo', 'ip',
'netns',
'exec',
'qdhcp-21a39c11-03fd-4e2e-b7a0-94eee95f5f91',
'quantum-ns-metadata-proxy',
'--pid_file=/var/lib/quantum/external/pids/21a39c11-03fd-4e2e-b7a0-94eee95f5f91.pid',
'--network_id=21a39c11-03fd-4e2e-b7a0-94eee95f5f91',
'--state_path=/var/lib/quantum',
'--metadata_port=80',
'--debug',
'--verbose',
'--log-file=quantum-ns-metadata-proxy21a39c11-03fd-4e2e-b7a0-94eee95f5f91.log','--log-dir=/var/log/quantum']</div>
<div>Exit
code: 1</div>
<div>Stdout:
''</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><br>
</div>
<div> Tips?</div>
<div><br>
</div>
<div> It is a
fresh
installation
to test
Grizzly...</div>
<div><br>
</div>
<div> I'm not
using GRE or
L3, only
Quantum Single
FLAT... With
Folsom and
previous
Grizzly my
Quantum was
fine...</div>
<div><br>
</div>
<div> quantum-dhcp-agent
1:2013.1+git201303190501~precise-0ubuntu1 </div>
<div><br>
</div>
<div>Tks,</div>
<div>Thiago</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset></fieldset>
<br>
</div>
</div>
<pre>_______________________________________________
Mailing list: <a moz-do-not-send="true" href="https://launchpad.net/%7Eopenstack" target="_blank">https://launchpad.net/~openstack</a>
Post to : <a moz-do-not-send="true" href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a>
Unsubscribe : <a moz-do-not-send="true" href="https://launchpad.net/%7Eopenstack" target="_blank">https://launchpad.net/~openstack</a>
More help : <a moz-do-not-send="true" href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a>
</pre>
</blockquote>
<br>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
<br>
_______________________________________________<br>
Mailing list: <a moz-do-not-send="true"
href="https://launchpad.net/%7Eopenstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to : <a moz-do-not-send="true"
href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a moz-do-not-send="true"
href="https://launchpad.net/%7Eopenstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help : <a moz-do-not-send="true"
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>
没有翅膀不算天使!
</div>
</blockquote>
<br>
</body>
</html>