Skip to content

reconcile: prevent from staying in expanding state#2124

Open
AndrewChubatiuk wants to merge 2 commits intomasterfrom
fix-prevent-from-hanging-in-expanding
Open

reconcile: prevent from staying in expanding state#2124
AndrewChubatiuk wants to merge 2 commits intomasterfrom
fix-prevent-from-hanging-in-expanding

Conversation

@AndrewChubatiuk
Copy link
Copy Markdown
Contributor

@AndrewChubatiuk AndrewChubatiuk commented Apr 29, 2026

Summary by cubic

Always propagate reconcile errors so the controller requeues and resources don’t get stuck in Expanding. Set resultErr in both Expanding and Failed paths, update tests to expect errors for requeue, and add a vmoperator changelog entry.

Written for commit 2ddc225. Summary will update on new commits.

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

@AndrewChubatiuk AndrewChubatiuk force-pushed the fix-prevent-from-hanging-in-expanding branch from b7e95c8 to c31c75d Compare April 29, 2026 21:02
Copy link
Copy Markdown
Collaborator

@vrutkovs vrutkovs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, minor nitpick

Comment on lines 344 to +349
if reconcile.IsRetryable(err) {
resultStatus = vmv1beta1.UpdateStatusExpanding
} else {
resultStatus = vmv1beta1.UpdateStatusFailed
resultErr = err
}
resultErr = err
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
resultErr = err
resultStatus := vmv1beta1.UpdateStatusFailed
if reconcile.IsRetryable(err) {
resultStatus = vmv1beta1.UpdateStatusExpanding
}
resultErr = err

Signed-off-by: Vadim Rutkovsky <vadim@vrutkovs.eu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants