Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

Restarting a KVM VMs after its host fails when the management server is also unreachable

未關閉
#14,230 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
5/5
預估耗時
一週以上
新手友好度
25/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
java, kubernetes, python

研究方向

The issue describes a distributed systems problem requiring a new cluster mechanism for VM HA. Start by reviewing the existing KVM agent code and the linked PR #13589 and issue #14206. Understand how CloudStack currently handles host failures and VM restarts via the management server. Research Corosync/Pacemaker and LINSTOR/drbd-reactor integration possibilities. The goal is to design a system where agents can autonomously restart VMs during a management server outage.

由索引模型根據 Issue 內容生成。

描述

component:kvm type:new-feature
The required feature described as a wish

Today if a KVM host fails and the management server and/or database is unreachable at the same moment (a remote site outage, a network partition, or the management server itself running as a guest on the failing host) CloudStack cannot restart the affected VMs. Every HA and DRS decision path runs inside the management server process and depends on the database.

I propose to add a small, storage-aware cluster mechanism that can restart a VM on a surviving host using its own quorum and fencing, and hands control back cleanly once the management server returns. This might require the Agents to actually keep shadow copy of each of the VMs configuration (of just enough per-VM data to rebuild the libvirt domain: disk identifiers, NIC MACs, CPU/memory, bridge/VLAN mapping). Possibly the agents can exchange information with each other and in case one Agent looses connectivity to management server act as a proxy towards the management server?

This might be an addition/similar or even fix to the https://github.com/apache/cloudstack/pull/13589 , https://github.com/apache/cloudstack/issues/14206 , or rely on some other mechanisms as surviving hosts must agree "host A (and possibly the management server) is gone" without a central arbiter and must not false-positive on an ordinary network hiccup,

Options I see as viable:

  • Generic - Corosync for membership, Pacemaker for orchestration, IPMI/BMC STONITH for fencing.
  • Storage specific - LINSTOR + drbd-reactor, CloudStack already ships a maintained LINSTOR primary storage plugin whose KVM-side driver talks straight to the LINSTOR controller, bypassing the management server for volume attach, and drbd quorum enforces split-brain protection, so it might be a nice addition.
主要語言
Java
星號
3.1k
分支
1.4k
平均合併
6 天 12 小時
30 天內合併 PR
26

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

apache/cloudstack 的其他 Issue

查看 apache/cloudstack 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。