'Perform checks for Elasticsearch. Raises OpenShiftCheckExceptionList on any errors.'

def check_elasticsearch(self, es_pods):

    (running_pods, errors) = self.running_elasticsearch_pods(es_pods)
    pods_by_name = {pod['metadata']['name']: pod for pod in running_pods if pod['metadata'].get('labels', {}).get('deploymentconfig')}
    if (not pods_by_name):
        errors.append(OpenShiftCheckException('NoRunningPods', 'No    logging    Elasticsearch    pods    were    found    running,    so    no    logs    are    being    aggregated.'))
        raise OpenShiftCheckExceptionList(errors)
    errors += self.check_elasticsearch_masters(pods_by_name)
    errors += self.check_elasticsearch_node_list(pods_by_name)
    errors += self.check_es_cluster_health(pods_by_name)
    errors += self.check_elasticsearch_diskspace(pods_by_name)
    if errors:
        raise OpenShiftCheckExceptionList(errors)
