fix(core): run firmware upgrade migration only for running vmi#2162
Merged
fix(core): run firmware upgrade migration only for running vmi#2162
Conversation
2de1e38 to
aef956a
Compare
Isteb4k
requested changes
Mar 27, 2026
images/virtualization-artifact/pkg/controller/workload-updater/internal/handler/firmware.go
Outdated
Show resolved
Hide resolved
8ca0d83 to
789581b
Compare
Signed-off-by: Daniil Antoshin <daniil.antoshin@flant.com>
Signed-off-by: Daniil Antoshin <daniil.antoshin@flant.com>
Signed-off-by: Daniil Antoshin <daniil.antoshin@flant.com>
Signed-off-by: Daniil Antoshin <daniil.antoshin@flant.com>
Signed-off-by: Daniil Antoshin <daniil.antoshin@flant.com>
Signed-off-by: Daniil Antoshin <daniil.antoshin@flant.com>
Signed-off-by: Daniil Antoshin <daniil.antoshin@flant.com>
789581b to
6d098c7
Compare
Isteb4k
approved these changes
Mar 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Adjust firmware update behavior to avoid signaling outdated firmware for non-running instances and keep workload-updater migration flow driven by VM condition + virt-controller readiness.
Functional changes
pkg/controller/vm/internal/firmware.goFirmwareUpToDate=Falseis now set only when KVVMI isRunningand launcher image differs.Succeeded,Failed, etc.) the firmware condition is not raised.pkg/controller/workload-updater/internal/handler/firmware.goneedUpdate(vm)(VM condition),isVirtControllerUpToDate(...).Test changes
pkg/controller/vm/internal/firmware_test.go) with explicit non-running KVVMI cases (Succeeded,Failed).pkg/controller/workload-updater/internal/handler/firmware_test.go) to match current handler contract and removed obsolete KVVMI-centric checks.Validation:
go test ./pkg/controller/vm/internal/...go test ./pkg/controller/workload-updater/internal/handler/...task lint:goAll pass.
Why do we need it, and what problem does it solve?
Previously, firmware-outdated condition could stay active for non-running instances, which was noisy and could trigger misleading update flows.
With this change:
What is the expected result?
Succeeded,Failed), VM should not exposeFirmwareUpToDate=Falsedue to image mismatch.FirmwareUpToDate=False.Checklist
Changelog entries