Bug 2024433: CustomNoUpgrade should not fire no-upgrade failures#26615
Conversation
Fixup of 5fb0f99 The commit that is being fixed-up introduced a check against a message that is not implemented anywhere, thus rendering the function `isKubeAPIUpgradableNoUpgradeCondition` unusable. This patch removes the check on the condition message.
|
@openshift-cherrypick-robot: Bugzilla bug 1998029 has been cloned as Bugzilla bug 2024433. Retitling PR to link against new bug. DetailsIn 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-cherrypick-robot: This pull request references Bugzilla bug 2024433, 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
No GitHub users were found matching the public email listed for the QA contact in Bugzilla (pprinett@redhat.com), skipping review request. DetailsIn 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. |
|
No need to track the target branch in the PR subject; GitHub tracks that as structured metadata for all PRs. /retitle Bug 2024433: CustomNoUpgrade should not fire no-upgrade failures |
|
This should fix things like: Unsurprisingly, looks like it's perma-failing. Surprisingly, it is unique to 4.9: $ w3m -dump -cols 200 'https://search.ci.openshift.org/?maxAge=48h&type=junit&search=Some+cluster+operators+are+not+ready.*Upgradeable%3DFalse.*TechPreviewNoUpgrade' | grep 'failures match' | grep -v rehearse | sort
periodic-ci-openshift-release-master-ci-4.9-e2e-aws-techpreview (all) - 8 runs, 100% failed, 75% of failures match = 75% impact
periodic-ci-openshift-release-master-ci-4.9-e2e-aws-techpreview-serial (all) - 8 runs, 100% failed, 100% of failures match = 100% impact
periodic-ci-openshift-release-master-ci-4.9-e2e-azure-techpreview (all) - 8 runs, 100% failed, 88% of failures match = 88% impact
periodic-ci-openshift-release-master-ci-4.9-e2e-azure-techpreview-serial (all) - 8 runs, 100% failed, 50% of failures match = 50% impact
periodic-ci-openshift-release-master-ci-4.9-e2e-openstack-techpreview-parallel (all) - 2 runs, 100% failed, 100% of failures match = 100% impact
periodic-ci-openshift-release-master-ci-4.9-e2e-openstack-techpreview-serial (all) - 2 runs, 100% failed, 100% of failures match = 100% impactPoking at the 4.9 vs. 4.10 difference: $ diff -u <(git grep -h10 isKubeAPIUpgradable origin/release-4.9) <(git grep -h10 isKubeAPIUpgradable origin/master)
--- /dev/fd/63 2021-11-17 21:06:02.061366611 -0800
+++ /dev/fd/62 2021-11-17 21:06:02.063366611 -0800
@@ -34,6 +34,5 @@
return (cond.Reason == "FeatureGates_RestrictedFeatureGates_TechPreviewNoUpgrade" ||
cond.Reason == "FeatureGates_RestrictedFeatureGates_CustomNoUpgrade") &&
cond.Status == "False" &&
- cond.Type == "Upgradeable" &&
- cond.Message == "FeatureGatesUpgradeable: \"TechPreviewNoUpgrade\" and \"CustomNoUpgrades\" do not allow updates"
+ cond.Type == "Upgradeable"
}So that's because: $ git log --oneline origin/master | grep 'CustomNoUpgrade should not fire'
8b89e16356 CustomNoUpgrade should not fire no-upgrade failures
5fb0f9967c CustomNoUpgrade should not fire no-upgrade failures
$ git log --oneline origin/release-4.9 | grep 'CustomNoUpgrade should not fire'
5fb0f9967c CustomNoUpgrade should not fire no-upgrade failures
$ git log --oneline origin/release-4.8 | grep 'CustomNoUpgrade should not fire'
...no hits...So 5fb0f99 (#26430) landed in |
|
/lgtm |
| cond.Reason == "FeatureGates_RestrictedFeatureGates_CustomNoUpgrade") && | ||
| cond.Status == "False" && | ||
| cond.Type == "Upgradeable" && | ||
| cond.Message == "FeatureGatesUpgradeable: \"TechPreviewNoUpgrade\" and \"CustomNoUpgrades\" do not allow updates" |
There was a problem hiding this comment.
the point of the string selection is to keep us from allowing techpreview clusters to go upgradeable=false for other reasons. Looks like the string is incorrect?
There was a problem hiding this comment.
yes, the point of this conditional is to fail-fast-ish in cases where we are Upgradeable=False for unexpected reasons (it isn't limited to TechPreview). #26449, of which this is a robotic pick, says "you know what, who cares about the Message? (status, type, reason) is enough of a tuple for robots to be confident that this is an allowed reason". If you prefer to also watch over the operator's shoulder and enforce a specific message, I'm... grudgingly ok with that, but can you litigate it in master and then continue with the robotic backports to 4.9?
There was a problem hiding this comment.
the point of the string selection is to keep us from allowing techpreview clusters to go upgradeable=false for other reasons
doesn't checking the Reason ensure this, in a more robust(less fragile/subject to change) way?
There was a problem hiding this comment.
likely not more robust, but robust enough.
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: deads2k, LalatenduMohanty, openshift-cherrypick-robot The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
5 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. |
|
@openshift-cherrypick-robot: All pull requests linked via external trackers have merged: Bugzilla bug 2024433 has been moved to the MODIFIED state. DetailsIn 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. |
This is an automated cherry-pick of #26449
/assign wking