Bug 2108292
| Summary: | ClusterVersion history pruner does not always retain initial completed update entry | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | OpenShift BugZilla Robot <openshift-bugzilla-robot> |
| Component: | Cluster Version Operator | Assignee: | Jack Ottofaro <jack.ottofaro> |
| Status: | CLOSED ERRATA | QA Contact: | Evgeni Vakhonin <evakhoni> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 4.11 | CC: | aos-team-ota, wking |
| Target Milestone: | --- | Keywords: | FastFix |
| Target Release: | 4.10.z | ||
| 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: | 2022-07-25 07:07:09 UTC | Type: | --- |
| 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: | 2097067 | ||
| Bug Blocks: | 2108619 | ||
|
Comment 1
Evgeni Vakhonin
2022-07-19 13:05:31 UTC
pre-merge verifying on 4.10.0-0.ci.test-2022-07-19-105113-ci-ln-5n5dggk-latest to 4.10.0-0.ci.test-2022-07-19-122259-ci-ln-y45rpz2-latest
captured 3 last history entries for better visibility
history length at 50, before prune:
$ oc get clusterversion version -o json | jq '.status.history|length'
50
$ oc get clusterversion version -o json | jq '.status.history[-3:]'
[
{
"completionTime": "2022-07-19T15:20:15Z",
"image": "registry.build05.ci.openshift.org/ci-ln-5n5dggk/release@sha256:f47b974f718ccde37811bd6c707dca1d35020cb335d
bbbf9d5fadfbee50db0a4",
"startedTime": "2022-07-19T15:19:25Z",
"state": "Completed",
"verified": false,
"version": "4.10.0-0.ci.test-2022-07-19-105113-ci-ln-5n5dggk-latest"
},
{
"completionTime": "2022-07-19T15:19:25Z",
"image": "registry.build05.ci.openshift.org/ci-ln-y45rpz2/release@sha256:acf73341106ff5c2f7ac0845b1eda1855c1cabb60f6
e033f9dfcdca16b2c8280",
"startedTime": "2022-07-19T15:19:02Z",
"state": "Partial", <------ this one should be pruned
"verified": false,
"version": "4.10.0-0.ci.test-2022-07-19-122259-ci-ln-y45rpz2-latest"
},
{
"completionTime": "2022-07-19T13:10:03Z",
"image": "registry.build05.ci.openshift.org/ci-ln-5n5dggk/release@sha256:f47b974f718ccde37811bd6c707dca1d35020cb335d
bbbf9d5fadfbee50db0a4",
"startedTime": "2022-07-19T12:48:49Z",
"state": "Completed", <-------- this one should stay
"verified": false,
"version": "4.10.0-0.ci.test-2022-07-19-105113-ci-ln-5n5dggk-latest"
}
]
history is at maximum length, started one more upgrade to trigger prune..
results after prune:
$ oc get clusterversion version -o json | jq '.status.history|length'
50
$ oc get clusterversion version -o json | jq '.status.history[-3:]'
[
{
"completionTime": "2022-07-19T15:20:57Z",
"image": "registry.build05.ci.openshift.org/ci-ln-y45rpz2/release@sha256:acf73341106ff5c2f7ac0845b1eda1855c1cabb60f6
e033f9dfcdca16b2c8280",
"startedTime": "2022-07-19T15:20:42Z",
"state": "Partial",
"verified": false,
"version": "4.10.0-0.ci.test-2022-07-19-122259-ci-ln-y45rpz2-latest"
},
{
"completionTime": "2022-07-19T15:20:15Z",
"image": "registry.build05.ci.openshift.org/ci-ln-5n5dggk/release@sha256:f47b974f718ccde37811bd6c707dca1d35020cb335d
bbbf9d5fadfbee50db0a4",
"startedTime": "2022-07-19T15:19:25Z",
"state": "Completed",
"verified": false,
"version": "4.10.0-0.ci.test-2022-07-19-105113-ci-ln-5n5dggk-latest"
},
{
"completionTime": "2022-07-19T13:10:03Z",
"image": "registry.build05.ci.openshift.org/ci-ln-5n5dggk/release@sha256:f47b974f718ccde37811bd6c707dca1d35020cb335d
bbbf9d5fadfbee50db0a4",
"startedTime": "2022-07-19T12:48:49Z",
"state": "Completed",
"verified": false,
"version": "4.10.0-0.ci.test-2022-07-19-105113-ci-ln-5n5dggk-latest"
}
]
as we can see, the last "Completed" entry preserved, while the next "Partial" has been pruned, as expected.
Verified.
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.10.24 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:5664 |