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

xapi-project / xen-api / 17509095392
80%

Build:
DEFAULT BRANCH: master
Ran 06 Sep 2025 03:01AM UTC
Jobs 1
Files 34
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

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

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

Jobs
ID Job ID Ran Files Coverage
1 python3.11 - 17509095392.1 06 Sep 2025 03:01AM UTC 34
80.37
GitHub Action Run
Source Files on build 17509095392
  • Tree
  • List 34
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #17509095392
  • 8b432067 on github
  • Prev Build on master (#17482469226)
  • Next Build on master (#17523050517)
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