• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kubernetes-sigs / cluster-api-provider-kubevirt / 24126594272
38%
main: 38%

Build:
Build:
LAST BUILD BRANCH: fix/clear-failure-reason-on-recovery
DEFAULT BRANCH: main
Ran 08 Apr 2026 08:51AM UTC
Jobs 1
Files 26
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

08 Apr 2026 08:48AM UTC coverage: 37.939% (+0.07%) from 37.871%
24126594272

Pull #382

github

qinqon
fix: clear FailureReason/FailureMessage when VM recovers from terminal state

When a KubeVirt VM is stopped (runStrategy changed to Halted), the VMI
reaches a finalized state and IsTerminal() correctly sets FailureReason
on the KubevirtMachine. However, when the VM is started back
(runStrategy changed to Always), IsTerminal() returns false but the
FailureReason/FailureMessage fields are never cleared.

This causes the CAPI Machine phase to stay stuck at "Failed" even though
all Machine conditions (Ready, InfrastructureReady, NodeHealthy) are
True. Downstream consumers that rely on the Machine phase (such as
HyperShift's endpointslice reconciler) then permanently mark endpoints
as not ready, breaking ingress into hosted clusters.

The fix adds an else clause to nil out FailureReason and FailureMessage
when IsTerminal() returns false, allowing VMs to properly recover.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Enrique Llorente <ellorent@redhat.com>
Pull Request #382: fix: clear FailureReason/FailureMessage when VM recovers from terminal state

3 of 3 new or added lines in 1 file covered. (100.0%)

1049 of 2765 relevant lines covered (37.94%)

2.14 hits per line

Jobs
ID Job ID Ran Files Coverage
1 24126594272.1 08 Apr 2026 08:51AM UTC 26
37.94
GitHub Action Run
Source Files on build 24126594272
  • Tree
  • List 26
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #382
  • PR Base - main (#23781440980)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc