'Removes the host access from `volume`.
:param volume: `common.Volume` object with volume information.
:param host: `common.Host` object with host information.
:param sg: object of `storops` storage group.'

def remove_host_access(self, volume, host, sg):

    lun = self.client.get_lun(lun_id=volume.vnx_lun_id)
    hostname = host.name
    if (not sg.existed):
        LOG.warning('Storage    Group    %s    is    not    found.    Nothing    can    be    done    in    terminate_connection().', hostname)
    else:
        try:
            sg.detach_alu(lun)
        except storops_ex.VNXDetachAluNotFoundError:
            LOG.warning('Volume    %(vol)s    is    not    in    Storage    Group    %(sg)s.', {'vol': volume.name, 'sg': hostname})
