Nova problem - cannot power on VM after shutdown or rebuild [closed]
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 ...
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, 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.