'Get kibana route or report error.
Returns: url'

def _get_kibana_url(self):

    get_route = self.exec_oc('get    route    logging-kibana    -o    json', [])
    if (not get_route):
        raise OpenShiftCheckException('no_route_exists', 'No    route    is    defined    for    Kibana    in    the    logging    namespace,\nso    the    logging    stack    is    not    accessible.    Is    logging    deployed?\nDid    something    remove    the    logging-kibana    route?')
    try:
        route = json.loads(get_route)
        ingress = route['status']['ingress']
    except (ValueError, KeyError):
        raise OpenShiftCheckException('get_route_failed', ('"oc    get    route"    returned    an    unexpected    response:\n' + get_route))
    if ((not ingress) or (not ingress[0])):
        raise OpenShiftCheckException('route_not_accepted', 'The    logging-kibana    route    is    not    being    routed    by    any    router.\nIs    the    router    deployed    and    working?')
    host = route.get('spec', {}).get('host')
    if (not host):
        raise OpenShiftCheckException('route_missing_host', 'The    logging-kibana    route    has    no    hostname    defined,\nwhich    should    never    happen.    Did    something    alter    its    definition?')
    return 'https://{}/'.format(host)
