Ask Your Question
0

Nova problem - cannot power on VM after shutdown or rebuild [closed]

asked 2014-02-03 22:35:31 -0500

dtaylor gravatar image

I'm hoping someone has seen this problem before because I'm stumped as to what is wrong with my current setup. I can create an instance with no problem, and rebooting is fine. The problem is when I shut down an instance or try to rebuild it. In '/var/lib/nova/instances/<instance id="">' it looks like the disk file is not being preserved when the instance is completely powered off. What I am confused about is even with a running instance the disk file does not exist (see example log entries below):

Rebuilding:

Ignoring error injecting data into image ([Errno 2] No such file or directory: '/var/lib/nova/instances/02108040-6493-4444-bb83-82a7c188f8be/disk')

Power On (after shutdown):

2014-02-04 11:30:48.172 19235 ERROR glanceclient.common.http [-] Request returned failure status.
2014-02-04 11:30:48.173 19235 WARNING nova.compute.utils [req-06bdf15a-a141-4668-b32c-6c3a6057c850 Dave Taylor 0t530h8qg5nos8gihsle5vnlsg85hmgh4] [instance: fc13cc5a-63a6-48e8-9479-79b896a1a387] Can't access image : Image  could not be found.
2014-02-04 11:30:53.433 19235 ERROR nova.openstack.common.rpc.amqp [req-06bdf15a-a141-4668-b32c-6c3a6057c850 Dave Taylor 0t530h8qg5nos8gihsle5vnlsg85hmgh4] Exception during message handling
2014-02-04 11:30:53.433 19235 TRACE nova.openstack.common.rpc.amqp Traceback (most recent call last):
2014-02-04 11:30:53.433 19235 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-02-04 11:30:53.433 19235 TRACE nova.openstack.common.rpc.amqp     **args)
2014-02-04 11:30:53.433 19235 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.6/site-packages/nova/openstack/common/rpc/dispatcher.py", line 172, in dispatch
2014-02-04 11:30:53.433 19235 TRACE nova.openstack.common.rpc.amqp     result = getattr(proxyobj, method)(ctxt, **kwargs)
2014-02-04 11:30:53.433 19235 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 353, in decorated_function
2014-02-04 11:30:53.433 19235 TRACE nova.openstack.common.rpc.amqp     return function(self, context, *args, **kwargs)
2014-02-04 11:30:53.433 19235 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.6/site-packages/nova/exception.py", line 90, in wrapped
2014-02-04 11:30:53.433 19235 TRACE nova.openstack.common.rpc.amqp     payload)
2014-02-04 11:30:53.433 19235 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.6/site-packages/nova/exception.py", line 73, in wrapped
2014-02-04 11:30:53.433 19235 TRACE nova.openstack.common.rpc.amqp     return f(self, context, *args, **kw)
2014-02-04 11:30:53.433 19235 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 243, in decorated_function
2014-02-04 11:30:53.433 19235 TRACE nova.openstack.common.rpc.amqp     pass
2014-02-04 11:30:53.433 19235 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 229, in decorated_function
2014-02-04 11:30:53.433 19235 TRACE nova.openstack.common.rpc.amqp     return function(self, context, *args, **kwargs)
2014-02-04 11:30:53.433 19235 TRACE nova.openstack.common.rpc ...
(more)
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by dheeru
close date 2014-02-04 03:46:50.105448

Comments

Hope you have required glance image in the directory. Can you check the image used by the instance is indeed present in the glance ?

dheeru gravatar imagedheeru ( 2014-02-03 23:45:11 -0500 )edit

Dheeru, thanks for the comment. Please see my answer/comment below. Turns out it is a bug in the nova-compute code. I had to apply a patch to get it working properly.

dtaylor gravatar imagedtaylor ( 2014-02-04 03:38:54 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-02-04 03:29:59 -0500

dtaylor gravatar image

Turns out this is a known bug in Nova. It can be fixed by updating the following file and restarting the nova-compute service:

https://review.openstack.org/#/c/58102/1/nova/compute/manager.py

Even after doing a system update, downloading and installing the latest nova-compute, the patch was still not applied so it must not have made it into the repositories yet.

edit flag offensive delete link more

Comments

Here is the relevant bug page with pretty much the same error I was getting: https://bugs.launchpad.net/horizon/+bug/1245719%3C/p%3E (https://bugs.launchpad.net/horizon/+bug/1245719)

dtaylor gravatar imagedtaylor ( 2014-02-04 03:38:13 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-02-03 22:35:31 -0500

Seen: 2,049 times

Last updated: Feb 04 '14