protocol = 'iSCSI'
else:
protocol = 'fibre_channel'
- exp_result = {}
exp_result = {'vendor_name': "X-IO",
'driver_version': "1.1.3",
'volume_backend_name': backend_name,
# Set up params with volume name, host name and target lun, if
# specified.
target_lun = lun
- params = {}
params = {'volumename': volume['name'],
'hostname': hostname}
# Fill in LUN if specified.
LOG.debug("Create host %(host)s; %(endpoint)s",
{'host': hostname, 'endpoint': endpoint_str})
# Issue REST call to create host entry of OpenStack type.
- params = {}
params = {'name': hostname, 'endpoint': endpoint_str,
'os': 'openstack'}
url = '/storage/arrays/%s/hosts' % (self._get_ise_globalid())
# count volumes
volumes = child.find('volumes')
if volumes is not None:
- for volume in volumes:
- vol_cnt += 1
+ vol_cnt += len(volumes)
return (pools, vol_cnt)
def _update_volume_stats(self):
self.driver.create_volume(volume)
# Volume created successfully. Fill in CHAP information.
model_update = {}
- chap = {}
chap = self.driver.find_target_chap()
if chap['chap_user'] != '':
model_update['provider_auth'] = 'CHAP %s %s' % \