Problem with quantum

Asked by net-security

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
(nova.exception): TRACE: block_device_info)
(nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/nova/virt/libvirt/connection.py", line 1062, in _prepare_xml_info
(nova.exception): TRACE: nics.append(self.vif_driver.plug(instance, network, mapping))
(nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/nova/virt/libvirt/vif.py", line 121, in plug
(nova.exception): TRACE: run_as_root=True)
(nova.exception): TRACE: File "/usr/lib/python2.6/dist-packages/nova/utils.py", line 188, in execute
(nova.exception): TRACE: cmd=' '.join(cmd))
(nova.exception): TRACE: ProcessExecutionError: Unexpected error while running command.
(nova.exception): TRACE: Command: 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
(nova.exception): TRACE: Exit code: 1
(nova.exception): TRACE: Stdout: ''
(nova.exception): TRACE: Stderr: 'sudo: no tty present and no askpass program specified\n'
(nova.exception): TRACE:
2012-01-12 14:45:53,377 ERROR nova.compute.manager [-] Instance '9' failed to spawn. Is virtualization enabled in the BIOS? Details: Unexpected error while running command.
Command: 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
Exit code: 1
Stdout: ''
Stderr: 'sudo: no tty present and no askpass program specified\n'
(nova.compute.manager): TRACE: Traceback (most recent call last):
(nova.compute.manager): TRACE: File "/usr/lib/python2.6/dist-packages/nova/compute/manager.py", line 424, in _run_instance
(nova.compute.manager): TRACE: network_info, block_device_info)
(nova.compute.manager): TRACE: File "/usr/lib/python2.6/dist-packages/nova/exception.py", line 129, in wrapped
(nova.compute.manager): TRACE: raise Error(str(e))
(nova.compute.manager): TRACE: Error: Unexpected error while running command.
(nova.compute.manager): TRACE: Command: 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
(nova.compute.manager): TRACE: Exit code: 1
(nova.compute.manager): TRACE: Stdout: ''
(nova.compute.manager): TRACE: Stderr: 'sudo: no tty present and no askpass program specified\n'
(nova.compute.manager): TRACE:
2012-01-12 14:46:51,628 INFO nova.compute.manager [-] Found 4 in the database and 0 on the hypervisor.

Since now thanks a lot.

Question information

Language:
English Edit question
Status:
Solved
For:
neutron Edit question
Assignee:
No assignee Edit question
Solved by:
net-security
Solved:
Last query:
Last reply:
Revision history for this message
net-security (net-security) said :
#1

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

Revision history for this message
Salvatore Orlando (salvatore-orlando) said :
#2

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.

Revision history for this message
dan wendlandt (danwent) said :
#3

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.

Revision history for this message
net-security (net-security) said :
#4

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