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
Bug 2021097: Set Upgradeable: false when HA workloads are incorrectly spread #1472
Bug 2021097: Set Upgradeable: false when HA workloads are incorrectly spread #1472
Conversation
@jan--f: This pull request references Bugzilla bug 2021097, which is invalid:
Comment 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. |
/hold |
eb827f5
to
5ff3f13
Compare
/retest |
2 similar comments
/retest |
/retest |
… spread (openshift#1431) * Merge pull request openshift#1330 from dgrisonnet/ha-upgradeable Bug 1995924: Set `Upgradeable: false` when HA workloads are incorrectly spread * pkg/rebalancer: sort resources for deletion The resources that are marked for deletion are sorted by their PVC creation timestamp, from the newest to the oldest to make the deletion consistent. Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com> * pkg: improve rebalancer logging Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com> * pkg/rebalancer: sort based on pod names Sort PVCs by their creation timestamps, from the newest to the oldest to make sure that the oldest PVC is retained in case all of them are annotated. If some PVCs have the same creation timestamp, they will be sorted based on their pod name. Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com> * pkg/rebalancer: split annotation removal Add EnsurePVCsAreNotAnnoted function that makes sure that none of the PVCs of the given workload have the openshift.io/cluster-monitoring-drop-pvc annotation after the rebalancing is done. In case one of the PVC has the annotation, it will be removed to prevent deleting the PVC in a future cycle. Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com> * pkg/rebalancer: sort resources to delete by age Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com> * test/e2e: fix framework Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com> Co-authored-by: OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> (cherry picked from commit 8500e0f)
On master this was added in d3c1e5a. This can be considered a partial backport. Signed-off-by: Jan Fajerski <jfajersk@redhat.com>
5ff3f13
to
b445978
Compare
/retest |
1 similar comment
/retest |
/bugzilla refresh |
@jan--f: This pull request references Bugzilla bug 2021097, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 6 validation(s) were run on this bug
Requesting review from QA contact: 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. |
/unhold |
I'll add this at the top of my review list :) |
/lgtm |
/retest |
/skip |
/label backport-risk-assessed |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
8 similar comments
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
@jan--f: The following test failed, say
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. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
4 similar comments
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
tested with PR, bound PVs for prometheus, and schedule prometheus pods to one same node, Upgradeable is False now |
/label qe-approved |
/label cherry-pick-approved |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jan--f, juzhao, simonpasquier 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 |
@jan--f: All pull requests linked via external trackers have merged: Bugzilla bug 2021097 has been moved to the MODIFIED state. 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. |
… spread (#1431)
Upgradeable: false
when HA workloads are incorrectly spread #1330 from dgrisonnet/ha-upgradeableBug 1995924: Set
Upgradeable: false
when HA workloads are incorrectly spreadThe resources that are marked for deletion are sorted by their PVC
creation timestamp, from the newest to the oldest to make the deletion
consistent.
Signed-off-by: Damien Grisonnet dgrisonn@redhat.com
Signed-off-by: Damien Grisonnet dgrisonn@redhat.com
Sort PVCs by their creation timestamps, from the newest to the oldest to
make sure that the oldest PVC is retained in case all of them are
annotated. If some PVCs have the same creation timestamp, they will be
sorted based on their pod name.
Signed-off-by: Damien Grisonnet dgrisonn@redhat.com
Add EnsurePVCsAreNotAnnoted function that makes sure that none of the
PVCs of the given workload have the
openshift.io/cluster-monitoring-drop-pvc annotation after the
rebalancing is done. In case one of the PVC has the annotation, it will
be removed to prevent deleting the PVC in a future cycle.
Signed-off-by: Damien Grisonnet dgrisonn@redhat.com
Signed-off-by: Damien Grisonnet dgrisonn@redhat.com
Signed-off-by: Damien Grisonnet dgrisonn@redhat.com
Co-authored-by: OpenShift Merge Robot openshift-merge-robot@users.noreply.github.com
(cherry picked from commit 8500e0f)