Bug 1884950 - Prometheus Operator does not report status
Summary: Prometheus Operator does not report status
Keywords:
Status: ASSIGNED
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: ISV Operators
Version: 4.6
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: ---
Assignee: Melvin Hillsman
QA Contact: Bruno Andrade
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-10-03 21:16 UTC by Bruno Andrade
Modified: 2021-03-15 20:25 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:


Attachments (Terms of Use)

Description Bruno Andrade 2020-10-03 21:16:43 UTC
Description of problem:
After the operand is installed successfully, it does not update the status metadata. So the UI can't mark it as Ready.

oc get Prometheus example -o yaml
apiVersion: monitoring.coreos.com/v1
kind: Prometheus
metadata:
  selfLink: >-
    /apis/monitoring.coreos.com/v1/namespaces/test-operators/prometheuses/example
  resourceVersion: '73907'
  name: example
  uid: ad4059c3-acb7-4b4f-9e7a-9e8f34b3279f
  creationTimestamp: '2020-10-03T21:06:09Z'
  generation: 1
  managedFields:
    - apiVersion: monitoring.coreos.com/v1
      fieldsType: FieldsV1
      fieldsV1:
        'f:metadata':
          'f:labels':
            .: {}
            'f:prometheus': {}
        'f:spec':
          .: {}
          'f:alerting':
            .: {}
            'f:alertmanagers': {}
          'f:replicas': {}
          'f:ruleSelector': {}
          'f:securityContext': {}
          'f:serviceAccountName': {}
          'f:serviceMonitorSelector': {}
      manager: Mozilla
      operation: Update
      time: '2020-10-03T21:06:09Z'
  namespace: test-operators
  labels:
    prometheus: k8s
spec:
  alerting:
    alertmanagers:
      - name: alertmanager-main
        namespace: monitoring
        port: web
  replicas: 2
  ruleSelector: {}
  securityContext: {}
  serviceAccountName: prometheus-k8s
  serviceMonitorSelector: {}



Version-Release number of selected component (if applicable):
Prometheus 0.37
OCP 4.6

How reproducible:
Always

Steps to Reproduce:
1. Install the Operator
2. Create a Prometheus CR
3. Check CR yaml after the operand pods are ready

Actual results:
UI can't mark Prometheus CR objects as Ready

Expected results:
Prometheus should add it statement in operand objects

Additional info:


Note You need to log in before you can comment on or make changes to this bug.