Skip to content
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

crd strategy - reconcile may complete before resource is completed #211

Closed
eytan-avisror opened this issue Nov 19, 2020 · 0 comments · Fixed by #214
Closed

crd strategy - reconcile may complete before resource is completed #211

eytan-avisror opened this issue Nov 19, 2020 · 0 comments · Fixed by #214
Labels
bug Something isn't working

Comments

@eytan-avisror
Copy link
Collaborator

Looks like there is a code path where we can mark reconcile successful prematurely during an upgrade.

According to the following snippet:

// update readiness conditions
nodesReady := ctx.UpdateNodeReadyCondition()
if nodesReady {
instanceGroup.SetState(v1alpha1.ReconcileModified)
}
if rotationNeeded {
instanceGroup.SetState(v1alpha1.ReconcileInitUpgrade)
}

It seems we don't enter the upgrade path nodes are ready and rotationNeeded is not true - In this case it can happen when the last node is rotated (as now rotationNeeded is false), however, the upgrade resource object is still running.

rotationNeeded should also check if the status.strategyResourceName resource is still active.

@eytan-avisror eytan-avisror added the bug Something isn't working label Nov 19, 2020
@eytan-avisror eytan-avisror changed the title crd strategy - reconcile may complete before resource is successful crd strategy - reconcile may complete before resource is completed Nov 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant