'deleted': False,
'host': "host@backendsec#unit_test_pool",
'source_volid': None, 'provider_auth': None,
- 'display_name': 'vol-test02', 'instance_uuid': None,
+ 'display_name': 'vol-test02',
'attach_status': 'detached',
'volume_type': [],
- 'attached_host': None,
+ 'volume_attachment': [],
'provider_location':
'system^FNM11111|type^lun|id^1|version^05.03.00',
'_name_id': None, 'volume_metadata': []}
'system^FNM11111|type^lun|id^4',
'host': 'ubuntu-server12@array_backend_1',
'source_volid': None, 'provider_auth': None,
- 'display_name': 'vol-test02', 'instance_uuid': None,
+ 'display_name': 'vol-test02',
+ 'volume_attachment': [],
'attach_status': 'detached',
'volume_type': [],
'_name_id': None, 'volume_metadata': []}
'system^FNM11111|type^lun|id^5|version^05.02.00',
'host': 'ubuntu-server12@array_backend_1#unit_test_pool',
'source_volid': None, 'provider_auth': None,
- 'display_name': 'vol-test05', 'instance_uuid': None,
+ 'display_name': 'vol-test05',
+ 'volume_attachment': [],
'attach_status': 'detached',
'volume_type': [],
'_name_id': None, 'volume_metadata': []}
class EMCVnxCliBase(object):
"""This class defines the functions to use the native CLI functionality."""
- VERSION = '05.03.02'
+ VERSION = '05.03.03'
stats = {'driver_version': VERSION,
'storage_protocol': None,
'vendor_name': 'EMC',
self._client.expand_lun_and_wait(volume['name'], new_size)
def _get_original_status(self, volume):
- if (volume['instance_uuid'] is None and
- volume['attached_host'] is None):
+ if not volume['volume_attachment']:
return 'available'
else:
return 'in-use'