Uploaded image for project: 'CPE Infrastructure'
  1. CPE Infrastructure
  2. CPE-3410

Creating a prometheus resource in cloud-softwarefactory namespace hangs

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • None
    • Testable

      https://pagure.io/centos-infra/issue/1619

      Hello,

      Following https://pagure.io/centos-infra/issue/1604 our service account should be allowed to create a Prometheus resource in our namespace.

      Attempting to create such a resource ends up hanging:

      ```shell
      kubectl describe prometheus/prometheus
      Name: prometheus
      Namespace: cloud-softwarefactory
      Labels: app=observability-stack
      run=prometheus
      Annotations: <none>
      API Version: monitoring.coreos.com/v1
      Kind: Prometheus
      Metadata:
      Creation Timestamp: 2025-03-13T16:04:30Z
      Generation: 1
      Resource Version: 425407538
      UID: 6b09a3f5-c7d8-43f7-9f55-54a08759eba2
      Spec:
      Config Maps:
      prometheus-extra-scrapeconfig
      Enable Admin API: false
      Evaluation Interval: 30s
      External Labels:
      Softwarefactory: centosinfra-prod
      Pod Monitor Namespace Selector:
      Pod Monitor Selector:
      Match Expressions:
      Key: sf-monitoring
      Operator: Exists
      Port Name: web
      Resources:
      Requests:
      Memory: 400Mi
      Rule Namespace Selector:
      Rule Selector:
      Match Expressions:
      Key: sf-monitoring
      Operator: Exists
      Rules:
      Alert:
      Scrape Interval: 30s
      Service Account Name: sf-service-account
      Service Monitor Namespace Selector:
      Service Monitor Selector:
      Match Expressions:
      Key: sf-monitoring
      Operator: Exists
      Events: <none>
      ```

      No events are logged for the resource; I'd expect at least one pod running a prometheus container shoud be up. Could you check the prometheus operator's logs and see if any error message appears related to this resource?

      Thanks!

              gsutclif Greg Sutcliffe
              rh-ee-mkonecny Michal Konecny
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: