Skip to content

OCPBUGS-569: CVO History Pruner return not assigned to config.Status.History#828

Merged
openshift-merge-robot merged 1 commit intoopenshift:masterfrom
evakhoni:hist-not-pruned-fix
Aug 29, 2022
Merged

OCPBUGS-569: CVO History Pruner return not assigned to config.Status.History#828
openshift-merge-robot merged 1 commit intoopenshift:masterfrom
evakhoni:hist-not-pruned-fix

Conversation

@evakhoni
Copy link
Copy Markdown
Contributor

@evakhoni evakhoni commented Aug 26, 2022

reported in OCPBUGS-569, cvo history method prune return is not assigned to status.history, resulting in history not being pruned, and prune method running in loops as seen in cvo log:

cluster-version-operator-669594b4cd-h89ch.log:I0824 13:24:37.889213       1 status_history.go:69] Pruning an older update of less importance version 4.12.0-0.nightly-2022-08-23-223922 at index 99 with rank -99.990000.
cluster-version-operator-669594b4cd-h89ch.log:I0824 13:24:52.886216       1 status_history.go:69] Pruning an older update of less importance version 4.12.0-0.nightly-2022-08-23-223922 at index 99 with rank -99.990000.
cluster-version-operator-669594b4cd-h89ch.log:I0824 13:25:07.887131       1 status_history.go:69] Pruning an older update of less importance version 4.12.0-0.nightly-2022-08-23-223922 at index 99 with rank -99.990000.
cluster-version-operator-669594b4cd-h89ch.log:I0824 13:25:22.886281       1 status_history.go:69] Pruning an older update of less importance version 4.12.0-0.nightly-2022-08-23-223922 at index 99 with rank -99.990000.
cluster-version-operator-669594b4cd-h89ch.log:I0824 13:25:37.888316       1 status_history.go:69] Pruning an older update of less importance version 4.12.0-0.nightly-2022-08-23-223922 at index 99 with rank -99.990000.

tested on cluster bot build with 100 upgrade and rollback cycles. before the fix the history grown beyond 100, and cvo log contained multiple prune messages trying to prune. with the fix, in the last cycle cvo successfully pruned (the oldest partial history[-2] in this case) item, and there was 1 pruning message only in cvo log, as expected:

╰─ grep Pruning *.log
cluster-version-operator-9b9868b46-mm2rw.log:I0826 12:22:58.871969       1 status_history.go:69] Pruning an older update of less importance version 4.12.0-0.ci.test-2022-08-26-112653-ci-ln-cm0zivt-latest at index 99 with rank -99.990000.

@openshift-ci openshift-ci Bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Aug 26, 2022
@openshift-ci openshift-ci Bot requested review from jottofar and vrutkovs August 26, 2022 09:40
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Aug 26, 2022

@evakhoni: all tests passed!

Full PR test history. Your PR dashboard.

Details

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.

@evakhoni evakhoni changed the title WIP: OCPBUGS-569 History Pruner fix OCPBUGS-569: CVO History Pruner return not assigned to config.Status.History Aug 26, 2022
@openshift-ci-robot openshift-ci-robot added jira/severity-moderate Referenced Jira bug's severity is moderate for the branch this PR is targeting. jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Aug 26, 2022
@openshift-ci-robot
Copy link
Copy Markdown
Contributor

openshift-ci-robot commented Aug 26, 2022

@evakhoni: This pull request references [Jira Issue OCPBUGS-569](https://issues.redhat.com//browse/OCPBUGS-569), which is invalid:

  • expected the bug to target the "4.12.0" version, but no target version was set

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

Details

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.

@openshift-ci openshift-ci Bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Aug 26, 2022
@openshift-ci-robot
Copy link
Copy Markdown
Contributor

openshift-ci-robot commented Aug 26, 2022

@evakhoni: This pull request references [Jira Issue OCPBUGS-569](https://issues.redhat.com//browse/OCPBUGS-569), which is invalid:

  • expected the bug to target the "4.12.0" version, but no target version was set

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

Details

In response to this:

reported in OCPBUGS-569, cvo history method prune return is not assigned to status.history, resulting in history not being pruned, and prune method running in loops as seen in cvo log.

tested on cluster bot build with 100 upgrade and rollback cycles. before the fix the history grown beyond 100, and cvo log contained multiple prune messages trying to prune. with the fix, in the last cycle cvo successfully pruned (the oldest partial history[-2] in this case) item, and there was 1 pruning message only in cvo log, as expected:

╰─ grep Pruning *.log
cluster-version-operator-9b9868b46-mm2rw.log:I0826 12:22:58.871969       1 status_history.go:69] Pruning an older update of less importance version 4.12.0-0.ci.test-2022-08-26-112653-ci-ln-cm0zivt-latest at index 99 with rank -99.990000.

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.

@openshift-ci-robot
Copy link
Copy Markdown
Contributor

openshift-ci-robot commented Aug 26, 2022

@evakhoni: This pull request references [Jira Issue OCPBUGS-569](https://issues.redhat.com//browse/OCPBUGS-569), which is invalid:

  • expected the bug to target the "4.12.0" version, but no target version was set

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

Details

In response to this:

reported in OCPBUGS-569, cvo history method prune return is not assigned to status.history, resulting in history not being pruned, and prune method running in loops as seen in cvo log:

cluster-version-operator-669594b4cd-h89ch.log:I0824 13:24:37.889213       1 status_history.go:69] Pruning an older update of less importance version 4.12.0-0.nightly-2022-08-23-223922 at index 99 with rank -99.990000.
cluster-version-operator-669594b4cd-h89ch.log:I0824 13:24:52.886216       1 status_history.go:69] Pruning an older update of less importance version 4.12.0-0.nightly-2022-08-23-223922 at index 99 with rank -99.990000.
cluster-version-operator-669594b4cd-h89ch.log:I0824 13:25:07.887131       1 status_history.go:69] Pruning an older update of less importance version 4.12.0-0.nightly-2022-08-23-223922 at index 99 with rank -99.990000.
cluster-version-operator-669594b4cd-h89ch.log:I0824 13:25:22.886281       1 status_history.go:69] Pruning an older update of less importance version 4.12.0-0.nightly-2022-08-23-223922 at index 99 with rank -99.990000.
cluster-version-operator-669594b4cd-h89ch.log:I0824 13:25:37.888316       1 status_history.go:69] Pruning an older update of less importance version 4.12.0-0.nightly-2022-08-23-223922 at index 99 with rank -99.990000.

tested on cluster bot build with 100 upgrade and rollback cycles. before the fix the history grown beyond 100, and cvo log contained multiple prune messages trying to prune. with the fix, in the last cycle cvo successfully pruned (the oldest partial history[-2] in this case) item, and there was 1 pruning message only in cvo log, as expected:

╰─ grep Pruning *.log
cluster-version-operator-9b9868b46-mm2rw.log:I0826 12:22:58.871969       1 status_history.go:69] Pruning an older update of less importance version 4.12.0-0.ci.test-2022-08-26-112653-ci-ln-cm0zivt-latest at index 99 with rank -99.990000.

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.

@evakhoni
Copy link
Copy Markdown
Contributor Author

/jira refresh

@openshift-ci-robot openshift-ci-robot added jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. labels Aug 28, 2022
@openshift-ci-robot
Copy link
Copy Markdown
Contributor

@evakhoni: This pull request references Jira Issue OCPBUGS-569, which is valid. The bug has been moved to the POST state.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.12.0) matches configured target version for branch (4.12.0)
  • bug is in the state New, which is one of the valid states (NEW, ASSIGNED, POST)

Requesting review from QA contact:
/cc @evakhoni

Details

In response to this:

/jira refresh

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.

@openshift-ci-robot openshift-ci-robot removed the jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. label Aug 28, 2022
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Aug 28, 2022

@openshift-ci-robot: GitHub didn't allow me to request PR reviews from the following users: evakhoni.

Note that only openshift members and repo collaborators can review this PR, and authors cannot review their own PRs.

Details

In response to this:

@evakhoni: This pull request references Jira Issue OCPBUGS-569, which is valid. The bug has been moved to the POST state.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.12.0) matches configured target version for branch (4.12.0)
  • bug is in the state New, which is one of the valid states (NEW, ASSIGNED, POST)

Requesting review from QA contact:
/cc @evakhoni

In response to this:

/jira refresh

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.

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.

@jottofar
Copy link
Copy Markdown
Contributor

/lgtm

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Aug 29, 2022
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Aug 29, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: evakhoni, jottofar

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 29, 2022
@openshift-merge-robot openshift-merge-robot merged commit 95933ab into openshift:master Aug 29, 2022
@openshift-ci-robot
Copy link
Copy Markdown
Contributor

@evakhoni: All pull requests linked via external trackers have merged:

Jira Issue OCPBUGS-569 has been moved to the MODIFIED state.

Details

In response to this:

reported in OCPBUGS-569, cvo history method prune return is not assigned to status.history, resulting in history not being pruned, and prune method running in loops as seen in cvo log:

cluster-version-operator-669594b4cd-h89ch.log:I0824 13:24:37.889213       1 status_history.go:69] Pruning an older update of less importance version 4.12.0-0.nightly-2022-08-23-223922 at index 99 with rank -99.990000.
cluster-version-operator-669594b4cd-h89ch.log:I0824 13:24:52.886216       1 status_history.go:69] Pruning an older update of less importance version 4.12.0-0.nightly-2022-08-23-223922 at index 99 with rank -99.990000.
cluster-version-operator-669594b4cd-h89ch.log:I0824 13:25:07.887131       1 status_history.go:69] Pruning an older update of less importance version 4.12.0-0.nightly-2022-08-23-223922 at index 99 with rank -99.990000.
cluster-version-operator-669594b4cd-h89ch.log:I0824 13:25:22.886281       1 status_history.go:69] Pruning an older update of less importance version 4.12.0-0.nightly-2022-08-23-223922 at index 99 with rank -99.990000.
cluster-version-operator-669594b4cd-h89ch.log:I0824 13:25:37.888316       1 status_history.go:69] Pruning an older update of less importance version 4.12.0-0.nightly-2022-08-23-223922 at index 99 with rank -99.990000.

tested on cluster bot build with 100 upgrade and rollback cycles. before the fix the history grown beyond 100, and cvo log contained multiple prune messages trying to prune. with the fix, in the last cycle cvo successfully pruned (the oldest partial history[-2] in this case) item, and there was 1 pruning message only in cvo log, as expected:

╰─ grep Pruning *.log
cluster-version-operator-9b9868b46-mm2rw.log:I0826 12:22:58.871969       1 status_history.go:69] Pruning an older update of less importance version 4.12.0-0.ci.test-2022-08-26-112653-ci-ln-cm0zivt-latest at index 99 with rank -99.990000.

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.

@evakhoni evakhoni deleted the hist-not-pruned-fix branch October 25, 2022 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. jira/severity-moderate Referenced Jira bug's severity is moderate for the branch this PR is targeting. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants