OpenStack Compute (Nova)

Comment 4 for bug 750544

Tushar Patil (tpatil) wrote :

Yes, you are correct when I tested this for the first time, I was on glance revision no 96.

Now using glance revision 100, while taking snapshot of vm instance still it is failing. But this time, I am getting errors in nova-compute.log

nova-compute.log
-------------------------
2011-04-04 13:38:34,319 DEBUG nova.rpc [-] received {'_context_request_id': '71SDHCE6PD4MR32SESX3', '_context_read_deleted': False, 'args': {'instance_id': 65, 'image_id': 19}, '_context_is_admin': True, '_context_timestamp': '2011-04-04T20:38:05Z', '_context_user': 'admin', 'method': 'snapshot_instance', '_context_project': 'admin', '_context_remote_address': None} from (pid=22359) _receive /home/tpatil/nova/nova/rpc.py:167
2011-04-04 13:38:34,320 DEBUG nova.rpc [-] unpacked context: {'timestamp': '2011-04-04T20:38:05Z', 'remote_address': None, 'project': 'admin', 'is_admin': True, 'user': 'admin', 'request_id': '71SDHCE6PD4MR32SESX3', 'read_deleted': False} from (pid=22359) _unpack_context /home/tpatil/nova/nova/rpc.py:331
2011-04-04 13:38:34,568 AUDIT nova.compute.manager [71SDHCE6PD4MR32SESX3 admin admin] instance 65: snapshotting
2011-04-04 13:38:34,582 ERROR nova.exception [-] Uncaught exception
(nova.exception): TRACE: Traceback (most recent call last):
(nova.exception): TRACE: File "/home/tpatil/nova/nova/exception.py", line 120, in _wrap
(nova.exception): TRACE: return f(*args, **kw)
(nova.exception): TRACE: File "/home/tpatil/nova/nova/virt/libvirt_conn.py", line 423, in snapshot
(nova.exception): TRACE: metadata = {'disk_format': base['disk_format'],
(nova.exception): TRACE: KeyError: 'disk_format'
(nova.exception): TRACE:
2011-04-04 13:38:34,583 ERROR nova [-] Exception during message handling
(nova): TRACE: Traceback (most recent call last):
(nova): TRACE: File "/home/tpatil/nova/nova/rpc.py", line 188, in _receive
(nova): TRACE: rval = node_func(context=ctxt, **node_args)
(nova): TRACE: File "/home/tpatil/nova/nova/exception.py", line 120, in _wrap
(nova): TRACE: return f(*args, **kw)
(nova): TRACE: File "/home/tpatil/nova/nova/compute/manager.py", line 342, in snapshot_instance
(nova): TRACE: self.driver.snapshot(instance_ref, image_id)
(nova): TRACE: File "/home/tpatil/nova/nova/exception.py", line 126, in _wrap
(nova): TRACE: raise Error(str(e))
(nova): TRACE: Error: 'disk_format'
(nova): TRACE:

In my case while registering the disk-image using glance-upload I didn't specified disk_format so it is None. will this cause this problem?

I will register new images using nova-manage and try to reproduce this problem.