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

xapi-project / xen-api / 11323714770 / 1
78%
master: 80%

Build:
Build:
LAST BUILD BRANCH: dev/pau/majmin
DEFAULT BRANCH: master
Ran 14 Oct 2024 08:27AM UTC
Files 37
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

14 Oct 2024 08:23AM UTC coverage: 78.273% (-0.006%) from 78.279%
11323714770.1

push

github

web-flow
CA-392674: nbd_client_manager retry connect on nbd device busy (#6021)

to connect to nbd devices, nbd_client_manager will
1. protect the operation with /var/run/nonpersistent/nbd_client_manager
file lock
2. check whether nbd is being used by `nbd-client -check`
3. load nbd kernel module by `modprobe nbd`
4. call `nbd-client` to connect to nbd device

However, step 3 will trigger systemd-udevd run asyncly, which would open
and lock the same nbd devices, run udev rules, etc. This introduce races
with step 4, e.g. both process want to open and lock the nbd device.

Note: the file lock in step 1 does NOT resovle the issue here, as it
only coordinate multiple nbd_client_manager processes.

To fix the issue,
- we patch nbd-client to report the device busy from kernel to
nbd_client_manager
- nbd_client_manager should check nbd-client exit code, and retry on
device busy

3462 of 4423 relevant lines covered (78.27%)

0.78 hits per line

Source Files on job python3.11 - 11323714770.1
  • Tree
  • List 37
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 11323714770
  • 34a87968 on github
  • Prev Job for on gh-readonly-queue/master/pr-6021-7670247ae6a3c656ae60123dc550a9eb415d5ba4 (#11320236875.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

© 2025 Coveralls, Inc