Cannot run instance

asked 2014-12-08 05:49:13 -0500

iffyshot gravatar image

updated 2014-12-08 10:50:19 -0500

mpetason gravatar image

Hi all

I wonder if you can give me a hand as i am new to openstack

I have followed the instructions on the install guide to install 3 nodes, I have got the dashboard installed ok and can add networks, and routers but when i try to run an instance I get the error No Valid hosts

here is the output from this command tail -f /var/log/nova/nova-scheduler.log | grep ERROR

2014-12-08 11:36:13.762 2673 ERROR nova.scheduler.filter_scheduler [req-d77194d4                                   -a5b2-4185-ab6e-e9a12a5024d5 0b188de927e34893acd94a489fb1e167 d0d944054e504a7eb2                                   ab114c0de98d63] [instance: 61db67f6-88bb-4c2d-924e-da82452c04c4] Error from last                                    host: compute1 (node compute1): [u'Traceback (most recent call last):\n', u'  F                                   ile "/usr/lib/python2.7/dist-packages/nova/compute/", line 1333, in _b                                   uild_instance\n    set_access_ip=set_access_ip)\n', u'  File "/usr/lib/python2.7                                   /dist-packages/nova/compute/", line 401, in decorated_function\n    re                                   turn function(self, context, *args, **kwargs)\n', u'  File "/usr/lib/python2.7/d                                   ist-packages/nova/compute/", line 1745, in _spawn\n    LOG.exception(_                                   (\'Instance failed to spawn\'), instance=instance)\n', u'  File "/usr/lib/python                                   2.7/dist-packages/nova/openstack/common/", line 68, in __exit__\n                                       six.reraise(self.type_, self.value, self.tb)\n', u'  File "/usr/lib/python2.7/di                                   st-packages/nova/compute/", line 1742, in _spawn\n    block_device_inf                                   o)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/",                                    line 2288, in spawn\n    admin_pass=admin_password)\n', u'  File "/usr/lib/pytho                                   n2.7/dist-packages/nova/virt/libvirt/", line 2657, in _create_image\n                                       project_id=instance[\'project_id\'])\n', u'  File "/usr/lib/python2.7/dist-pac                                   kages/nova/virt/libvirt/", line 192, in cache\n    *args, **kwarg                                   s)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/imagebackend                                   .py", line 383, in create_image\n    prepare_template(target=base, max_size=size                                   , *args, **kwargs)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/openstack                                   /common/", line 249, in inner\n    return f(*args, **kwargs)\n', u'                                     File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/", line                                    182, in fetch_func_sync\n    fetch_func(target=target, *args, **kwargs)\n', u'                                     File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/", line 653, i                                   n fetch_image\n    max_size=max_size)\n', u'  File "/usr/lib/python2.7/dist-pack                                   ages/nova/virt/", line 78, in fetch_to_raw\n    max_size=max_size)\n',                                    u'  File "/usr/lib/python2.7/dist-packages/nova/virt/", line 72, in fet                                   ch\n, image_id, dst_path=path)\n', u'  File "/                                   usr/lib/python2.7/dist-packages/nova/image/", line 331, in download\n                                       _reraise_translated_image_exception(image_id)\n', u'  File "/usr/lib/python2.7                                   /dist-packages/nova/image/", line 329, in download\n    image_chunks =                          , 1, \'data\', image_id)\n', u'  File "/usr/lib/python2                                   .7/dist-packages/nova/image/", line 209, in call\n    return getattr(cl                                   ient.images, method)(*args, **kwargs)\n', u'  File "/usr/lib/python2.7/dist-pack                                   ages ...
edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted

answered 2014-12-08 07:34:44 -0500


even i encountered the same problem, while troubleshooting i came to know that in /var/log/nova/nova-compute.log qemu-image is showing error.
which means the image which you used in glance is not qemu compatible so i changed that image n freshly downloaded.

apart from that there will be following few types of error you encounter as per my knowledge.

1. ‘Not authorized for image’   
  Please verify the 


Log must be displaying error. This is clear issue of missing configuration on authentication part.
Please look at you


2. ‘compute2hostnotfound’

You may find the error like
It clearly means that either compute host is not reachable or compute service is down.
Ensure that ‘nova-­‐compute’ service is running successfully on compute boxes.
e.g service nova-­‐compute restart. Please do verify in every machine.

 3. No support for os type kvm
     You may see error like in  


4.kvm/qemu issues.

edit flag offensive delete link more

answered 2014-12-11 01:27:50 -0500

iffyshot gravatar image

i actually found an error in my nova.conf file on the controller thanks for the reply

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-12-08 05:49:13 -0500

Seen: 307 times

Last updated: Dec 11 '14