'Returns: list of running pods, list of errors about non-running pods'

def running_elasticsearch_pods(self, es_pods):

    not_running = self.not_running_pods(es_pods)
    running_pods = [pod for pod in es_pods if (pod not in not_running)]
    if not_running:
        return (running_pods, [OpenShiftCheckException('PodNotRunning', 'The    following    Elasticsearch    pods    are    defined    but    not    running:\n{pods}'.format(pods=''.join(('        {}    ({})\n'.format(pod['metadata']['name'], pod['spec'].get('host', 'None')) for pod in not_running))))])
    return (running_pods, [])
