cinder/cinder/api/contrib
Xing Yang cf961f83ac Consistency Groups
This patch enables Consistency Groups support in Cinder.
It will be implemented for snapshots for CGs in phase 1.

Design
------------------------------------------------
The workflow is as follows:

1) Create a CG, specifying all volume types that can be supported by this
CG. The scheduler chooses a backend that supports all specified volume types.
The CG will be empty when it is first created.   Backend needs to report
consistencygroup_support = True.  Volume type can have the following in
extra specs: {'capabilities:consistencygroup_support': '<is> True'}.
If consistencygroup_support is not in volume type extra specs, it will be
added to filter_properties by the scheduler to make sure that the scheduler
will select the backend which reports consistency group support capability.

Create CG CLI:
cinder consisgroup-create --volume-type type1,type2 mycg1

This will add a CG entry in the new consistencygroups table.

2) After the CG is created, create a new volume and add to the CG.
Repeat until all volumes are created for the CG.

Create volume CLI (with CG):
cinder create --volume-type type1 --consisgroup-id <CG uuid> 10

This will add a consistencygroup_id foreign key in the new volume
entry in the db.

3) Create a snapshot of the CG (cgsnapshot).

Create cgsnapshot CLI:
cinder cgsnapshot-create <CG uuid>

This will add a cgsnapshot entry in the new cgsnapshots table, create
snapshot for each volume in the CG, and add a cgsnapshot_id foreign key
in each newly created snapshot entry in the db.

DocImpact
Implements: blueprint consistency-groups

Change-Id: Ic105698aaad86ee30ef57ecf5107c224fdadf724
2014-08-27 01:47:31 -04:00
..
__init__.py Remove vim header 2013-12-30 18:53:02 -06:00
admin_actions.py Use oslo.i18n 2014-08-08 17:26:41 -05:00
availability_zones.py Fix and enable gating on H402 2013-12-14 12:34:24 +01:00
backups.py Use oslo.i18n 2014-08-08 17:26:41 -05:00
cgsnapshots.py Consistency Groups 2014-08-27 01:47:31 -04:00
consistencygroups.py Consistency Groups 2014-08-27 01:47:31 -04:00
extended_services.py Give a way to save why a service has been disabled 2014-02-22 05:50:17 -05:00
extended_snapshot_attributes.py Cache snapshots in request for extension 2014-08-19 19:36:17 -07:00
hosts.py Enable import group hacking rule 2014-08-14 13:10:58 +08:00
image_create.py Remove vim header 2013-12-30 18:53:02 -06:00
qos_specs_manage.py Use oslo.i18n 2014-08-08 17:26:41 -05:00
quota_classes.py Use oslo.i18n 2014-08-08 17:26:41 -05:00
quotas.py Use oslo.i18n 2014-08-08 17:26:41 -05:00
scheduler_hints.py Use oslo.i18n 2014-08-08 17:26:41 -05:00
services.py Use oslo.i18n 2014-08-08 17:26:41 -05:00
snapshot_actions.py Use oslo.i18n 2014-08-08 17:26:41 -05:00
types_extra_specs.py Use oslo.i18n 2014-08-08 17:26:41 -05:00
types_manage.py Use oslo.i18n 2014-08-08 17:26:41 -05:00
used_limits.py Enable F402 checks and fix violations 2014-08-13 22:01:05 +05:30
volume_actions.py Enable import group hacking rule 2014-08-14 13:10:58 +08:00
volume_encryption_metadata.py Remove vim header 2013-12-30 18:53:02 -06:00
volume_host_attribute.py Enable F402 checks and fix violations 2014-08-13 22:01:05 +05:30
volume_image_metadata.py Enable F402 checks and fix violations 2014-08-13 22:01:05 +05:30
volume_manage.py Use oslo.i18n 2014-08-08 17:26:41 -05:00
volume_mig_status_attribute.py Enable F402 checks and fix violations 2014-08-13 22:01:05 +05:30
volume_replication.py Add support in Cinder for volume replication - driver approach 2014-08-23 15:53:55 +00:00
volume_tenant_attribute.py Enable F402 checks and fix violations 2014-08-13 22:01:05 +05:30
volume_transfer.py Enable import group hacking rule 2014-08-14 13:10:58 +08:00
volume_type_encryption.py Use oslo.i18n 2014-08-08 17:26:41 -05:00
volume_unmanage.py Use oslo.i18n 2014-08-08 17:26:41 -05:00