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

xapi-project / xen-api / 11696336481
80%

Build:
DEFAULT BRANCH: master
Ran 06 Nov 2024 02:53AM UTC
Jobs 1
Files 37
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 Nov 2024 03:02PM UTC coverage: 78.273%. Remained the same
11696336481

push

github

web-flow
CA-401242: avoid long-running, idle connections on VDI.pool_migrate (#6102)

When a VDI.pool_migrate starts at a pool member, a connection between
the
coordinator and that host remains open for the duration of the
migration. This
connection is completely idle. If it's open for 12 hours, stunnel closes
the
connection due to inactivity, which cancels the migration.

To avoid this use an internal API that uses short-running connection
whenever
possible to avoid interrupting the migration.

Also change nested if-else flow in vdi handling to use Result with let
binds, and add missing CDI operations to storage operations.

I've manually verified the fix by changing the stunnel timeout in the
coordinator of a pool to 5 seconds and migrating a vdi used by a VM in
another host:
```
# xe vdi-pool-migrate uuid=fdb8783f-8cdb-44d3-9327-992f047e6262 sr-uuid=c879ffc9-bb14-fec5-3d95-8959db9337eb
270c3dc8-27bc-4ef2-982a-a6142f0ffce1
```

And after reverting the patch:
```
# xe vdi-pool-migrate uuid=270c3dc8-27bc-4ef2-982a-a6142f0ffce1 sr-uuid=aade9dc6-ff31-3204-4187-37f82ad06c77
Cannot forward messages because the server cannot be contacted. The server may be switched off or there may be network connectivity problems.
host: 0a3a45a0-8754-4570-bfde-6ef6843ccda1 (xs2)
```

The changes are best reviewed one by one, and while ignoring whitespace,
if using github.

3462 of 4423 relevant lines covered (78.27%)

0.78 hits per line

Jobs
ID Job ID Ran Files Coverage
1 python3.11 - 11696336481.1 06 Nov 2024 02:53AM UTC 37
78.27
GitHub Action Run
Source Files on build 11696336481
  • Tree
  • List 37
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #11696336481
  • 3a776c02 on github
  • Prev Build on master (#11676668650)
  • Next Build on master (#11701937468)
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

© 2025 Coveralls, Inc