~morita-kazutaka/nova/sheepdog

Viewing all changes in revision 505.

This patch is beginning of XenServer snapshots in nova. It adds:

1. A snapshot() method to the compute API
2. Snapshot to the compute drivers(), stubs for libvirt and fake, and an implementation for xenapi_conn.
3. A `glance` XenServer plugin (modeled after the current `objectstore` plugin).

To test functionally you will need to be running both the Glance API and the Glance Registry.

In order to use the cloudservers tool-chain (cloudservers command-line utility, openstack-api, etc), you will need create a project called 'openstack' or override FLAGS.default_project.

You can verify that snapshots work by using the cloudservers command-line utility to run:
    cloudservers image-create <instance-id> <my snapshot name>

The utility itself will generate an exception since we're not returning the appropriate metadata yet (that will be a future commit); however, you can confirm that the snapshot worked by checking the compute-service logs, and verifying the snapshot resides in the glance fs-store directory.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: