Bug 1590748
| Summary: | Metrics pods are deployed to openshift-metrics project instead of openshift-infra | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Weinan Liu <weinliu> |
| Component: | Hawkular | Assignee: | Ruben Vargas Palma <rvargasp> |
| Status: | CLOSED ERRATA | QA Contact: | Junqi Zhao <juzhao> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 3.10.0 | CC: | anli, aos-bugs, decarr, jforrest, jokerman, jsanda, mifiedle, mmccomas, rvargasp, wsun |
| Target Milestone: | --- | Keywords: | TestBlocker |
| Target Release: | 3.10.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-11-26 16:09:30 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: | 1570583 | ||
| Bug Blocks: | |||
|
Description
Weinan Liu
2018-06-13 10:21:56 UTC
What am I supposed to do with this. As discussed in bug 1570583, metrics can no longer be deployed in openshift-infra. Before we move metrics to different namespace we need change some component(like hpa, not sure if console get metrics from openshift-infra too) first which depends on metrics. Also we need verify if it can work well for upgrade or not. Heapster has to be deployed into openshift-infra (at least, at the moment). When we switch to metrics-server, that won't be the case any more. For the mean time, we'd have to change where the HPA controller looked for Heapster, but that would cause HPA outages during upgrade. For the console it shouldn't matter what namespace its in, its just a URL that gets dumped into the console's config. Make sure you separately accepted the cert in the browser for the hawkular URL. cassandra is still deployed to the namespace of openshift-metrics on openshift v3.10.2 [root@qe-weinliu-310-2-master-etcd-1 ~]# oc get pod -n openshift-metrics NAME READY STATUS RESTARTS AGE hawkular-cassandra-1-4jvx4 1/1 Running 0 4m hawkular-metrics-4bfld 1/1 Running 0 4m hawkular-metrics-schema-l58g6 0/1 Completed 0 5m heapster-wfbpp 1/1 Running 0 4m [root@qe-weinliu-310-2-master-etcd-1 ~]# oc version oc v3.10.2 kubernetes v1.10.0+b81c8f8 features: Basic-Auth GSSAPI Kerberos SPNEGO Server https://qe-weinliu-310-2-master-etcd-1:8443 openshift v3.10.2 kubernetes v1.10.0+b81c8f8 Verified to be fixed on branch below
$ git checkout openshift-ansible-3.10.2-1
$ git branch
* (HEAD detached at openshift-ansible-3.10.2-1)
master
release-3.9
$git log
<...snip...>
[root@qe-weinliu-310-2-master-etcd-1 ~]# oc get pod -n openshift-infra
NAME READY STATUS RESTARTS AGE
hawkular-cassandra-1-hc42l 1/1 Running 0 2m
hawkular-metrics-lmg25 1/1 Running 0 2m
hawkular-metrics-schema-j98qv 0/1 Completed 0 3m
heapster-27cpd 1/1 Running 0 2m
commit eb744428280460b8b5ca5a80625aba03e14baf21
Merge: 4f45f04 3817da3
Author: Scott Dodson <sdodson>
Date: Wed Jun 20 08:37:37 2018 -0400
Merge pull request #8861 from openshift-cherrypick-robot/cherry-pick-8850-to-release-3.10
...skipping...
Revert "Migrate hawkular metrics to a new namespace"
This reverts commit 125d8f3d922bae71482f317d3664a52595c53ec0.
<...snip...>
@jsanda. @jliggitt A following question, What shall we do during OCP upgrading (from v3.9 to v3.10)? Options A: deploy v3.10 metrics on OCP v3.9 prior OCP Upgrade. Options B: Provide document/scripts to fix the Permssion issue prior OCP upgraded. and then deploy metrics v3.10 once OCP was upgraded. Options C: Warning the Gap, and ask Customer to redeploy metrics immediately once OCP was updated. Options A: failed with the following errors.
We could not deploy v3.10 metrics on v3.9.
TASK [openshift_version : assert openshift_release in openshift_image_tag] *****
Monday 09 July 2018 05:30:05 +0000 (0:00:00.057) 0:00:25.980 ***********
fatal: [qe-anlimaster-etcd-1.0709-rwi.qe.rhcloud.com]: FAILED! => {
"assertion": "openshift_release in openshift_image_tag",
"changed": false,
"evaluated_to": false,
"failed": true,
"msg": "openshift_image_tag must match same major version as openshift_release. You provided: 3.10 and v3.9.31\n"
}
I will open a doc bug to guide user during upgrade. So close session here.
This bug was fixed in openshift-ansible-3.10.2 |