2014-03-05 01:14:13 |
kwonho lee |
description |
When instance created by bootable volume, "shelve/unshelve" does not work properly.
Here is my test step.
1. Instance create using bootable colume
==> nova boot --flavor 1 klee_test_autoha1 --block-device id=e9494670-fb19-48c7-9154-20b136ce6356,source=image,dest=volume,device=vda,bootindex=0,shutdown=remove,size=1
2. Execute shelve/unshelve command |
When instance created by bootable volume, "shelve/unshelve" does not work properly.
In case of "shelve" instance, attached root volume does not detached.
In case of "unshelve" instance, the instance that created by bootable volume does not have
image ref information. Also sys_meta does not have any shelved information such as
"shelved_image_id" . Because when execute the "unshelve" command, "shelve_offload_instance" method executed. In that case, Nova Conductor raised errors belows.
2014-03-03 12:17:37 ERROR [nova.openstack.common.rpc.amqp] Exception during message handling
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/nova/openstack/common/rpc/amqp.py", line 461, in _process_data
**args)
File "/usr/local/lib/python2.7/dist-packages/nova/openstack/common/rpc/dispatcher.py", line 172, in dispatch
result = getattr(proxyobj, method)(ctxt, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/nova/conductor/manager.py", line 793, in unshelve_instance
if sys_meta['shelved_image_id'] is not None :
KeyError: 'shelved_image_id'
Here is my test step.
1. Instance create using bootable colume
==> nova boot --flavor 1 klee_test_autoha1 --block-device id=e9494670-fb19-48c7-9154-20b136ce6356,source=image,dest=volume,device=vda,bootindex=0,shutdown=remove,size=1
2. Execute shelve/unshelve command |
|