Ask Your Question
1

Unable to launch new instance and nova boot command is failing with below error

asked 2014-05-22 02:09:31 -0500

Manohar gravatar image

updated 2014-05-23 03:54:24 -0500

Anand TS gravatar image

Compute Node output on /var/log/nova/compute.log

====================================================================================================
tail -f compute.log
2014-05-22 12:23:45.326 29582 ERROR nova.virt.libvirt.driver [-] Getting disk size of instance-00000002: [Errno 2] No such file or directory: '/var/lib/nova/instances/ded56ad8-e5a2-46a6-b62e-c6519d6af402/disk'
2014-05-22 12:24:47.187 29582 ERROR nova.virt.libvirt.driver [-] Getting disk size of instance-00000002: [Errno 2] No such file or directory: '/var/lib/nova/instances/ded56ad8-e5a2-46a6-b62e-c6519d6af402/disk'
2014-05-22 12:25:39.480 29582 ERROR nova.virt.libvirt.driver [-] Getting disk size of instance-00000002: [Errno 2] No such file or directory: '/var/lib/nova/instances/ded56ad8-e5a2-46a6-b62e-c6519d6af402/disk'
2014-05-22 12:25:40.910 29582 WARNING nova.compute.manager [-] Found 2 in the database and 1 on the hypervisor.
2014-05-22 12:26:41.179 29582 ERROR nova.virt.libvirt.driver [-] Getting disk size of instance-00000002: [Errno 2] No such file or directory: '/var/lib/nova/instances/ded56ad8-e5a2-46a6-b62e-c6519d6af402/disk'
2014-05-22 12:27:43.181 29582 ERROR nova.virt.libvirt.driver [-] Getting disk size of instance-00000002: [Errno 2] No such file or directory: '/var/lib/nova/instances/ded56ad8-e5a2-46a6-b62e-c6519d6af402/disk'
2014-05-22 12:27:45.616 29582 ERROR nova.virt.libvirt.driver [-] Getting disk size of instance-00000002: [Errno 2] No such file or directory: '/var/lib/nova/instances/ded56ad8-e5a2-46a6-b62e-c6519d6af402/disk'
2014-05-22 12:28:47.265 29582 ERROR nova.virt.libvirt.driver [-] Getting disk size of instance-00000002: [Errno 2] No such file or directory: '/var/lib/nova/instances/ded56ad8-e5a2-46a6-b62e-c6519d6af402/disk'
2014-05-22 12:29:49.332 29582 ERROR nova.virt.libvirt.driver [-] Getting disk size of instance-00000002: [Errno 2] No such file or directory: '/var/lib/nova/instances/ded56ad8-e5a2-46a6-b62e-c6519d6af402/disk'
2014-05-22 12:30:28.051 29582 ERROR nova.virt.libvirt.driver [-] Getting disk size of instance-00000002: [Errno 2] No such file or directory: '/var/lib/nova/instances/ded56ad8-e5a2-46a6-b62e-c6519d6af402/disk'
=================================================================================================

Controller Node

 nova list
+--------------------------------------+--------------+--------+------------+-------------+----------------+
| ID                                   | Name         | Status | Task State | Power State | Networks       |
+--------------------------------------+--------------+--------+------------+-------------+----------------+
| 3074a2d5-08a0-4556-bbb7-12ed2282d128 | Centos-6.5   | ERROR  | deleting   | NOSTATE     |                |
| f4ef69f4-c2b1-400d-a892-da19abac0701 | Centos-6.5.1 | ERROR  | deleting   | NOSTATE     | vmnet=10.0.0.5 |
| 95897497-f193-402e-b67f-91ee001e7cce | Centos-6.5.2 | BUILD  | scheduling | NOSTATE     |                |
| f91ec2c1-893e-4a57-8e36-1993f25999df | cirrOS       | ACTIVE | -          | Running     | vmnet=10.0.0.2 |
+--------------------------------------+--------------+--------+------------+-------------+----------------+
==============================================================================================

Before this I have deleted the disk file in compute node and deleted entries in mysql nova database.

edit retag flag offensive close merge delete

4 answers

Sort by ยป oldest newest most voted
0

answered 2014-05-26 02:59:04 -0500

chen-li gravatar image

Your instance id in log (ded56ad8-e5a2-46a6-b62e-c6519d6af402/disk) does not match any instance in the output of nova list.

Run command :

virsh list --all

Check if there is already an instance named "instance-00000002" but not in running status. like this:

 -     instance-00000002              shut off

Remove the instance from libvirt by hand:

virsh managedsave-remove instance-00000002
virsh undefine instance-00000002
edit flag offensive delete link more

Comments

This is what exactly I have done, just took the help of google to find the solution. After I use the below commands the disk dependency has been removed to launch new instance. Anyway thanks for the help..

Manohar gravatar imageManohar ( 2014-05-26 07:45:08 -0500 )edit
0

answered 2014-05-23 02:03:09 -0500

Manohar gravatar image

updated 2014-05-23 03:55:20 -0500

Anand TS gravatar image

Nova services are reinstalled still it showing the same problem... check the end to end logs while launching new instance. Database was resynced even.

==================================================================================================
2014-05-23 12:18:05.880 25578 ERROR nova.openstack.common.rpc.amqp [req-3a852934-7d2b-418b-b177-345ff85b7e18 bcf3a6be7a574127b217437c8ed614b1 84acd57e249e4bdcb5e8000e4fa1b818] Exception during message handling
2014-05-23 12:18:05.880 25578 TRACE nova.openstack.common.rpc.amqp Traceback (most recent call last):
2014-05-23 12:18:05.880 25578 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.6/site-packages/nova/openstack/common/rpc/amqp.py", line 461, in _process_data
2014-05-23 12:18:05.880 25578 TRACE nova.openstack.common.rpc.amqp     **args)
2014-05-23 12:18:05.880 25578 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.6/site-packages/nova/openstack/common/rpc/dispatcher.py", line 172, in dispatch
2014-05-23 12:18:05.880 25578 TRACE nova.openstack.common.rpc.amqp     result = getattr(proxyobj, method)(ctxt, **kwargs)
2014-05-23 12:18:05.880 25578 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.6/site-packages/nova/exception.py", line 90, in wrapped
2014-05-23 12:18:05.880 25578 TRACE nova.openstack.common.rpc.amqp     payload)
2014-05-23 12:18:05.880 25578 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.6/site-packages/nova/exception.py", line 73, in wrapped
2014-05-23 12:18:05.880 25578 TRACE nova.openstack.common.rpc.amqp     return f(self, context, *args, **kw)
2014-05-23 12:18:05.880 25578 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 243, in decorated_function
2014-05-23 12:18:05.880 25578 TRACE nova.openstack.common.rpc.amqp     pass
2014-05-23 12:18:05.880 25578 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 229, in decorated_function
2014-05-23 12:18:05.880 25578 TRACE nova.openstack.common.rpc.amqp     return function(self, context, *args, **kwargs)
2014-05-23 12:18:05.880 25578 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 294, in decorated_function
2014-05-23 12:18:05.880 25578 TRACE nova.openstack.common.rpc.amqp     function(self, context, *args, **kwargs)
2014-05-23 12:18:05.880 25578 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 271, in decorated_function
2014-05-23 12:18:05.880 25578 TRACE nova.openstack.common.rpc.amqp     e, sys.exc_info())
2014-05-23 12:18:05.880 25578 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 258, in decorated_function
2014-05-23 12:18:05.880 25578 TRACE nova.openstack.common.rpc.amqp     return function(self, context, *args, **kwargs)
2014-05-23 12:18:05.880 25578 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1630, in run_instance
2014-05-23 12:18:05.880 25578 TRACE nova.openstack.common.rpc.amqp     do_run_instance()
2014-05-23 12:18:05.880 25578 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.6/site-packages/nova/openstack/common/lockutils ...
(more)
edit flag offensive delete link more
1

answered 2014-05-22 11:15:15 -0500

SGPJ gravatar image

Create the needed resources, then sync with data base after restarting openstack services and sync your database. Then check launching VMs.

edit flag offensive delete link more

Comments

I have reinstalled the nova services and Database was resynced even getting the same problem. Check the end to end logs while launching new instance..kindly advise.

2014-05-23 12:18:05.880 25578 ERROR nova.openstack.common.rpc.amqp [req-3a852934-7d2b-418b-b177-345ff85b7e18 bcf3a6be7a574127b217437c8ed614b1 84acd57e249e4bdcb5e8000e4fa1b818] Exception during message handling 2014-05-23 12:18:05.880 25578 TRACE nova.openstack.common.rpc.amqp Traceback (most recent call last): 2014-05-23 12:18:05.880 25578 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.6/site-packages/nova/openstack/common/rpc/amqp.py", line 461, in _process_data 2014-05-23 12:18:05.880 25578 TRACE nova.openstack.common.rpc.amqp *args) 2014-05-23 12:18:05.880 25578 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.6/site-packages/nova/openstack/common/rpc/dispatcher.py", line 172, in dispatch 2014-05-23 12:18:05.880 25578 TRACE nova.openstack.common.rpc.amqp result = getattr(proxyobj, method)(ctxt, *kwargs ...(more)

Manohar gravatar imageManohar ( 2014-05-23 02:05:08 -0500 )edit

Hi Manohar,

Could you check all your nova related services are running fine using nova service-list. Also check the qpidd service is running file.

Since you have deleted the disk file from /var/log/nova/instances/ your instance can't find the bootable disk while spawning. Is it possible to create a fresh instance from image after restarting all the nova related services.?

Anand TS gravatar imageAnand TS ( 2014-05-23 04:00:56 -0500 )edit

Thank you very anand i also faced the above problem i followed your steps that's it done. thank you very much

achutha gravatar imageachutha ( 2014-08-23 01:15:22 -0500 )edit

That's good.

SGPJ gravatar imageSGPJ ( 2014-08-23 04:11:34 -0500 )edit
1

answered 2014-05-22 05:03:24 -0500

SGPJ gravatar image

updated 2014-05-23 04:18:48 -0500

Error seems nova not able to allocate memory to instance as disk file got deleted and fails. So you need to provide required resources, check KVM and restart Nova service before creating instances.

edit flag offensive delete link more

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

1 follower

Stats

Asked: 2014-05-22 02:09:31 -0500

Seen: 2,292 times

Last updated: May 26 '14