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

xapi-project / xen-api / 28417104906
79%
master: 79%

Build:
Build:
LAST BUILD BRANCH: feature/throttling2
DEFAULT BRANCH: master
Ran 30 Jun 2026 02:57AM 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

30 Jun 2026 02:55AM UTC coverage: 78.996%. Remained the same
28417104906

push

github

web-flow
CA-403379: pre-flight cluster_host state before pool-ha-enable (#7130)

When the chosen HA cluster_stack is corosync (i.e. for a gfs2 heartbeat
SR) every pool host must have an enabled, joined cluster_host on the
matching cluster stack, and this host must currently be quorate. Without
this preflight, that failure surfaces much later inside
Xha_statefile.check_sr_can_host_statefile with the misleading SR_NO_PBDS
error from pool-ha-enable.

This change adds a per-host preflight in `Xapi_ha.enable` that reuses
the existing `NO_COMPATIBLE_CLUSTER_HOST`, `CLUSTERING_DISABLED` and
`CLUSTER_HOST_NOT_JOINED` errors so the caller can pinpoint exactly
which host is the problem.

The preflight runs BEFORE the cluster_stack persisted to the pool DB and
local db, matching the pattern of the existing host_offline check, so a
failed precondition does not leak ha_cluster_stack into the pool state.

The final assert_cluster_host_quorate call queries xapi-clusterd
diagnostics directly rather than reading the Cluster_host.live DB field,
which the corosync_notifyd watcher only updates asynchronously and which
is reset to false for all hosts on any transient quorum blip.

3667 of 4642 relevant lines covered (79.0%)

0.79 hits per line

Jobs
ID Job ID Ran Files Coverage
1 python3.11 - 28417104906.1 30 Jun 2026 02:57AM UTC 36
79.0
GitHub Action Run
Source Files on build 28417104906
  • 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 #28417104906
  • 9913e47b on github
  • Prev Build on master (#28358308076)
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