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

kubernetes-sigs / cluster-api-provider-kubevirt / 30525865769
40%
main: 40%

Build:
Build:
LAST BUILD BRANCH: fix_node_uncordon
DEFAULT BRANCH: main
Ran 30 Jul 2026 09:02AM UTC
Jobs 1
Files 27
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

30 Jul 2026 08:13AM UTC coverage: 39.667% (+0.9%) from 38.789%
30525865769

Pull #389

github

orenc1
OCPBUGS-98218: Fix guest node remaining cordoned after VMI eviction and restart

When CAPK handles a VMI eviction (evictionStrategy=External), it cordons
and drains the guest node before deleting the VMI. After KubeVirt recreates
the VMI on another host, the guest node reconnects but stays cordoned
(spec.unschedulable=true) indefinitely because nothing uncordons it.

Track the cordon with a new annotation (capk.cluster.x-k8s.io/node-cordoned)
on the KubevirtMachine, and uncordon the guest node in DrainNodeIfNeeded
when no eviction is in progress but the annotation is present.

Fixes: OCPBUGS-98218

Signed-off-by: Oren Cohen <ocohen@redhat.com>
Assisted-by: Claude <noreply@anthropic.com>
Pull Request #389: OCPBUGS-98218: Fix guest node remaining cordoned after VMI eviction and restart

48 of 57 new or added lines in 1 file covered. (84.21%)

70 existing lines in 2 files now uncovered.

1169 of 2947 relevant lines covered (39.67%)

2.24 hits per line

Uncovered Changes

Lines Coverage ∆ File
9
66.0
2.64% pkg/kubevirt/machine.go

Coverage Regressions

Lines Coverage ∆ File
62
66.0
2.64% pkg/kubevirt/machine.go
8
0.0
0.0% api/v1alpha1/kubevirtcluster_types.go
Jobs
ID Job ID Ran Files Coverage
1 30525865769.1 30 Jul 2026 09:02AM UTC 27
39.67
GitHub Action Run
Source Files on build 30525865769
  • Tree
  • List 27
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #389
  • PR Base - main (#29070197690)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc