'Check to see if Kibana is up and working. Raises OpenShiftCheckException if not.'

def check_kibana(self, pods):

    if (not pods):
        raise OpenShiftCheckException('MissingComponentPods', 'There    are    no    Kibana    pods    deployed,    so    no    access    to    the    logging    UI.')
    not_running = self.not_running_pods(pods)
    if (len(not_running) == len(pods)):
        raise OpenShiftCheckException('NoRunningPods', 'No    Kibana    pod    is    in    a    running    state,    so    there    is    no    access    to    the    logging    UI.')
    elif not_running:
        raise OpenShiftCheckException('PodNotRunning', 'The    following    Kibana    pods    are    not    currently    in    a    running    state:\n        {pods}\nHowever    at    least    one    is,    so    service    may    not    be    impacted.'.format(pods='\n        '.join((pod['metadata']['name'] for pod in not_running))))
