Bug 2109962 - ClusterVersion history pruner does not always retain initial completed update entry
Summary: ClusterVersion history pruner does not always retain initial completed update...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Cluster Version Operator
Version: 4.11
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.8.z
Assignee: Jack Ottofaro
QA Contact: Evgeni Vakhonin
URL:
Whiteboard:
Depends On: 2108619
Blocks: 2117347
TreeView+ depends on / blocked
 
Reported: 2022-07-22 14:45 UTC by OpenShift BugZilla Robot
Modified: 2022-08-10 17:28 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-08-09 12:52:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift cluster-version-operator pull 803 0 None Merged [release-4.8] Bug 2109962: pkg/cvo: retain initial completed update history entry 2022-07-26 06:31:16 UTC
Red Hat Product Errata RHBA-2022:5889 0 None None None 2022-08-09 12:52:59 UTC

Comment 1 Evgeni Vakhonin 2022-07-25 10:12:00 UTC
using the same method as in https://bugzilla.redhat.com/show_bug.cgi?id=2108292#c1

reproducing on 4.8.45 to 4.8.46


history lenght is 50
last 3 items before prune
[
  {
    "completionTime": "2022-07-25T06:59:41Z",
    "image": "quay.io/openshift-release-dev/ocp-release@sha256:e9bcc5d74c4d6651f15601392e7eec52a9feacbf583ca5323ddeb9d3a878d75d",
    "startedTime": "2022-07-25T06:58:35Z",
    "state": "Completed",
    "verified": true,
    "version": "4.8.45"
  },
  {
    "completionTime": "2022-07-25T06:58:35Z",
    "image": "quay.io/openshift-release-dev/ocp-release@sha256:28573253c8d670d2d0ff227295476cc3b4a77d98703f041e665da4da95907f26",
    "startedTime": "2022-07-25T06:58:09Z",
    "state": "Partial",
    "verified": true,
    "version": "4.8.46"
  },
  {
    "completionTime": "2022-07-25T06:42:15Z",
    "image": "quay.io/openshift-release-dev/ocp-release@sha256:e9bcc5d74c4d6651f15601392e7eec52a9feacbf583ca5323ddeb9d3a878d75d",
    "startedTime": "2022-07-25T06:19:16Z",
    "state": "Completed",
    "verified": false,
    "version": "4.8.45"
  }
]

sending upgrade command to 4.8.45 ok
waiting for upgrade to start: 4.8.45
history lenght still 50
last 3 items after prune
[
  {
    "completionTime": "2022-07-25T07:00:03Z",
    "image": "quay.io/openshift-release-dev/ocp-release@sha256:28573253c8d670d2d0ff227295476cc3b4a77d98703f041e665da4da95907f26",
    "startedTime": "2022-07-25T06:59:49Z",
    "state": "Partial",
    "verified": true,
    "version": "4.8.46"
  },
  {
    "completionTime": "2022-07-25T06:59:41Z",
    "image": "quay.io/openshift-release-dev/ocp-release@sha256:e9bcc5d74c4d6651f15601392e7eec52a9feacbf583ca5323ddeb9d3a878d75d",
    "startedTime": "2022-07-25T06:58:35Z",
    "state": "Completed",
    "verified": true,
    "version": "4.8.45"
  },
  {
    "completionTime": "2022-07-25T06:58:35Z",
    "image": "quay.io/openshift-release-dev/ocp-release@sha256:28573253c8d670d2d0ff227295476cc3b4a77d98703f041e665da4da95907f26",
    "startedTime": "2022-07-25T06:58:09Z",
    "state": "Partial",
    "verified": true,
    "version": "4.8.46"
  }
]

reproduced successfully - the last "Completed" item was pruned.







pre-merge verifying on 4.8.0-0.ci.test-2022-07-25-062140-ci-ln-wl25ky2-latest to 4.8.0-0.ci.test-2022-07-25-070923-ci-ln-17wi70k-latest. same method.

history lenght is 50
last 3 items before prune
[
  {
    "completionTime": "2022-07-25T08:50:41Z",
    "image": "registry.build05.ci.openshift.org/ci-ln-wl25ky2/release@sha256:bc9d48d97297dba3eb82cf56766607b3979f580267b0a849d541534d843999ef",
    "startedTime": "2022-07-25T08:49:42Z",
    "state": "Completed",
    "verified": false,
    "version": "4.8.0-0.ci.test-2022-07-25-062140-ci-ln-wl25ky2-latest"
  },
  {
    "completionTime": "2022-07-25T08:49:42Z",
    "image": "registry.build05.ci.openshift.org/ci-ln-17wi70k/release@sha256:c96c5367a712f9f3f713231f32dfb95a91c70655965ffdd8afc010af0b26967c",
    "startedTime": "2022-07-25T08:49:28Z",
    "state": "Partial",
    "verified": false,
    "version": "4.8.0-0.ci.test-2022-07-25-070923-ci-ln-17wi70k-latest"
  },
  {
    "completionTime": "2022-07-25T08:36:26Z",
    "image": "registry.build05.ci.openshift.org/ci-ln-wl25ky2/release@sha256:bc9d48d97297dba3eb82cf56766607b3979f580267b0a849d541534d843999ef",
    "startedTime": "2022-07-25T08:13:19Z",
    "state": "Completed",
    "verified": false,
    "version": "4.8.0-0.ci.test-2022-07-25-062140-ci-ln-wl25ky2-latest"
  }
]
sending upgrade command to 4.8.0-0.ci.test-2022-07-25-062140-ci-ln-wl25ky2-latest ok
waiting for upgrade to start: 4.8.0-0.ci.test-2022-07-25-062140-ci-ln-wl25ky2-latest
history lenght still 50
last 3 items after prune
[
  {
    "completionTime": "2022-07-25T08:51:11Z",
    "image": "registry.build05.ci.openshift.org/ci-ln-17wi70k/release@sha256:c96c5367a712f9f3f713231f32dfb95a91c70655965ffdd8afc010af0b26967c",
    "startedTime": "2022-07-25T08:50:58Z",
    "state": "Partial",
    "verified": false,
    "version": "4.8.0-0.ci.test-2022-07-25-070923-ci-ln-17wi70k-latest"
  },
  {
    "completionTime": "2022-07-25T08:50:41Z",
    "image": "registry.build05.ci.openshift.org/ci-ln-wl25ky2/release@sha256:bc9d48d97297dba3eb82cf56766607b3979f580267b0a849d541534d843999ef",
    "startedTime": "2022-07-25T08:49:42Z",
    "state": "Completed",
    "verified": false,
    "version": "4.8.0-0.ci.test-2022-07-25-062140-ci-ln-wl25ky2-latest"
  },
  {
    "completionTime": "2022-07-25T08:36:26Z",
    "image": "registry.build05.ci.openshift.org/ci-ln-wl25ky2/release@sha256:bc9d48d97297dba3eb82cf56766607b3979f580267b0a849d541534d843999ef",
    "startedTime": "2022-07-25T08:13:19Z",
    "state": "Completed",
    "verified": false,
    "version": "4.8.0-0.ci.test-2022-07-25-062140-ci-ln-wl25ky2-latest"
  }
]

Verified successfully - the last "Completed" item was preserved, while the next "Partial" was pruned as expected.

Comment 6 errata-xmlrpc 2022-08-09 12:52:44 UTC
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 (OpenShift Container Platform 4.8.47 bug fix 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/RHBA-2022:5889


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