<div dir="ltr">Hi Sylvain,<div><br></div><div style>Thanks for your answer.</div><div style><br></div><div style>No I am not. I am actually logged in the controller machine. I start the l3-agent with sudo /etc/init.d/quantum-l3-agent start.</div>
<div style><br></div><div style>But I took a look at /var/log/quantum/dhcp-agent.log and I got this : (see last log)</div><div style>Like l3-agent, it complains about some interfaces that do not exist.</div><div style><br>
</div><div style>Here is the result of ovs-vsctl show on both the contoller node and the compute node :</div><div style><br></div><div style>On the controller node which also runs as a network node:</div><div style><div>8e316a78-ad43-4a0a-89ae-a6c734ef0b52</div>
<div> Bridge br-tun</div><div> Port "gre-1"</div><div> Interface "gre-1"</div><div> type: gre</div><div> options: {in_key=flow, out_key=flow, remote_ip="192.168.0.1"}</div>
<div> Port "gre-2"</div><div> Interface "gre-2"</div><div> type: gre</div><div> options: {in_key=flow, out_key=flow, remote_ip="192.168.0.2"}</div>
<div> Port patch-int</div><div> Interface patch-int</div><div> type: patch</div><div> options: {peer=patch-tun}</div><div> Port "gre-4"</div><div> Interface "gre-4"</div>
<div> type: gre</div><div> options: {in_key=flow, out_key=flow, remote_ip="192.168.1.2"}</div><div> Port br-tun</div><div> Interface br-tun</div><div> type: internal</div>
<div> Bridge br-ex</div><div> Port "eth1"</div><div> Interface "eth1"</div><div> Port br-ex</div><div> Interface br-ex</div><div> type: internal</div>
<div> Bridge br-int</div><div> Port patch-tun</div><div> Interface patch-tun</div><div> type: patch</div><div> options: {peer=patch-int}</div><div> Port br-int</div>
<div> Interface br-int</div><div> type: internal</div><div> ovs_version: "1.4.5"</div><div><br></div><div><br></div><div><br></div><div style>On the compute node :</div><div style><div>
6c9b615e-650b-4e80-8d53-233c90eed49e</div><div> Bridge br-int</div><div> Port br-int</div><div> Interface br-int</div><div> type: internal</div><div> Port patch-tun</div><div> Interface patch-tun</div>
<div> type: patch</div><div> options: {peer=patch-int}</div><div> Port "qvof1e2c3c0-bc"</div><div> tag: 1</div><div> Interface "qvof1e2c3c0-bc"</div>
<div> Bridge br-tun</div><div> Port "gre-2"</div><div> Interface "gre-2"</div><div> type: gre</div><div> options: {in_key=flow, out_key=flow, remote_ip="192.168.0.2"}</div>
<div> Port "gre-1"</div><div> Interface "gre-1"</div><div> type: gre</div><div> options: {in_key=flow, out_key=flow, remote_ip="192.168.0.1"}</div>
<div> Port patch-int</div><div> Interface patch-int</div><div> type: patch</div><div> options: {peer=patch-tun}</div><div> Port "gre-3"</div><div> Interface "gre-3"</div>
<div> type: gre</div><div> options: {in_key=flow, out_key=flow, remote_ip="192.168.1.1"}</div><div> Port br-tun</div><div> Interface br-tun</div><div> type: internal</div>
<div> ovs_version: "1.4.5"</div><div><br></div></div></div><div style><br></div><div style> </div><div style><br></div><div style><br></div><div style> 2013-03-20 14:22:47 DEBUG [quantum.openstack.common.rpc.amqp] Making asynchronous call on q-plugin ...</div>
<div>2013-03-20 14:22:47 DEBUG [quantum.openstack.common.rpc.amqp] MSG_ID is 1d5a7c943a1845d3837f9bc4d6d72590</div><div>2013-03-20 14:22:47 DEBUG [amqplib] Closed channel #1</div><div>2013-03-20 14:22:47 DEBUG [amqplib] using channel_id: 1</div>
<div>2013-03-20 14:22:47 DEBUG [amqplib] Channel open</div><div>2013-03-20 14:23:17 INFO [quantum.agent.dhcp_agent] Synchronizing state</div><div>2013-03-20 14:23:17 DEBUG [quantum.openstack.common.rpc.amqp] Making asynchronous call on q-plugin ...</div>
<div>2013-03-20 14:23:17 DEBUG [quantum.openstack.common.rpc.amqp] MSG_ID is 910cccbade364f5cba63eb787db731e3</div><div>2013-03-20 14:23:17 DEBUG [amqplib] Closed channel #1</div><div>2013-03-20 14:23:17 DEBUG [amqplib] using channel_id: 1</div>
<div>2013-03-20 14:23:17 DEBUG [amqplib] Channel open</div><div>2013-03-20 14:23:17 DEBUG [quantum.openstack.common.rpc.amqp] Making asynchronous call on q-plugin ...</div><div>2013-03-20 14:23:17 DEBUG [quantum.openstack.common.rpc.amqp] MSG_ID is e26dc4c782954d349462c7b237755b89</div>
<div>2013-03-20 14:23:17 DEBUG [amqplib] Closed channel #1</div><div>2013-03-20 14:23:17 DEBUG [amqplib] using channel_id: 1</div><div>2013-03-20 14:23:17 DEBUG [amqplib] Channel open</div><div>2013-03-20 14:23:17 DEBUG [quantum.openstack.common.rpc.amqp] Making asynchronous call on q-plugin ...</div>
<div>2013-03-20 14:23:17 DEBUG [quantum.openstack.common.rpc.amqp] MSG_ID is 185e0f3426d242ea9188582e0d09b2b3</div><div>2013-03-20 14:23:17 DEBUG [amqplib] Closed channel #1</div><div>2013-03-20 14:23:17 DEBUG [amqplib] using channel_id: 1</div>
<div>2013-03-20 14:23:17 DEBUG [amqplib] Channel open</div><div>2013-03-20 14:23:17 DEBUG [quantum.agent.linux.utils] Running command: ip -o link show tap8d6cc6c4-d1</div><div>2013-03-20 14:23:17 DEBUG [quantum.agent.linux.utils] </div>
<div>Command: ['ip', '-o', 'link', 'show', 'tap8d6cc6c4-d1']</div><div>Exit code: 1</div><div>Stdout: ''</div><div>Stderr: 'Device "tap8d6cc6c4-d1" does not exist.\n'</div>
<div>2013-03-20 14:23:17 DEBUG [quantum.agent.linux.utils] Running command: ip -o link show br-int</div><div>2013-03-20 14:23:17 DEBUG [quantum.agent.linux.utils] </div><div>Command: ['ip', '-o', 'link', 'show', 'br-int']</div>
<div>Exit code: 0</div><div>Stdout: '5: br-int: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT \\ link/ether 16:cc:49:e1:d2:4c brd ff:ff:ff:ff:ff:ff\n'</div><div>Stderr: ''</div>
<div>2013-03-20 14:23:17 DEBUG [quantum.agent.linux.utils] Running command: ip -o link show tap8d6cc6c4-d1</div><div>2013-03-20 14:23:17 DEBUG [quantum.agent.linux.utils] </div><div>Command: ['ip', '-o', 'link', 'show', 'tap8d6cc6c4-d1']</div>
<div>Exit code: 1</div><div>Stdout: ''</div><div>Stderr: 'Device "tap8d6cc6c4-d1" does not exist.\n'</div><div><div>2013-03-20 14:23:17 DEBUG [quantum.agent.linux.utils] Running command: sudo /usr/bin/quantum-rootwrap /etc/quantum/rootwrap.conf ovs-vsctl -- --may-exist add-port br-int tap8d6cc6c4-d1 -- set Interface tap8d6cc6c4-d1 type=internal -- set Interface tap8d6cc6c4-d1 external-ids:iface-id=8d6cc6c4-d1f3-41bf-975f-a9c07c5e5834 -- set Interface tap8d6cc6c4-d1 external-ids:iface-status=active -- set Interface tap8d6cc6c4-d1 external-ids:attached-mac=fa:16:3e:b1:8d:b1</div>
<div>2013-03-20 14:23:17 DEBUG [quantum.agent.linux.utils] </div><div>Command: ['sudo', '/usr/bin/quantum-rootwrap', '/etc/quantum/rootwrap.conf', 'ovs-vsctl', '--', '--may-exist', 'add-port', 'br-int', 'tap8d6cc6c4-d1', '--', 'set', 'Interface', 'tap8d6cc6c4-d1', 'type=internal', '--', 'set', 'Interface', 'tap8d6cc6c4-d1', 'external-ids:iface-id=8d6cc6c4-d1f3-41bf-975f-a9c07c5e5834', '--', 'set', 'Interface', 'tap8d6cc6c4-d1', 'external-ids:iface-status=active', '--', 'set', 'Interface', 'tap8d6cc6c4-d1', 'external-ids:attached-mac=fa:16:3e:b1:8d:b1']</div>
<div>Exit code: 1</div><div>Stdout: ''</div><div>Stderr: 'sudo: no tty present and no askpass program specified\n'</div><div>2013-03-20 14:23:17 ERROR [quantum.agent.dhcp_agent] Unable to enable dhcp.</div>
<div>Traceback (most recent call last):</div><div> File "/usr/lib/python2.7/dist-packages/quantum/agent/dhcp_agent.py", line 91, in call_driver</div><div> getattr(driver, action)()</div><div> File "/usr/lib/python2.7/dist-packages/quantum/agent/linux/dhcp.py", line 108, in enable</div>
<div> reuse_existing=True)</div><div> File "/usr/lib/python2.7/dist-packages/quantum/agent/dhcp_agent.py", line 436, in setup</div><div> namespace=namespace)</div><div> File "/usr/lib/python2.7/dist-packages/quantum/agent/linux/interface.py", line 137, in plug</div>
<div> self._ovs_add_port(bridge, device_name, port_id, mac_address)</div><div> File "/usr/lib/python2.7/dist-packages/quantum/agent/linux/interface.py", line 123, in _ovs_add_port</div><div> utils.execute(cmd, self.conf.root_helper)</div>
<div> File "/usr/lib/python2.7/dist-packages/quantum/agent/linux/utils.py", line 63, in execute</div><div> raise RuntimeError(m)</div><div>RuntimeError: </div><div>Command: ['sudo', '/usr/bin/quantum-rootwrap', '/etc/quantum/rootwrap.conf', 'ovs-vsctl', '--', '--may-exist', 'add-port', 'br-int', 'tap8d6cc6c4-d1', '--', 'set', 'Interface', 'tap8d6cc6c4-d1', 'type=internal', '--', 'set', 'Interface', 'tap8d6cc6c4-d1', 'external-ids:iface-id=8d6cc6c4-d1f3-41bf-975f-a9c07c5e5834', '--', 'set', 'Interface', 'tap8d6cc6c4-d1', 'external-ids:iface-status=active', '--', 'set', 'Interface', 'tap8d6cc6c4-d1', 'external-ids:attached-mac=fa:16:3e:b1:8d:b1']</div>
<div>Exit code: 1</div><div>Stdout: ''</div><div>Stderr: 'sudo: no tty present and no askpass program specified\n'</div><div>2013-03-20 14:23:17 DEBUG [quantum.openstack.common.rpc.amqp] Making asynchronous call on q-plugin ...</div>
<div>2013-03-20 14:23:17 DEBUG [quantum.openstack.common.rpc.amqp] MSG_ID is d341e9c13c294c628f75de229e0c6674</div><div>2013-03-20 14:23:17 DEBUG [amqplib] Closed channel #1</div><div>2013-03-20 14:23:17 DEBUG [amqplib] using channel_id: 1</div>
<div>2013-03-20 14:23:17 DEBUG [amqplib] Channel open</div></div><div><br></div><div><br></div><div style>Thanks for your help,</div><div style>Amine.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Wed, Mar 20, 2013 at 2:15 PM, Sylvain Bauza <span dir="ltr"><<a href="mailto:sylvain.bauza@digimind.com" target="_blank">sylvain.bauza@digimind.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Le 20/03/2013 13:24, Mohammed Amine SAYA a écrit :<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
RuntimeError:<br>
Command: ['sudo', 'quantum-rootwrap', '/etc/quantum/rootwrap.conf', 'ovs-vsctl', '--', '--may-exist', 'add-port', 'br-ex', 'qg-32dd6c6b-b6', '--', 'set', 'Interface', 'qg-32dd6c6b-b6', 'type=internal', '--', 'set', 'Interface', 'qg-32dd6c6b-b6', 'external-ids:iface-id=<u></u>32dd6c6b-b6e8-4dff-b0db-<u></u>3d804805c4e4', '--', 'set', 'Interface', 'qg-32dd6c6b-b6', 'external-ids:iface-status=<u></u>active', '--', 'set', 'Interface', 'qg-32dd6c6b-b6', 'external-ids:attached-mac=fa:<u></u>16:3e:6f:1b:81']<br>
Exit code: 1<br>
Stdout: ''<br>
Stderr: 'sudo: no tty present and no askpass program specified\n'<br>
</blockquote>
<br>
The answer is here : <a href="http://www.lmgtfy.com/?q=sudo%3A+no+tty+present+and+no+askpass+program+specified" target="_blank">http://www.lmgtfy.com/?q=sudo%<u></u>3A+no+tty+present+and+no+<u></u>askpass+program+specified</a><br>
<br>
Are you trying to start the L3 agent thru ssh ?<span class="HOEnZb"><font color="#888888"><br>
<br>
-Sylvain<br>
<br>
</font></span></blockquote></div><br></div>