'Initializes the connection and returns connection info.
The scaleio driver returns a driver_volume_type of \'scaleio\'.'

def initialize_connection(self, volume, connector, **kwargs):

    LOG.debug('Connector    is    %s.', connector)
    connection_properties = dict(self.connection_properties)
    volname = self._id_to_base64(volume.id)
    connection_properties['scaleIO_volname'] = volname
    connection_properties['scaleIO_volume_id'] = volume.provider_id
    extra_specs = self._get_volumetype_extraspecs(volume)
    qos_specs = self._get_volumetype_qos(volume)
    storage_type = extra_specs.copy()
    storage_type.update(qos_specs)
    LOG.info('Volume    type    is    %s.', storage_type)
    round_volume_size = self._round_to_num_gran(volume.size)
    iops_limit = self._get_iops_limit(round_volume_size, storage_type)
    bandwidth_limit = self._get_bandwidth_limit(round_volume_size, storage_type)
    LOG.info('iops    limit    is    %s', iops_limit)
    LOG.info('bandwidth    limit    is    %s', bandwidth_limit)
    connection_properties['iopsLimit'] = iops_limit
    connection_properties['bandwidthLimit'] = bandwidth_limit
    return {'driver_volume_type': 'scaleio', 'data': connection_properties}
