Ask Your Question

Openstack Installation problem. Why is my cirrOS instance always ending up in error state?

asked 2014-01-30 06:51:37 -0500

piosystems gravatar image

updated 2014-01-30 08:29:24 -0500

I am installing Openstack (havana) on dell PowerEdge R720 servers running ubuntu 12.04.3 and religiously following the install guide. Unfortunately, when I create a new instance (I am using the test cirrOS image), the instance ends up in error state. When I run "nova show cirrOS", the fault message shown is "{u'message': u'No valid host was found. ', u'code': 500, u'details': u' File "/usr/lib/python2.7/dist-packages/nova/scheduler/", line 107, in schedule_run_instance | | | raise exception.NoValidHost(reason="") " .

The log file "/var/log/nova/nova-scheduler.log" shows more details as follows:

"Error from last host: compute1 (node compute1): [u'Traceback (most recent call last):\n', u'  File "/usr/lib/python2.7/dist-packages/nova/compute/", line 1037, in _build_instance\n    set_access_ip=set_access_ip)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/compute/", line 1410, in _spawn\n    LOG.exception(_(\'Instance failed to spawn\'), instance=instance)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/compute/", line 1407, in _spawn\n    block_device_info)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/", line 2070, in spawn\n    block_device_info, context=context)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/", line 3205, in _create_domain_and_network\n    domain = self._create_domain(xml, instance=instance, power_on=power_on)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/", line 3148, in _create_domain\n    domain.XMLDesc(0))\n', u'  File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/", line 3143, in _create_domain\n    domain.createWithFlags(launch_flags)\n', u'  File "/usr/lib/python2.7/dist-packages/eventlet/", line 179, in doit\n    result = proxy_call(self._autowrap, f, *args, **kwargs)\n', u'  File "/usr/lib/python2.7/dist-packages/eventlet/", line 139, in proxy_call\n    rv = execute(f,*args,**kwargs)\n', u'  File "/usr/lib/python2.7/dist-packages/eventlet/", line 77, in tworker\n    rv = meth(*args,**kwargs)\n', u'  File "/usr/lib/python2.7/dist-packages/", line 728, in createWithFlags\n    if ret == -1: raise libvirtError (\'virDomainCreateWithFlags() failed\', dom=self)\n', u"libvirtError: internal error: Process exited while reading console log output: char device redirected to /dev/pts/3\nCPU feature tsc-deadline not found\nCPU feature pcid not found\nqemu: could not load PC BIOS 'bios.bin'\n\n"] 2014-01-30 12:45:43.466 3098 WARNING nova.scheduler.driver [req-825a9f49-74eb-484f-9b81-9156f778d172 580f5ac495f24b5ba244e488aa92d730 4d874d7639c142eab658863028908d60] [instance: 6463aaf5-7ebb-4000-9e32-c793e31d0868] Setting instance to ERROR state."

I see qemu somewhere in that log but I am supposed to be using kvm.

What can I do next to successfully create instance?

edit retag flag offensive close merge delete


May be a problem with your compute node configuration or libvirt problem. Can you post your /etc/nova/nova.conf and /etc/nova/nova-compute.conf (without password) ? :) Salvo.

salvorapi gravatar imagesalvorapi ( 2014-01-30 08:27:07 -0500 )edit

Hi Salvo. I posted my response to your request as an answer because the text was too long for comment. Waiting for your further help. Thanks.

piosystems gravatar imagepiosystems ( 2014-01-30 10:59:03 -0500 )edit

See if the my following link help you to troubleshoot.

dheeru gravatar imagedheeru ( 2014-01-30 11:09:58 -0500 )edit

There are two log messages that seem to stand out.
1. /var/log/libvirt/libvirtd.log shows:
1927: error : virNetSocketReadWire:1377 : End of file while reading data: Input/output error

2. /var/log/nova/nova-compute.log shows:
2014-01-31 11:44:25.330 8195 ERROR nova.compute.manager [req-ab1b5442-ef4c-42db-ad03-de5fb4fdfdac 580f5ac495f24b5ba244e488aa92d730 4d874d7639c142eab658863028908d60] [instance: 3102049c-a4e4-49a7-9e31-6405556591d4] Error: Unexpected error while running command.
Command: sudo nova-rootwrap /etc/nova/rootwrap.conf ovs-vsctl -- --may-exist add-port br100 qvof7025e0b-24 -- set Interface qvof7025e0b-24 external-ids:iface-id=f7025e0b-2492-4625-a3ef-939a742b93f2 external-ids:iface-status=active external-ids:attached-mac=fa:16:3e:5c:6a:7c external-ids:vm-uuid=3102049c-a4e4-49a7-9e31-6405556591d4 Exit code: 96 Stdout: '' Stderr: '/usr/bin/nova-rootwrap: Executable not found: ovs-vsctl (filter match = ovs-vsctl)\n' ...

piosystems gravatar imagepiosystems ( 2014-01-31 05:06:05 -0500 )edit

Traceback (most recent call last):File "/usr/lib/python2.7/dist-packages/nova/compute/", line 1037, in _build_instance set_access_ip=set_access_ip)
File "/usr/lib/python2.7/dist-packages/nova/compute/", line 1410, in _spawn LOG.exception(_('Instance failed to spawn'), instance=instance)
File "/usr/lib/python2.7/dist-packages/nova/compute/", line 1407, in _spawn block_device_info)
File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/", line 3202, in _create_domain_and_network self.plug_vifs(instance, network_info)
File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/", line 805, in plug return self.plug_ovs_hybrid(instance, vif)
File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/", line 436, in plug_ovs_hybrid instance['uuid'])...
File "/usr/lib/python2.7/dist-packages/nova/openstack/common/", line 178, in execute cmd=' '.join(cmd)) ProcessExecutionError: ...

piosystems gravatar imagepiosystems ( 2014-01-31 05:28:45 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2014-01-30 10:45:04 -0500

piosystems gravatar image

updated 2014-01-30 10:54:18 -0500

Thanks Salvo for the response.

---Content of /etc/nova/nova-compute.conf is:


----Content of /etc/nova/nova.conf is:

root_helper=sudo nova-rootwrap /etc/nova/rootwrap.conf


rpc_backend = nova.rpc.impl_kombu
rabbit_host = controller
rabbit_password = my_rabbit_pass


connection = mysql://nova:thepassword@controller/nova

---- Please note that I am using eth3 instead of eth1 because that's my hardware config.

edit flag offensive delete link more


Configure file seems ok. I think can be a problem with cpu of dell server. If you read log carefully there are at end a text "CPU feature tsc-deadline not found" and "could not load PC BIOS 'bios.bin'. Try with a ''cat /proc/cpuinfo'' and post result.

salvorapi gravatar imagesalvorapi ( 2014-01-30 11:21:44 -0500 )edit

processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 45 model name : Intel(R) Xeon(R) CPU E5-2665 0 @ 2.40GHz stepping : 7 microcode : 0x710 cpu MHz : 2400.035 cache size : 20480 KB physical id : 0 siblings : 16 core id : 0 cpu cores : 8 apicid : 0 initial apicid : 0 fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx lahf_lm ida arat xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid bogomips : 4800.07 clflush size : 64 cache_alignment : 64 address sizes : 46 bits physical, 48 ...


piosystems gravatar imagepiosystems ( 2014-01-31 04:53:36 -0500 )edit

What is the result of kvm-ok command ?

salvorapi gravatar imagesalvorapi ( 2014-01-31 10:56:23 -0500 )edit

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


Asked: 2014-01-30 06:51:37 -0500

Seen: 3,525 times

Last updated: Jan 30 '14