unable to create a instance [closed]

asked 2014-05-06 09:38:16 -0600

rajcoumar gravatar image

updated 2014-05-06 09:42:30 -0600

I am working on openstack icehouse package. Keystone,glance,cinder and rabbitmq-server are installed in one virtual machine ( ubuntu server 12.04 & kernel version 3.11.0-20-generic ). Nova installed in another virtual machine. Now my problem is, Whenever I boot the instance its not created. Status will be in Error only. Unable to launch the instances.

I checked the log messages, 1. nova-scheduler.log

2014-05-06 13:32:12.607 2935 WARNING nova.scheduler.driver [req-f23a90df-ba36-44b1-a18d-e65309fa5c2c 9f198f7ae46b47719fb3fcd9af2ed496 9ab7bb377eb74a53ac2557e3ba118c65] [instance: 83c59105-0741-4f90-90c2-6326c88c8975] Setting instance to ERROR state.
2014-05-06 15:06:43.786 2935 ERROR nova.scheduler.filter_scheduler [req-cd4a54e4-ceb2-4570-adff-83ca21de6aae 9f198f7ae46b47719fb3fcd9af2ed496 9ab7bb377eb74a53ac2557e3ba118c65] [instance: 1ba6395a-5293-4628-8129-abb55abc1352] Error from last host: novaicehouse (node novaicehouse): [u'Traceback (most recent call last):\n', u'  File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1311, in _build_instance\n    set_access_ip=set_access_ip)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 399, in decorated_function\n    return function(self, context, *args, **kwargs)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1723, in _spawn\n    LOG.exception(_(\'Instance failed to spawn\'), instance=instance)\n', u'  File "/usr/lib/python2.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/dist-packages/nova/compute/manager.py", line 1720, in _spawn\n    block_device_info)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 2246, in spawn\n    admin_pass=admin_password)\n', u'  File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 2615, in _create_image\n    project_id=instance[\'project_id\'])\n', u'  File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/imagebackend.py", line 192, in cache\n    *args, **kwargs)\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, in fetch_image\n    max_size=max_size)\n', u'  File "/usr/lib/python2.7/dist-packages/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 fetch\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(client.images, method)(*args, **kwargs)\n', u'  File "/usr/lib/python2.7/dist-packages/glanceclient/v1/images.py", line 127, in ...
(more)
edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by rbowen
close date 2016-09-21 16:01:22.598073

Comments

what's the output of nova-manage service list ? Are all services up and running?

Brenne gravatar imageBrenne ( 2014-05-06 09:43:08 -0600 )edit

all are enable only

rajcoumar gravatar imagerajcoumar ( 2014-05-06 09:46:23 -0600 )edit

nova-manage service list

Binary Host Zone Status State Updated_At

nova-cert novaicehouse internal enabled :-) 2014-05-06 14:44:38.808145

nova-consoleauth novaicehouse internal enabled :-) 2014-05-06 14:44:38.827966

nova-scheduler novaicehouse internal enabled :-) 2014-05-06 14:44:38.991674

nova-conductor novaicehouse internal enabled :-) 2014-05-06 14:44:38.994079

nova-compute novaicehouse nova enabled XXX 2014-05-06 14:39:20.250351

nova-network novaicehouse internal enabled :-) 2014-05-06 14:44:39.333159

rajcoumar gravatar imagerajcoumar ( 2014-05-06 09:46:58 -0600 )edit

your nova-compute service is not working as expected. try reading corresponding log file

Antonio G. gravatar imageAntonio G. ( 2014-05-06 09:50:58 -0600 )edit

Binary Host Zone Status State Updated_At

nova-cert novaicehouse internal enabled :-) 2014-05-06 14:52:21.543076

nova-consoleauth novaicehouse internal enabled :-) 2014-05-06 14:52:21.567246

nova-scheduler novaicehouse internal enabled :-) 2014-05-06 14:52:21.591749

nova-conductor novaicehouse internal enabled :-) 2014-05-06 14:52:21.616958

nova-compute novaicehouse nova enabled :-) 2014-05-06 14:52:24.124390

nova-network novaicehouse internal enabled :-) 2014-05-06 14:52:22.050207

rajcoumar gravatar imagerajcoumar ( 2014-05-06 09:52:46 -0600 )edit