Bug 2060083
| Summary: | CMO doesn't react to changes in clusteroperator console | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | aaleman |
| Component: | Monitoring | Assignee: | Simon Pasquier <spasquie> |
| Status: | CLOSED ERRATA | QA Contact: | Junqi Zhao <juzhao> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 4.10 | CC: | amuller, anpicker, aos-bugs, hongyli |
| Target Milestone: | --- | ||
| Target Release: | 4.11.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | No Doc Update | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-08-10 10:51:53 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 2062441, 2062452 | ||
|
Description
aaleman
2022-03-02 16:49:46 UTC
tested with 4.11.0-0.nightly-2022-03-13-055724, CMO reacts to changes in clusteroperator console
before seeting status.consoleURL to null for console/cluster
# oc get console/cluster -o jsonpath="{.status.consoleURL}"
https://console-openshift-console.apps.qe-ui411-0314.qe.devcluster.openshift.com
# oc -n openshift-monitoring get pod | grep -E "alertmanager-main|prometheus-k8s|cluster-monitoring-operator"
alertmanager-main-0 6/6 Running 0 6h50m
alertmanager-main-1 6/6 Running 0 6h51m
cluster-monitoring-operator-84cd5d7c7-8rrmd 2/2 Running 0 7h10m
prometheus-k8s-0 6/6 Running 0 6h50m
prometheus-k8s-1 6/6 Running 0 6h51m
# oc -n openshift-monitoring get sts alertmanager-main -oyaml | grep "web.external-url"
- --web.external-url=https:/console-openshift-console.apps.qe-ui411-0314.qe.devcluster.openshift.com/monitoring
# oc -n openshift-monitoring get sts prometheus-k8s -oyaml | grep "web.external-url"
- --web.external-url=https:/console-openshift-console.apps.qe-ui411-0314.qe.devcluster.openshift.com/monitoring
# oc -n openshift-monitoring get pod alertmanager-main-0 -oyaml | grep "web.external-url"
- --web.external-url=https:/console-openshift-console.apps.qe-ui411-0314.qe.devcluster.openshift.com/monitoring
# oc -n openshift-monitoring get pod alertmanager-main-1 -oyaml | grep "web.external-url"
- --web.external-url=https:/console-openshift-console.apps.qe-ui411-0314.qe.devcluster.openshift.com/monitoring
# oc -n openshift-monitoring get pod prometheus-k8s-0 -oyaml | grep "web.external-url"
- --web.external-url=https:/console-openshift-console.apps.qe-ui411-0314.qe.devcluster.openshift.com/monitoring
# oc -n openshift-monitoring get pod prometheus-k8s-1 -oyaml | grep "web.external-url"
- --web.external-url=https:/console-openshift-console.apps.qe-ui411-0314.qe.devcluster.openshift.com/monitoring
scale down CVO/console-operator
# oc -n openshift-cluster-version scale deploy cluster-version-operator --replicas=0
# oc -n openshift-console-operator scale deploy console-operator --replicas=0
# oc proxy
open another teminal
# curl -v -XPATCH -H "Accept: application/json" -H "Content-Type: application/merge-patch+json" -H "User-Agent: kubectl/v1.23.4 (linux/amd64) kubernetes/e6c093d" 'http://127.0.0.1:8001/apis/config.openshift.io/v1/consoles/cluster/status?fieldManager=kubectl-edit' --data '{"status":null}'
# oc get console/cluster -o jsonpath="{.status.consoleURL}"
no result
wait for all the pods are Running, The Alertmanager and Prometheus statefulset get updated
# oc -n openshift-monitoring get pod | grep -E "alertmanager-main|prometheus-k8s|cluster-monitoring-operator"
alertmanager-main-0 6/6 Running 0 58s
alertmanager-main-1 6/6 Running 0 90s
cluster-monitoring-operator-84cd5d7c7-8rrmd 2/2 Running 0 7h27m
prometheus-k8s-0 6/6 Running 0 69s
prometheus-k8s-1 6/6 Running 0 86s
# oc -n openshift-monitoring get sts alertmanager-main -oyaml | grep "web.external-url"
no result
# oc -n openshift-monitoring get sts prometheus-k8s -oyaml | grep "web.external-url"
- --web.external-url=https://prometheus-k8s.openshift-monitoring.svc:9091
# oc -n openshift-monitoring get pod alertmanager-main-0 -oyaml | grep "web.external-url"
no result
# oc -n openshift-monitoring get pod alertmanager-main-1 -oyaml | grep "web.external-url"
no result
# oc -n openshift-monitoring get pod prometheus-k8s-0 -oyaml | grep "web.external-url"
- --web.external-url=https://prometheus-k8s.openshift-monitoring.svc:9091
# oc -n openshift-monitoring get pod prometheus-k8s-1 -oyaml | grep "web.external-url"
- --web.external-url=https://prometheus-k8s.openshift-monitoring.svc:9091
restore cluster
# oc -n openshift-cluster-version scale deploy cluster-version-operator --replicas=1
# oc -n openshift-console-operator scale deploy console-operator --replicas=1
wait for a while, The Alertmanager and Prometheus statefulset get updated
# oc get console/cluster -o jsonpath="{.status.consoleURL}"
https://console-openshift-console.apps.qe-ui411-0314.qe.devcluster.openshift.com
# oc -n openshift-monitoring get pod | grep -E "alertmanager-main|prometheus-k8s|cluster-monitoring-operator"
alertmanager-main-0 6/6 Running 0 86s
alertmanager-main-1 6/6 Running 0 118s
cluster-monitoring-operator-84cd5d7c7-8rrmd 2/2 Running 0 7h35m
prometheus-k8s-0 6/6 Running 0 97s
prometheus-k8s-1 6/6 Running 0 114s
# oc -n openshift-monitoring get sts alertmanager-main -oyaml | grep "web.external-url"
- --web.external-url=https:/console-openshift-console.apps.qe-ui411-0314.qe.devcluster.openshift.com/monitoring
# oc -n openshift-monitoring get sts prometheus-k8s -oyaml | grep "web.external-url"
- --web.external-url=https:/console-openshift-console.apps.qe-ui411-0314.qe.devcluster.openshift.com/monitoring
# oc -n openshift-monitoring get pod alertmanager-main-0 -oyaml | grep "web.external-url"
- --web.external-url=https:/console-openshift-console.apps.qe-ui411-0314.qe.devcluster.openshift.com/monitoring
# oc -n openshift-monitoring get pod alertmanager-main-1 -oyaml | grep "web.external-url"
- --web.external-url=https:/console-openshift-console.apps.qe-ui411-0314.qe.devcluster.openshift.com/monitoring
# oc -n openshift-monitoring get pod prometheus-k8s-0 -oyaml | grep "web.external-url"
- --web.external-url=https:/console-openshift-console.apps.qe-ui411-0314.qe.devcluster.openshift.com/monitoring
# oc -n openshift-monitoring get pod prometheus-k8s-1 -oyaml | grep "web.external-url"
- --web.external-url=https:/console-openshift-console.apps.qe-ui411-0314.qe.devcluster.openshift.com/monitoring
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Important: OpenShift Container Platform 4.11.0 bug fix and security update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2022:5069 |