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

xapi-project / xen-api / 22182635611
80%

Build:
DEFAULT BRANCH: master
Ran 19 Feb 2026 12:56PM 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

19 Feb 2026 12:46PM UTC coverage: 80.459%. Remained the same
22182635611

push

github

web-flow
Refresh remote session during long migrations (#6889)

## Here is what we want to solve

During a migration, the host where the VM is running (the source) needs
to interact with the host where the VM will migrate (the destination).
The SM endpoint is used, and it requires an authenticated session. This
session Id has, by default, a time to live of 24 hours. It can be
modified by setting **_inactive_session_timeout_** in xapi.conf.

This session reference is passed as an argument to all API calls. Every
session has an associated last active timestamp, which is updated on
every API call.

The problem is that when everything is set up to transfer the data of a
VDI from the source to the destination (mirror and snapshot are ready),
the source creates a thread to do the copy (**_sparse_dd_**) and blocks
until the thread ends. This works fine when the transfer takes less than
24h, but for large VDIs (for example 2TB) it can take more than 24 hours
and the session will time out. When the copy is finished, the source
then tries to call API, but the session has already expired.

To avoid, this we need to either refresh the session while the copy is
in progress, or create a new session once the copy is done so that the
host can still interact with the destination. We can also set
**_inactive_session_timeout_** to a greater value that is the current
workaround proposed to the customer. But it makes sense to automatically
refresh the session because increasing the timeout for all session may
create new problem like too much session created in the same time.

3504 of 4355 relevant lines covered (80.46%)

0.8 hits per line

Jobs
ID Job ID Ran Files Coverage
1 python3.11 - 22182635611.1 19 Feb 2026 12:56PM UTC 34
80.46
GitHub Action Run
Source Files on build 22182635611
  • 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 #22182635611
  • 0ad62b82 on github
  • Prev Build on gh-readonly-queue/master/pr-6915-75ae1a2db71497119860a0b09256a9e0f6b887ed (#22141927548)
  • Next Build on master (#22190499816)
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