self._collection_name + '/detail')
def summary(self, request, volume):
- """Generic, non-detailed view of an volume."""
+ """Generic, non-detailed view of a volume."""
return {
'volume': {
'id': volume['id'],
def volume_update(context, volume_id, values):
- """Set the given properties on an volume and update it.
+ """Set the given properties on a volume and update it.
Raises NotFound if volume does not exist.
help='The scheduler host manager class to use'),
cfg.IntOpt('scheduler_max_attempts',
default=3,
- help='Maximum number of attempts to schedule an volume'),
+ help='Maximum number of attempts to schedule a volume'),
]
CONF = cfg.CONF
self.updated = capability['timestamp']
def consume_from_volume(self, volume):
- """Incrementally update host state from an volume."""
+ """Incrementally update host state from a volume."""
volume_gb = volume['size']
self.allocated_capacity_gb += volume_gb
self.provisioned_capacity_gb += volume_gb
def test_delete_with_no_encryption(self):
volume_type = self._default_volume_type
- # create an volume type
+ # create a volume type
db.volume_type_create(context.get_admin_context(), volume_type)
# without creating encryption type, try to delete
return (None, None, None)
def _get_children_info(self, volume, snap):
- """List children for the given snapshot of an volume(image).
+ """List children for the given snapshot of a volume(image).
Returns a list of (pool, image).
"""