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

"URI qemu:///system does not support events:" this message could be useful. Is libvirtd running? ps -aux |grep libvirt . Try a look into /var/log/libvirt/libvirtd.log

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

ok, now it is working fine... test it with another instance deploy

Antonio G. gravatar imageAntonio G. ( 2014-05-06 09:56:31 -0600 )edit

unable to launch... Now i checked the nova-compute log messages. I got some ERRORS and Warnings

014-05-06 20:26:17.562 15124 ERROR glanceclient.common.http [-] Request returned failure status.

2014-05-06 20:26:17.564 15124 ERROR nova.compute.manager [req-75236e34-b8d4-4531-bf48-3f2597919e34 9f198f7ae46b47719fb3fcd9af2ed496 9ab7bb377eb74a53ac2557e3ba118c65] [instance: 686baeda-79d4-4e19-a89a-01068a28a4b7] Instance failed to spawn

2014-05-06 20:26:17.776 15124 ERROR nova.virt.libvirt.driver [-] [instance: 686baeda-79d4-4e19-a89a-01068a28a4b7] During wait destroy, instance disappeared.

2014-05-06 20:26:18.035 15124 ERROR nova.compute.manager [req-75236e34-b8d4-4531-bf48-3f2597919e34 9f198f7ae46b47719fb3fcd9af2ed496 9ab7bb377eb74a53ac2557e3ba118c65] [instance: 686baeda-79d4-4e19-a89a-01068a28a4b7] Error: Image 2476d37a-ff2c-44b0-b4da-402688fad8fe could not be found.

WARNING nova.compute.manager [req-9609bc1b-d2f3-4946-9952-54609f8bcc31 None None] Found 1 in the database and 0 on the hypervisor.

rajcoumar gravatar imagerajcoumar ( 2014-05-06 09:59:11 -0600 )edit

ps -aux |grep libvirt

Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html 108 2169 0.0 0.0 25980 836 ? S 13:24 0:00 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf

root 3549 0.0 0.0 7204 596 pts/2 T 13:35 0:00 tail -f /var/log/libvirt/libvirtd.log

root 3728 0.0 0.0 7204 596 pts/2 T 15:12 0:00 tail -f /var/log/libvirt/libvirtd.log

root 4984 0.0 0.0 7200 596 pts/2 T 15:13 0:00 tail -f /var/log/libvirt/libvirtd.log

root 10121 0.0 0.0 7204 612 pts/9 T 16:07 0:00 tail -f /var/log/libvirt/libvirtd.log

root 11661 0.0 0.0 7204 612 pts/9 T 19:18 0:00 tail -f /var/log/libvirt/libvirtd ...(more)

rajcoumar gravatar imagerajcoumar ( 2014-05-06 10:02:07 -0600 )edit

libvirt.log messages

2014-05-06 14:44:44.374+0000: 12943: info : libvirt version: 1.2.2

2014-05-06 14:44:44.374+0000: 12943: error : virNetSocketReadWire:1454 : End of file while reading data: Input/output error

2014-05-06 14:49:11.787+0000: 12943: error : virNetSocketReadWire:1454 : End of file while reading data: Input/output error

2014-05-06 14:49:35.786+0000: 12943: error : virNetSocketReadWire:1454 : End of file while reading data: Input/output error

2014-05-06 14:49:53.687+0000: 12943: error : virNetSocketReadWire:1454 : End of file while reading data: Input/output error

2014-05-06 14:52:02.686+0000: 12943: error : virNetSocketReadWire:1454 : End of file while reading data: Input/output error

2014-05-06 14:52:08.318+0000: 12943: error : virNetSocketReadWire:1454 : End of file while reading data: Input/output error

2014-05-06 14:55:37.611+0000: 12943: error : virNetSocketReadWire:1454 : End of file while reading data: Input/output error

rajcoumar gravatar imagerajcoumar ( 2014-05-06 10:03:07 -0600 )edit

anybody help me for this problem

rajcoumar gravatar imagerajcoumar ( 2014-05-06 10:05:25 -0600 )edit