Ask Your Question
0

instance spawn error

asked 2015-03-15 04:52:50 -0600

han gravatar image

My testing machine (icehouse) running in a Centos 6.6 and it is also a virtual box environment. I have changed the nova.conf with

compute_driver=libvirt.LibvirtDriver libvirt_type=qemu

and the instance is stilling logging error when spawning the instance, the cirros 3.1 image from web.

Here is the log from scheduler.log

2015-03-15 17:33:03.503 3477 INFO nova.scheduler.filter_scheduler [req-b35fcbfa-7286-4cb4-8000-b1fc35abf1e5 804cd8a2d4484178ad07e1440830def4 523ffddc8f1a445fb33489be01f8565f] Attempting to build 1 instance(s) uuids: [u'6faf48c4-a0ee-46b4-8b5d-0994743da77f'] 2015-03-15 17:33:03.595 3477 INFO nova.scheduler.filter_scheduler [req-b35fcbfa-7286-4cb4-8000-b1fc35abf1e5 804cd8a2d4484178ad07e1440830def4 523ffddc8f1a445fb33489be01f8565f] Choosing host WeighedHost [host: http://ovs.example.com , weight: 1.0] for instance 6faf48c4-a0ee-46b4-8b5d-0994743da77f 2015-03-15 17:34:45.324 3477 INFO nova.scheduler.filter_scheduler [req-b35fcbfa-7286-4cb4-8000-b1fc35abf1e5 804cd8a2d4484178ad07e1440830def4 523ffddc8f1a445fb33489be01f8565f] Attempting to build 1 instance(s) uuids: [u'6faf48c4-a0ee-46b4-8b5d-0994743da77f'] 2015-03-15 17:34:45.335 3477 ERROR nova.scheduler.filter_scheduler [req-b35fcbfa-7286-4cb4-8000-b1fc35abf1e5 804cd8a2d4484178ad07e1440830def4 523ffddc8f1a445fb33489be01f8565f] [instance: 6faf48c4-a0ee-46b4-8b5d-0994743da77f] Error from last host: http://ovs.example.com (node http://ovs.example.com ): [u'Traceback (most recent call last):\n', u' File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1328, in _build_instance\n set_access_ip=set_access_ip)\n', u' File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 393, in decorated_function\n return function(self, context, args, *kwargs)\n', u' File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1740, in _spawn\n LOG.exception(_(\'Instance failed to spawn\'), instance=instance)\n', u' File "/usr/lib/python2.6/site-packages/nova/openstack/common/excutils.py", line 68, in __exit__\n six.reraise(self.type_, self.value, self.tb)\n', u' File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1737, in _spawn\n block_device_info)\n', u' File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 2294, in spawn\n block_device_info)\n', u' File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 3695, in _create_domain_and_network\n power_on=power_on)\n', u' File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 3587, in _create_domain\n raise e\n', u"libvirtError: internal error no supported architecture for os type 'hvm'\n"] 2015-03-15 17:34:45.345 3477 INFO nova.filters [req-b35fcbfa-7286-4cb4-8000-b1fc35abf1e5 804cd8a2d4484178ad07e1440830def4 523ffddc8f1a445fb33489be01f8565f] Filter RetryFilter returned 0 hosts 2015-03-15 17:34:45.345 3477 WARNING nova.scheduler.driver [req-b35fcbfa-7286-4cb4-8000-b1fc35abf1e5 804cd8a2d4484178ad07e1440830def4 523ffddc8f1a445fb33489be01f8565f] [instance: 6faf48c4-a0ee-46b4-8b5d-0994743da77f] Setting instance to ERROR state.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2015-03-15 22:13:34 -0600

han gravatar image

updated 2015-03-15 22:14:07 -0600

Finally I changed these 2 values and the instance starts now.

compute_driver = libvirt.LibvirtDriver

[libvirt]

virt_type = qemu

edit flag offensive delete link more
0

answered 2015-03-15 16:35:20 -0600

Try with compute_driver=nova.virt.libvirt.LibvirtDriver in nova.conf, restart nova-compute service and try to launch an instance again. I assume that you got libvirt installed and running properly.

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: 2015-03-15 04:52:50 -0600

Seen: 577 times

Last updated: Mar 15 '15