The QoS Specs Implementation
Associate qos_specs with volume type.
Associate target qos specs with specific volume type. Would raise following exceptions:
VolumeTypeNotFound - if volume type doesn’t exist; QoSSpecsNotFound - if qos specs doesn’t exist; InvalidVolumeType - if volume type is already associated with
qos specs other than given one.QoSSpecsAssociateFailed - if there was general DB error
Parameters: |
|
---|
Creates qos_specs.
Marks qos specs as deleted.
‘force’ parameter is a flag to determine whether should destroy should continue when there were entities associated with the qos specs. force=True indicates caller would like to mark qos specs as deleted even if there was entities associate with target qos specs. Trying to delete a qos specs still associated with entities will cause QoSSpecsInUse exception if force=False (default).
Marks specified key of target qos specs as deleted.
Disassociate qos_specs from all entities.
Disassociate qos_specs from volume type.
Get all non-deleted qos specs.
Get all associations of given qos specs.
Retrieves single qos specs by id.
Retrieves single qos specs by name.
Update qos specs.
:param specs dictionary that contains key/value pairs for updating existing specs.
- e.g. {‘consumer’: ‘front-end’,
- ‘total_iops_sec’: 500, ‘total_bytes_sec’: 512000,}