Ask Your Question
2

How can I configure XCP and Nova to communicate with OpenVSwitch?

asked 2013-08-22 03:46:13 -0500

jacky velluet gravatar image

updated 2013-09-05 21:05:00 -0500

I try to lunch an instance but it stops in Spawning state and crash (status : error). I use an .iso in glance. I use XCP - OpenvSwitch with Grizzly. All parts use Ubuntu Server 12.04.1. I can populate XCP of VM thanks to Citrix Xen Center compute is in PV mode / I use a LVM disk for instance (instance is in ext)

I have made the typical install and I have try to adapt the install for XCP-OpenvSwitch

my "nova.conf" is in : http://pastebin.com/pwdKLYG8

When I create a VM, Nova receives datagrams but not XCP... How must be configured XCP and Nova to communicate with OpenvSwitch ?

In the Controller after try to create a VM I have these errors :

In Nova's scheduler log :

2013-08-22 09:08:57.875 ERROR nova.scheduler.filter_scheduler [req-835fba9d-960c-4ac8-bda4-3bc9c99dc2cc 109a5b02308243a6a3c040c4e1e42d46 d7fdd73480e840f49dd25d0c5f1fb116] [instance: 50e19ac4-9a88-42eb-9dda-4d3bafb6d433] Error from last host: compute (node dom0): [u'Traceback (most recent call last):\n', u'  File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 848, in _run_instance\n    set_access_ip=set_access_ip)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1107, in _spawn\n    LOG.exception(_(\'Instance failed to spawn\'), instance=instance)\n', u'  File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__\n    self.gen.next()\n', u'  File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1103, in _spawn\n    block_device_info)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/virt/xenapi/driver.py", line 177, in spawn\n    admin_password, network_info, block_device_info)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/virt/xenapi/vmops.py", line 480, in spawn\n    undo_mgr.rollback_and_reraise(msg=msg, instance=instance)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/utils.py", line 1250, in rollback_and_reraise\n    self._rollback()\n', u'  File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__\n    self.gen.next()\n', u'  File "/usr/lib/python2.7/dist-packages/nova/virt/xenapi/vmops.py", line 466, in spawn\n    kernel_file, ramdisk_file)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/virt/xenapi/vmops.py", line 142, in inner\n    rv = f(*args, **kwargs)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/virt/xenapi/vmops.py", line 387, in create_vm_record_step\n    vdis, disk_image_type, kernel_file, ramdisk_file)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/virt/xenapi/vmops.py", line 538, in _create_vm_record\n    vdis[\'root\'][\'ref\'], disk_image_type, instance[\'os_type\'])\n', u"KeyError: 'root'\n"]
2013-08-22 09:08:57.907 WARNING nova.scheduler.driver [req-835fba9d-960c-4ac8-bda4-3bc9c99dc2cc 109a5b02308243a6a3c040c4e1e42d46 d7fdd73480e840f49dd25d0c5f1fb116] [instance: 50e19ac4-9a88-42eb-9dda-4d3bafb6d433] Setting instance to ERROR state.

root@controller:/var/log/quantum# tail server.log
2013-08-22 09:07:46  WARNING [quantum.db.agentschedulers_db] Fail scheduling network {'status': u'ACTIVE', 'subnets': [u'3161f69b-6dc9-4596-8df8-b5d36100c73b'], 'name': u'test', 'provider:physical_network': None, 'admin_state_up': True, 'tenant_id': u'd7fdd73480e840f49dd25d0c5f1fb116', 'provider:network_type': u'gre', 'router:external': False, 'shared': False, 'id': u'd0954e2f-dd83-41ec-84e5-49c6dce79c7e', 'provider:segmentation_id': 1L}

In the network :

root@network:/var/log/openvswitch# tail ovs-vswitchd.log

Aug 22 06:35:45|00057|vlog|INFO|opened log file ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-11-12 09:34:16 -0500

Bob Ball gravatar image

The KeyError in the first paste is a bug in Nova - but this has been fixed. Please try with the released version of Havana.

If you want more details on XenServer and networking, check out http://docs.openstack.org/trunk/openstack-compute/install/yum/content/introduction-to-xen.html or http://blogs.citrix.com/2013/06/14/openstack-networking-quantum-on-xenserver-from-notworking-to-networking/ if you're trying to set up Neutron.

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: 2013-08-22 03:46:13 -0500

Seen: 240 times

Last updated: Nov 12 '13