ZSTAC-86444 backport external-storage split-brain guard#4438
ZSTAC-86444 backport external-storage split-brain guard#4438MatheMatrix wants to merge 1 commit into
Conversation
Backport external-storage split-brain guards to 5.4.10. 1. Why? Starting a VM on a new host may continue even when the old storage client still holds the volume. For xinfini Vhost volumes this can leave two QEMU processes using the same bdev. 2. How? Report xinfini deactivate failures instead of swallowing them, verify the bdev is really deleted, re-check active clients after deactivate success, and make blacklist failures propagate out of beforeStartVmOnKvm. 3. Side effects? Deactivate failure or a still-active old client now aborts VM start for that volume instead of silently continuing. Happy-path deactivate keeps the previous behavior. # Summary of changes (by module): - header: make PrimaryStorageNodeSvc.blacklist synchronous. - externalStorage: post-check active clients and propagate blacklist failures. - xinfini: surface deactivate/delete failures and abort unsupported isolation. - expon/zbs: adapt blacklist implementations to the synchronous signature. Related: ZSTAC-86444 Related: ZSTAC-85124 Change-Id: I59812c6d68eec6533e48a8c9cf05b7c55d6b85eb
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 41 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (6)
Warning
|
Root cause:
VM start on a new host could continue after the old storage client failed to deactivate or silently remained attached. On xinfini Vhost volumes this can leave the old QEMU and new QEMU using the same bdev.
Fix:
PrimaryStorageNodeSvc.blacklistsynchronous so blacklist failures propagate out ofbeforeStartVmOnKvmand abort VM start.Verification:
git diff --checkmvn -pl header,plugin/externalStorage,plugin/xinfini,plugin/expon,plugin/zbs -am -DskipTests compileNotes:
2ad18a5ad1,57fe48cd27,e2d4f68bc4.Jira: ZSTAC-86444
Related: ZSTAC-85124
sync from gitlab !10399