Ask Your Question
0

Problem with quantum

asked 2012-01-12 20:14:25 -0500

Hi All: I send this post to ask you . I cannot run my instances in my server with nova + openvswitch and quantum.

This is one of the error that I found. 2012-01-12 14:45:52,245 AUDIT nova.compute.manager [5e535ea4-4d48-4d36-b69c-1246e9f68994 admin meli] instance 9: starting... 2012-01-12 14:45:52,391 DEBUG nova.rpc [-] Making asynchronous call on network ... from (pid=2552) multicall /usr/lib/python2.6/dist-packages/nova/rpc/impl_kombu.py:721 2012-01-12 14:45:52,391 DEBUG nova.rpc [-] MSG_ID is 9ad145ef497141ff8212a9f38d9be828 from (pid=2552) multicall /usr/lib/python2.6/dist-packages/nova/rpc/impl_kombu.py:724 2012-01-12 14:45:53,114 DEBUG nova.compute.manager [-] instance network_info: |[[{u'injected': True, u'cidr': u'4.4.4.0/24', u'multi_host': False}, {u'broadcast': u'4.4.4.255', u'ips': [{u'ip': u'4.4.4.8', u'netmask': u'255.255.255.0', u'enabled': u'1'}], u'mac': u'02:16:3e:6a:88:78', u'vif_uuid': u'19b1e87c-ffac-4fcb-ace3-525dd92d3e40', u'dns': [u'8.8.4.4'], u'dhcp_server': u'4.4.4.1', u'gateway': u'4.4.4.1'}]]| from (pid=2552) _run_instance /usr/lib/python2.6/dist-packages/nova/compute/manager.py:394 2012-01-12 14:45:53,333 DEBUG nova.virt.libvirt_conn [-] instance instance-00000009: starting toXML method from (pid=2552) to_xml /usr/lib/python2.6/dist-packages/nova/virt/libvirt/connection.py:1162 2012-01-12 14:45:53,334 DEBUG nova.utils [-] Running cmd (subprocess): ip link show dev tap19b1e87c-ff from (pid=2552) execute /usr/lib/python2.6/dist-packages/nova/utils.py:165 2012-01-12 14:45:53,341 DEBUG nova.utils [-] Result was 255 from (pid=2552) execute /usr/lib/python2.6/dist-packages/nova/utils.py:180 2012-01-12 14:45:53,342 DEBUG nova.utils [-] Running cmd (subprocess): sudo ip tuntap add tap19b1e87c-ff mode tap from (pid=2552) execute /usr/lib/python2.6/dist-packages/nova/utils.py:165 2012-01-12 14:45:53,353 DEBUG nova.utils [-] Running cmd (subprocess): sudo ip link set tap19b1e87c-ff up from (pid=2552) execute /usr/lib/python2.6/dist-packages/nova/utils.py:165 2012-01-12 14:45:53,365 DEBUG nova.utils [-] Running cmd (subprocess): sudo ovs-vsctl -- --may-exist add-port br-int tap19b1e87c-ff -- set Interface tap19b1e87c-ff external-ids:iface-id=19b1e87c-ffac-4fcb-ace3-525dd92d3e40 -- set Interface tap19b1e87c-ff external-ids:iface-status=active -- set Interface tap19b1e87c-ff external-ids:attached-mac=02:16:3e:6a:88:78 from (pid=2552) execute /usr/lib/python2.6/dist-packages/nova/utils.py:165 2012-01-12 14:45:53,374 DEBUG nova.utils [-] Result was 1 from (pid=2552) execute /usr/lib/python2.6/dist-packages/nova/utils.py:180 2012-01-12 14:45:53,375 ERROR nova.exception [-] Uncaught exception (nova.exception): TRACE: Traceback (most recent call last): (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/nova/exception.py", line 98, in wrapped (nova.exception): TRACE: return f(args, *kw) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/nova/virt/libvirt/connection.py", line 597, in spawn (nova.exception): TRACE: block_device_info=block_device_info) (nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/nova/virt/libvirt/connection.py", line 1164, in to_xml ... (more)

edit retag flag offensive close merge delete

4 answers

Sort by ยป oldest newest most voted
0

answered 2012-01-12 20:15:53 -0500

This is my output of nova instances: RESERVATION r-8ow45rrv meli default INSTANCE i-00000009 ami-00000003 4.4.4.8 4.4.4.8 pending 0 m1.small 2012-01-12T19:45:50Z nova aki-00000002 ari-00000001

edit flag offensive delete link more
0

answered 2012-01-12 21:19:11 -0500

salvatore-orlando gravatar image

It seems sudo is unable to execute ovs-vsctl:

(nova.compute.manager): TRACE: Stderr: 'sudo: no tty present and no askpass program specified\n'

Since these commands are being executed without a tty, my guess is that ovs-vsctl should be added to the sudoers file with the NOPASSWD option.

edit flag offensive delete link more
0

answered 2012-01-12 21:57:18 -0500

danwent gravatar image

Salvatore is correct. Could you clarify what distro and version you are running on ? I thought we had fixed the issues of OVS not being in the sudoers file for more recent version of Ubuntu. If not, we'll have to contact them again.

edit flag offensive delete link more
0

answered 2012-01-12 22:24:40 -0500

Hi Salvatore: I add your answer to my server. Your info was ver useful for me thanks a lot.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2012-01-12 20:14:25 -0500

Seen: 19 times

Last updated: Jan 12 '12