'status': 'creating',
'volume_type_id':
'abc1-2320-9013-8813-8941-1374-8112-1231,'
- '19fdd0dd-03b3-4d7c-b541-f4df46f308c8'}
+ '19fdd0dd-03b3-4d7c-b541-f4df46f308c8,'}
test_cgsnapshot = {
'consistencygroup_id': 'consistencygroup_id',
if group.get('volume_type_id') is not None:
for id in group['volume_type_id'].split(","):
- provisioning, tiering = self._get_extra_spec_value(
- volume_types.get_volume_type_extra_specs(id))
- if provisioning == 'compressed':
- msg = _("Failed to create consistency group %s "
- "because VNX consistency group cannot "
- "accept compressed LUNs as members.") % group['id']
- raise exception.VolumeBackendAPIException(data=msg)
+ if id:
+ provisioning, tiering = self._get_extra_spec_value(
+ volume_types.get_volume_type_extra_specs(id))
+ if provisioning == 'compressed':
+ msg = _("Failed to create consistency group %s "
+ "because VNX consistency group cannot "
+ "accept compressed LUNs as members."
+ ) % group['id']
+ raise exception.VolumeBackendAPIException(data=msg)
def create_consistencygroup(self, context, group):
"""Creates a consistency group."""