Bases: CinderPersistentObject
, CinderObject
, CinderObjectDictCompat
, ClusteredObject
Create a consistency group.
If cg_snap_id or cg_id are specified then volume_type_id, availability_zone, and host will be taken from the source Consistency Group.
Convert a generic volume group object to a cg object.
alias of ConsistencyGroup
Load an additional attribute from the real object.
This should load self.$attrname and cache any data that might be useful for future load operations.
Save the changed fields back to the store.
This is optional for subclasses, but is presented here in the base class for consistency among those that do.
Bases: ObjectListBase
, CinderObject
Include all consistency groups matching the filters into a cluster.
When partial_rename is set we will not set the cluster_name with cluster parameter value directly, we’ll replace provided cluster_name or host filter value with cluster instead.
This is useful when we want to replace just the cluster name but leave the backend and pool information as it is. If we are using cluster_name to filter, we’ll use that same DB field to replace the cluster value and leave the rest as it is. Likewise if we use the host to filter.
Returns the number of consistency groups that have been changed.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.