'Driver entry point to unattach a volume from an instance.
Unmask the LUN on the storage system so the given initiator can no
longer access it.'

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

    initiator_name = connector['initiator']
    name = volume['name']
    metadata = self._get_lun_attr(name, 'metadata')
    path = metadata['Path']
    self._unmap_lun(path, [initiator_name])
    LOG.debug('Unmapped    LUN    %(name)s    from    the    initiator    %(initiator_name)s', {'name': name, 'initiator_name': initiator_name})
