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

xapi-project / xen-api / 39563832224
79%

Build:
DEFAULT BRANCH: master
Ran 21 Oct 2026 07:43AM UTC
Jobs 1
Files 36
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

21 Oct 2026 07:33AM UTC coverage: 78.996%. Remained the same
39563832224

push

github

web-flow
storage_access: Remove duplicate SM records (#7335)

This is a continuation of
https://github.com/xapi-project/xen-api/pull/6873

If multiple hosts have installed a new SM plugin since the last
toolstack restart and are restarting simultaneously, there's a race
window between checking for registered plugins and registering a new
one, which can lead to duplicate SM plugins being registered.

I was not able to reproduce this myself, but we've seen this case in
support:

12:00:00 hostA: dbsync (update_env) |xapi_sm]
Xapi_sm.create_from_query_result Registering SM plugin linstor (version
1.0)
12:00:00 hostB: dbsync (update_env) |xapi_sm]
Xapi_sm.create_from_query_result Registering SM plugin linstor (version
1.0)
12:00:00 hostA: dbsync (update_env) |storage_access]
Storage_access.on_xapi_start: found duplicate SM plugins for the same
type: type:linstor...

Clean up these duplicate entries instead of just logging them.

Sort the records by reference to get deterministic ordering from
multiple hosts. Remove all but the first such duplicate record.

3667 of 4642 relevant lines covered (79.0%)

0.79 hits per line

Jobs
ID Job ID Ran Files Coverage
1 python3.11 - 39563832224.1 21 Oct 2026 07:43AM UTC 36
79.0
GitHub Action Run
Source Files on build 39563832224
  • Tree
  • List 36
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #39563832224
  • e940b023 on github
  • Prev Build on gh-readonly-queue/master/pr-7343-3dde613ad56c809d595fcf9270d6f60599bbd568 (#39428759670)
  • Next Build on master (#39602171925)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc