New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OTA-1160: pkg/cvo/reconciliation_issues: Publish ClusterOperator transitionStart #1044
OTA-1160: pkg/cvo/reconciliation_issues: Publish ClusterOperator transitionStart #1044
Conversation
@wking: This pull request references OTA-1160 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.16.0" version, but no target version was set. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
Allow ClusterVersion status consumers to make their own decisions about how long to wait before complaining about a slow-to-update ClusterOperator.
c35fe06
to
a804d97
Compare
Testing in Cluster Bot via $ oc adm upgrade --force --allow-explicit-upgrade --to-image quay.io/openshift-release-dev/ocp-release@sha256:f5c9cf5a461434e775af2b946fc2a8aee7240f5b05d4141a588e527adcad7af9 Maybe I didn't need to $ oc adm upgrade
info: An upgrade is in progress. Working towards 4.16.0-ec.5: 113 of 952 done (11% complete), waiting on kube-apiserver
... Then I turned around and went back to my original release images (I had to $ oc adm upgrade --force --allow-upgrade-with-warnings --allow-explicit-upgrade --to-image registry.build03.ci.openshift.org/ci-ln-cm7dfnt/release@sha256:370d219ae7612d27ac08ab6de38e452c71bb4f770c692577fdd4493242ff3efd And shortly after, here's the CVO waiting on $ date --utc --iso=m
2024-04-25T04:50+00:00
$ oc get -o json clusterversion version | jq -r '.status.conditions[] | select(.type == "ReconciliationIssues") | .message | fromjson'
{
"message": "Cluster operators etcd, kube-apiserver are updating versions",
"children": [
{
"message": "[Cluster operator etcd is updating versions, Cluster operator kube-apiserver is updating versions]",
"children": [
{
"message": "Cluster operator etcd is updating versions",
"children": [
{
"message": "cluster operator etcd is available and not degraded but has not finished updating to target version"
}
],
"effect": "None",
"manifest": {
"originalFilename": "0000_20_etcd-operator_07_clusteroperator.yaml",
"group": "config.openshift.io",
"kind": "ClusterOperator",
"name": "etcd"
},
"transitionStart": "2024-04-25T04:50:25.572524285Z"
},
{
"message": "Cluster operator kube-apiserver is updating versions",
"children": [
{
"message": "cluster operator kube-apiserver is available and not degraded but has not finished updating to target version"
}
],
"effect": "None",
"manifest": {
"originalFilename": "0000_20_kube-apiserver-operator_07_clusteroperator.yaml",
"group": "config.openshift.io",
"kind": "ClusterOperator",
"name": "kube-apiserver"
},
"transitionStart": "2024-04-25T04:50:25.572311511Z"
}
]
}
],
"effect": "None"
} And a bit later, when $ oc get -o json clusterversion version | jq -r '.status.conditions[] | select(.type == "ReconciliationIssues") | .message | fromjson'
{
"message": "Cluster operator etcd is updating versions",
"children": [
{
"message": "cluster operator etcd is available and not degraded but has not finished updating to target version"
}
],
"effect": "None",
"manifest": {
"originalFilename": "0000_20_etcd-operator_07_clusteroperator.yaml",
"group": "config.openshift.io",
"kind": "ClusterOperator",
"name": "etcd"
},
"transitionStart": "2024-04-25T04:50:25.572524285Z"
} |
We're definitely not breaking Hypershift with this feature-gated change |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: petr-muller, wking The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@petr-muller: Overrode contexts on behalf of petr-muller: ci/prow/e2e-hypershift, ci/prow/e2e-hypershift-conformance In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Waiving pre-merge QE for this tech-preview, currently unconsumed content. /label no-qe |
/retest-required |
not sure what's up with HyperShift, but that job won't care about this tech-preview property. /retest-required |
well, /retest-required |
wait, I'm a root approver for this repo 🤦 : /override ci/prow/e2e-hypershift |
@wking: Overrode contexts on behalf of wking: ci/prow/e2e-hypershift In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@wking: all tests passed! Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
[ART PR BUILD NOTIFIER] This PR has been included in build cluster-version-operator-container-v4.16.0-202404251943.p0.g0b3f507.assembly.stream.el9 for distgit cluster-version-operator. |
Allow ClusterVersion
status
consumers to make their own decisions about how long to wait before complaining about a slow-to-update ClusterOperator.