Uploaded image for project: 'Red Hat Developer Hub Bugs'
  1. Red Hat Developer Hub Bugs
  2. RHDHBUGS-2735

Orchestrator plugin: Logging For Workflows: Error accessing LokiStack Public Route

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • 1.9.1
    • 1.9.0
    • Orchestrator
    • 1
    • False
    • Hide

      None

      Show
      None
    • False
    • Hide
      = Orchestrator plugin fails to access the `LokiStack` on Openshift logging

      When you configure the `workflowProviders` section in the Orchestrator plugin to access the `LokiStack` on OpenShift logging by using both the Loki `baseUrl` and an authorization token, the backend plugin does not pass the token to the public route. As a result, the plugin UI displays a *failed to Fetch* message.

      .Configuration example
      [source,yaml,subs="+quotes"]
      ----
      orchestrator:
        workflowLogProvider:
          loki:
            baseUrl: <link to openshift logging loki public route>
            token: <auth token>
      ----
      Show
      = Orchestrator plugin fails to access the `LokiStack` on Openshift logging When you configure the `workflowProviders` section in the Orchestrator plugin to access the `LokiStack` on OpenShift logging by using both the Loki `baseUrl` and an authorization token, the backend plugin does not pass the token to the public route. As a result, the plugin UI displays a *failed to Fetch* message. .Configuration example [source,yaml,subs="+quotes"] ---- orchestrator:   workflowLogProvider:     loki:       baseUrl: <link to openshift logging loki public route>       token: <auth token> ----
    • Known Issue
    • Done
    • RHDH Plugins 3288
    • Critical

      Description of problem:

      The Openshift Logging LokiStack requires all traffic to go through the public route, which requires an authorization token in the header.

      The plugin currently does not send a token when accessing the Loki query endpoint, which results in the fetch to fail

      Prerequisites (if any, like setup, operators/versions):

      The setup was RHDH 1.9 using helm with orchestrator enabled and the loki backend plugin added.

      Openshift logging was also setup using the instructions here: https://docs.redhat.com/en/documentation/red_hat_openshift_logging/6.2/html/installing_logging/installing-logging#installing-loki-and-logging-gui_installing-logging

      Steps to Reproduce

       # <steps>

      Actual results:

      Expected results:

      Reproducibility (Always/Intermittent/Only Once):

      Build Details:

      Additional info (Such as Logs, Screenshots, etc):

              lholmqui@redhat.com Lucas Holmquist
              lholmqui@redhat.com Lucas Holmquist
              RHDH Plugins
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: