'Returns the initiator group of the initiator.'

def get_initiator_initiatorgroup(self, initiator):

    groups = []
    svc = '/api/san/v1/iscsi/initiator-groups'
    ret = self.rclient.get(svc)
    if (ret.status != restclient.Status.OK):
        msg = _('Error    getting    initiator    groups.')
        LOG.error(msg)
        raise exception.VolumeBackendAPIException(data=msg)
    val = json.loads(ret.data)
    for initiator_group in val['groups']:
        if (initiator in initiator_group['initiators']):
            groups.append(initiator_group['name'])
    return groups
