Snapshot capable volume driver interface.
Bases: cinder.interface.base.CinderInterface
Interface for drivers that support snapshots.
TODO(smcginnis) Merge into VolumeDriverBase once NFS driver supports snapshots.
Creates a snapshot.
Parameters: | snapshot – Information for the snapshot to be created. |
---|
Creates a volume from a snapshot.
If volume_type extra specs includes ‘replication: <is> True’ the driver needs to create a volume replica (secondary), and setup replication between the newly created volume and the secondary volume.
An optional larger size for the new snapshot can be specified. Drivers should check this value and create or expand the new volume to match.
Parameters: |
|
---|---|
Returns: | A dict of database updates for the new volume. |
Deletes a snapshot.
Parameters: | snapshot – The snapshot to delete. |
---|