Open apyrgio opened 9 years ago
Also, we can add a function in VolumeType
, e.g. is_detachable()
, that will return True or False, depending on the type.
The "detachable" capability can be returned like OpenStack returns it: http://developer.openstack.org/api-ref-blockstorage-v2.html
For the attach/detach functionality, we will need a way to mark some volume types (e.g. archipelago) as detachable. For the time being, this is being handled in the Cyclades settings with the parameter
CYCLADES_DETACHABLE_VOLUME_TYPES
. However, this should be an extra field in thevolume_type
table.