Cannot run instance

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

iffyshot gravatar image

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

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/manager.py", line 1333, in _b                                   uild_instance\n    set_access_ip=set_access_ip)\n', u'  File "/usr/lib/python2.7                                   /dist-packages/nova/compute/manager.py", 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/manager.py", 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/excutils.py", 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/manager.py", line 1742, in _spawn\n    block_device_inf                                   o)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py",                                    line 2288, in spawn\n    admin_pass=admin_password)\n', u'  File "/usr/lib/pytho                                   n2.7/dist-packages/nova/virt/libvirt/driver.py", line 2657, in _create_image\n                                       project_id=instance[\'project_id\'])\n', u'  File "/usr/lib/python2.7/dist-pac                                   kages/nova/virt/libvirt/imagebackend.py", 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/lockutils.py", line 249, in inner\n    return f(*args, **kwargs)\n', u'                                     File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/imagebackend.py", 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/utils.py", line 653, i                                   n fetch_image\n    max_size=max_size)\n', u'  File "/usr/lib/python2.7/dist-pack                                   ages/nova/virt/images.py", line 78, in fetch_to_raw\n    max_size=max_size)\n',                                    u'  File "/usr/lib/python2.7/dist-packages/nova/virt/images.py", line 72, in fet                                   ch\n    image_service.download(context, image_id, dst_path=path)\n', u'  File "/                                   usr/lib/python2.7/dist-packages/nova/image/glance.py", line 331, in download\n                                       _reraise_translated_image_exception(image_id)\n', u'  File "/usr/lib/python2.7                                   /dist-packages/nova/image/glance.py", line 329, in download\n    image_chunks =                                    self._client.call(context, 1, \'data\', image_id)\n', u'  File "/usr/lib/python2                                   .7/dist-packages/nova/image/glance.py", line 209, in call\n    return getattr(cl                                   ient.images, method)(*args, **kwargs)\n', u'  File "/usr/lib/python2.7/dist-pack                                   ages ...
(more)
edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
1

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

hi

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 


     /var/log/nova-­‐compute.log.

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

/etc/nova/nova.conf

2. ‘compute2hostnotfound’

You may find the error like
‘compute2hostnotfound’.
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  


     /var/log/libvirt/libvirtd.log

4.kvm/qemu issues.

edit flag offensive delete link more
0

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

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

Stats

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

Seen: 311 times

Last updated: Dec 11 '14