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

lokistack: Common users can not view their pods logs

XMLWordPrintable

    • False
    • None
    • False
    • NEW
    • OBSDA-7 - Adopting Loki as an alternative to Elasticsearch to support more lightweight, easier to manage/operate storage scenarios
    • VERIFIED
    • Hide

      1. Log in as common user
      2. Create projects and pods
      3. View logs using its token.

      Show
      1. Log in as common user 2. Create projects and pods 3. View logs using its token.
    • Logging (LogExp) - Sprint 216

      The common users can not view their pods logs via bearn-token.

      logcli -o raw --bearer-token="sha256~axjBF67iYjWHz-nkR-DKPmsEB6WYx0FuAXeCJh5zR4w" --addr="http://lokistack-sample-openshift-logging.apps.anli282.qe.devcluster.openshift.com/api/logs/v1/application" query '{kubernetes_pod_name="centos-logtest-p5mcg"}'
      2022-03-28 10:44:20.040242 I | proto: duplicate proto type registered: purgeplan.DeletePlan
      2022-03-28 10:44:20.040367 I | proto: duplicate proto type registered: purgeplan.ChunksGroup
      2022-03-28 10:44:20.040374 I | proto: duplicate proto type registered: purgeplan.ChunkDetails
      2022-03-28 10:44:20.040381 I | proto: duplicate proto type registered: purgeplan.Interval
      2022-03-28 10:44:20.060878 I | proto: duplicate proto type registered: grpc.PutChunksRequest
      2022-03-28 10:44:20.060914 I | proto: duplicate proto type registered: grpc.GetChunksRequest
      2022-03-28 10:44:20.060920 I | proto: duplicate proto type registered: grpc.GetChunksResponse
      2022-03-28 10:44:20.060927 I | proto: duplicate proto type registered: grpc.Chunk
      2022-03-28 10:44:20.060933 I | proto: duplicate proto type registered: grpc.ChunkID
      2022-03-28 10:44:20.060938 I | proto: duplicate proto type registered: grpc.DeleteTableRequest
      2022-03-28 10:44:20.060944 I | proto: duplicate proto type registered: grpc.DescribeTableRequest
      2022-03-28 10:44:20.060949 I | proto: duplicate proto type registered: grpc.WriteBatch
      2022-03-28 10:44:20.060954 I | proto: duplicate proto type registered: grpc.WriteIndexRequest
      2022-03-28 10:44:20.060959 I | proto: duplicate proto type registered: grpc.DeleteIndexRequest
      2022-03-28 10:44:20.060964 I | proto: duplicate proto type registered: grpc.QueryIndexResponse
      2022-03-28 10:44:20.060969 I | proto: duplicate proto type registered: grpc.Row
      2022-03-28 10:44:20.060974 I | proto: duplicate proto type registered: grpc.IndexEntry
      2022-03-28 10:44:20.060978 I | proto: duplicate proto type registered: grpc.QueryIndexRequest
      2022-03-28 10:44:20.060984 I | proto: duplicate proto type registered: grpc.UpdateTableRequest
      2022-03-28 10:44:20.060995 I | proto: duplicate proto type registered: grpc.DescribeTableResponse
      2022-03-28 10:44:20.061001 I | proto: duplicate proto type registered: grpc.CreateTableRequest
      2022-03-28 10:44:20.061007 I | proto: duplicate proto type registered: grpc.TableDesc
      2022-03-28 10:44:20.061016 I | proto: duplicate proto type registered: grpc.TableDesc.TagsEntry
      2022-03-28 10:44:20.061023 I | proto: duplicate proto type registered: grpc.ListTablesResponse
      2022-03-28 10:44:20.061032 I | proto: duplicate proto type registered: grpc.Labels
      2022-03-28 10:44:20.061538 I | proto: duplicate proto type registered: storage.Entry
      2022-03-28 10:44:20.061580 I | proto: duplicate proto type registered: storage.ReadBatch
      http://lokistack-sample-openshift-logging.apps.anli282.qe.devcluster.openshift.com/api/logs/v1/application/loki/api/v1/query_range?direction=BACKWARD&end=1648478660063412706&limit=30&query=%7Bkubernetes_pod_name%3D%22centos-logtest-p5mcg%22%7D&start=1648475060063412706
      Error response from server:  (<nil>) attempts remaining: 0
      Query failed: Run out of attempts while querying the server
      

              ptsiraki@redhat.com Periklis Tsirakidis
              rhn-support-anli Anping Li
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: