[main] Always reset failure counts on existing plans #48109
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue: #47652
Problem
In all previously released versions of Rancher, the
rancher-wins
service does have its underlying binary automatically upgraded to the latest version after an upgrade of the Rancher server. This behavior differs from Linux, and forces users to reprovision their Windows nodes in order to receive the latest enhancements within thesystem-agent
(which is embedded inrancher-wins
). This has resulted in unnecessary conditional logic within Rancher to account for behavior differences on nodes joined to the same cluster.While implementing #46620 for Windows nodes, an issue was encountered where plan failures would not be accurately reported as out-dated versions of
rancher-wins
did not contain the necessarysystem-agent
changes. To address this, Rancher was updated to conditionally update thefailure-count
property on Windows plans such that it is only set for newly provisioned nodes running the latest version ofrancher-wins
.This change was effectively a stop gap, and should be considered as tech debt.
Solution
Revert the changes made in #47651. The changes raised in rancher/wins#260 will update the windows SUC image to automatically upgrade the underlying
wins.exe
binary used byrancher-wins
, ensuring that the proper version of the system-agent is installed onto all Windows nodes.Testing
Engineering Testing
Manual Testing
I've done the above
Automated Testing
QA Testing Considerations
Regressions Considerations