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

xapi-project / xen-api / 17509095392 / 1
80%
master: 80%

Build:
DEFAULT BRANCH: master
Ran 06 Sep 2025 03:04AM UTC
Files 34
Run time 1s
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

05 Sep 2025 12:26PM UTC coverage: 80.368%. Remained the same
17509095392.1

push

github

web-flow
xapi_vm_migrate: Fix reservations not being cleared on halted VMs (#6648)

Cross-pool migrations set `scheduled_to_be_resident_on` to the
destination host, reserving memory and vGPUs. If the VM is still halted
when migration is finished, the field is not cleared on the destination,
preserving the reservations even though they're not necessarily going to
be used anytime soon.

Call `force_state_reset_keep_current_operations` in
`pool_migrate_complete` on the destination to clear the reservations
among other things at the end of the migration.

This fixes an issue when VMs migrated across pools in a halted state
would take up memory in xapi's view (but not in RRD's view), which is
not intuitive and could prevent further migrations from claiming enough
free memory on the host.

---

I've tested this manually, confirming that migrating halted and running
VMs works as designed, with the `scheduled_to_be_resident_on` field
cleared at the end of the migration (in the first case it's because of
the fix, in the second one it's because the VM is actually started on
the host)

3496 of 4350 relevant lines covered (80.37%)

0.8 hits per line

Source Files on job python3.11 - 17509095392.1
  • Tree
  • List 34
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 17509095392
  • 8b432067 on github
  • Prev Job for on master (#17482469226.1)
  • Next Job for on master (#17523050517.1)
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