Uploaded image for project: 'OpenShift Logging'
  1. OpenShift Logging
  2. LOG-2383

The lokistack still bind s3 when secret.type is azure

    XMLWordPrintable

Details

    • False
    • None
    • False
    • NEW
    • OBSDA-7 - Adopting Loki as an alternative to Elasticsearch to support more lightweight, easier to manage/operate storage scenarios
    • VERIFIED
    • Logging (LogExp) - Sprint 216

    Description

      The lokistack-sample-ingester try to connect to S3 when secret.type=azure.

      Step to Reproduce:
      1. Deploy Loki-operators
      2. Create azure secret.

      {
          "apiVersion": "v1",
          "data": {
              "account_key": "example",
              "account_name": "example",
              "container": "example",
              "environment": "QXp1cmVHbG9iYWw="
          },
          "kind": "Secret",
          "metadata": {
              "creationTimestamp": "2022-03-17T06:47:52Z",
              "name": "azure-secret",
              "namespace": "openshift-logging",
              "resourceVersion": "157804",
              "uid": "99d1afda-0dee-4b98-b60d-758b84b57de3"
          },
          "type": "Opaque"
      }
      
      

      3. create lokistack resource.

      {
          "apiVersion": "loki.grafana.com/v1beta1",
          "kind": "LokiStack",
          "metadata": {
              "name": "lokistack-sample"
          },
          "spec": {
              "managementState": "Managed",
              "replicationFactor": 2,
              "size": "1x.extra-small",
              "storage": {
                  "secret": {
                      "name": "azure-secret",
                      "type": "azure"
                  }
              },
              "storageClassName": "managed-premium",
              "tenants": {
                  "mode": "openshift-logging"
              }
          }
      }
      

      Actual Result
      $ oc logs lokistack-sample-ingester-0
      Logs: http://pastebin.test.redhat.com/1037927

      Attachments

        Issue Links

          Activity

            People

              gvanloo Gerard Vanloo (Inactive)
              rhn-support-anli Anping Li
              Anping Li Anping Li
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: