cinder.interface.volume_snapshot_revert module

cinder.interface.volume_snapshot_revert module

Revert to snapshot capable volume driver interface.

class VolumeSnapshotRevertDriver

Bases: cinder.interface.base.CinderInterface

Interface for drivers that support revert to snapshot.

revert_to_snapshot(context, volume, snapshot)

Revert volume to snapshot.

Note: the revert process should not change the volume’s current size, that means if the driver shrank the volume during the process, it should extend the volume internally.

Parameters:
  • context – the context of the caller.
  • volume – The volume to be reverted.
  • snapshot – The snapshot used for reverting.
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.