punchycode/nova — pull request #5 by alexpilotti (2012-06-09 23:24:11+00:00)
Title: Hyper-V snapshot support

Here's the workflow for the Nova Hyper-V snapshot implementation:

Take Hyper-V snapshot
Copy base VHD and instance diff VHD to a temp location
Reconnect the copied diff VHD to the copied base VHD
Merge the diff and base VHDs
Upload the merged disk to Glance
Remove Hyper-V instance snapshot
Delete temporary folder

Notes: the Glance Image client throws an error in my environment while updating the image:

2012-06-10 01:25:35 TRACE nova.rpc.amqp Invalid: Data supplied was not valid.
2012-06-10 01:25:35 TRACE nova.rpc.amqp Details: 400 Bad Request

It'd be great if somebody could test it in her/his environment and confirm.