'Associate initiator with the host.'

def _associate_initiator_to_host(self, initiator_name, host_id):

    chapinfo = self.find_chap_info(self.iscsi_info, initiator_name)
    multipath_type = self._find_alua_info(self.iscsi_info, initiator_name)
    if chapinfo:
        LOG.info('Use    CHAP    when    adding    initiator    to    host.')
        self._use_chap(chapinfo, initiator_name, host_id)
    else:
        self._add_initiator_to_host(initiator_name, host_id)
    if multipath_type:
        LOG.info('Use    ALUA    when    adding    initiator    to    host.')
        self._use_alua(initiator_name, multipath_type)
