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

loki-operator-controller-manager" cannot list resource "poddisruptionbudgets" in API group "policy" at the cluster scope

XMLWordPrintable

    • False
    • None
    • False
    • NEW
    • NEW
    • Release Note Not Required

      Description of problem:

      lokistack can not be deployed. The loki-operator show error below.

      W0127 11:08:28.965196       1 reflector.go:547] pkg/mod/k8s.io/client-go@v0.30.5/tools/cache/reflector.go:232: failed to list *v1.PodDisruptionBudget: poddisruptionbudgets.policy is forbidden: User "system:serviceaccount:openshift-operators-redhat:loki-operator-controller-manager" cannot list resource "poddisruptionbudgets" in API group "policy" at the cluster scope
      E0127 11:08:28.965226       1 reflector.go:150] pkg/mod/k8s.io/client-go@v0.30.5/tools/cache/reflector.go:232: Failed to watch *v1.PodDisruptionBudget: failed to list *v1.PodDisruptionBudget: poddisruptionbudgets.policy is forbidden: User "system:serviceaccount:openshift-operators-redhat:loki-operator-controller-manager" cannot list resource "poddisruptionbudgets" in API group "policy" at the cluster scope
      

      Version-Release number of selected component (if applicable):

      openshift-logging/loki-rhel9-operator/images/v6.2.0-1
      "build-date": "2025-01-23T17:57:27",
      "io.openshift.build.commit.url": "https://github.com/openshift/loki/commit/4b32b54def942ff576a88868c6fe5cc8b98ace7f",

      openshift 4.16

      How reproducible:

      Always

      Steps to Reproduce:

      1. deploy lokistack 6.2
      *apiVersion: loki.grafana.com/v1
      kind: LokiStack
      metadata:
        creationTimestamp: "2025-01-27T11:06:35Z"
        generation: 1
        name: lokistack-sample
        namespace: openshift-logging
        resourceVersion: "45344"
        uid: 298988d0-42f2-4fac-a5ec-50f608e8e01c
      spec:
        managementState: Managed
        rules:
          enabled: true
          namespaceSelector:
            matchLabels:
              openshift.io/cluster-monitoring: "true"
          selector:
            matchLabels:
              openshift.io/cluster-monitoring: "true"
        size: 1x.demo
        storage:
          schemas:
          - effectiveDate: "2023-10-15"
            version: v13
         strong text secret:
            name: s3-secret
            type: s3
        storageClassName: gp3-csi
        tenants:
          mode: ostrong textpenshift-logging
      status:
        components: {}
        storage:
          schemas:
          - effectiveDate: "2023-10-15"
            version: v13
      

      *

      1. ...

      Actual results:

      Expected results:

      Additional info:

              Unassigned Unassigned
              rhn-support-anli Anping Li
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: