Merge uniforn-snapshot branch into trunk Closes #473
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/373059dc Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/373059dc Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/373059dc Branch: refs/heads/trunk Commit: 373059dc57ce98c03a325c34c7df4b60e1b77959 Parents: 659d64c ad31155 Author: Allard Hoeve <allardho...@gmail.com> Authored: Sat Mar 7 22:22:48 2015 +0100 Committer: Allard Hoeve <allardho...@gmail.com> Committed: Sat Mar 7 22:22:48 2015 +0100 ---------------------------------------------------------------------- CHANGES.rst | 6 ++++++ docs/upgrade_notes.rst | 5 +++++ libcloud/compute/base.py | 17 ++++++++++++++++- libcloud/compute/drivers/ec2.py | 4 +++- libcloud/compute/drivers/gce.py | 13 ++++++++++--- libcloud/compute/drivers/openstack.py | 9 ++++++++- libcloud/compute/drivers/rackspace.py | 8 +++++++- libcloud/test/compute/test_ec2.py | 3 +++ libcloud/test/compute/test_openstack.py | 6 ++++++ libcloud/test/compute/test_rackspace.py | 1 + 10 files changed, 65 insertions(+), 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/373059dc/CHANGES.rst ---------------------------------------------------------------------- diff --cc CHANGES.rst index b33aede,4725542..d6fd8d6 --- a/CHANGES.rst +++ b/CHANGES.rst @@@ -15,10 -15,11 +15,16 @@@ Genera Compute ~~~~~~~ +- Add support for creating volumes based on snapshots to EC2 and OS drivers. + Also modify signature of base NodeDriver.create_volume to reflect the fact + that all drivers expect a StorageSnapshot object as the snapshot argument. + (GITHUB-467, LIBCLOUD-672) ++ + - VolumeSnapshots now have a `created` attribute that is a `datetime` + field showing the creation datetime of the snapshot. The field in + VolumeSnapshot.extra containing the original string is maintained, so + this is a backwards-compatible change. + (GITHUB-473) [Allard Hoeve] - Improve GCE create_node, make sure ex_get_disktype function http://git-wip-us.apache.org/repos/asf/libcloud/blob/373059dc/docs/upgrade_notes.rst ---------------------------------------------------------------------- diff --cc docs/upgrade_notes.rst index 93a104d,bb33d61..1a29bc4 --- a/docs/upgrade_notes.rst +++ b/docs/upgrade_notes.rst @@@ -8,13 -8,12 +8,18 @@@ preserve the old behavior when this is Development ----------- +* The base signature of NodeDriver.create_volume has changed. The snapshot + argument is now expected to be a VolumeSnapshot instead of a string. + The older signature was never correct for built-in drivers, but custom + drivers may break. (GCE accepted strings, names or None and still does. + Other drivers did not implement creating volumes from snapshots at all + until now.) + + * VolumeSnapshots now have a `created` attribute that is a `datetime` + field showing the creation datetime of the snapshot. The field in + VolumeSnapshot.extra containing the original string is maintained, so + this is a backwards-compatible change. + - Libcloud 0.16.0 --------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/373059dc/libcloud/compute/base.py ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/373059dc/libcloud/compute/drivers/ec2.py ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/373059dc/libcloud/compute/drivers/openstack.py ----------------------------------------------------------------------