'Find an igroup for a LUN mapped to the given initiator(s).'

def _find_mapped_lun_igroup(self, path, initiator_list):

    initiator_igroups = self.zapi_client.get_igroup_by_initiators(initiator_list)
    lun_maps = self.zapi_client.get_lun_map(path)
    if (initiator_igroups and lun_maps):
        for igroup in initiator_igroups:
            igroup_name = igroup['initiator-group-name']
            if igroup_name.startswith(na_utils.OPENSTACK_PREFIX):
                for lun_map in lun_maps:
                    if (lun_map['initiator-group'] == igroup_name):
                        return (igroup_name, lun_map['lun-id'])
    return (None, None)
