apache / apache/cloudstack

Retrying host maintenance falsely marks already-migrated VMs as stopped

オープン
#14,026 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
component:management-server type:bug
主要言語
Java
スター
3.1k
フォーク
1.4k
平均マージ
6日 19時間
マージ済み PR(30日)
32

説明

CLOUDSTACK VERSION
4.22.1.1, KVM hypervisor

SUMMARY
Putting a host into maintenance moves its VMs off one at a time, which
can take a while. Requesting maintenance again on the same host before
the first request finishes causes it to retry moving every VM still
listed against that host, including ones already moved. That retry
fails as expected, but for some VMs it confuses CloudStack into
thinking the VM was powered off, and it gets marked stopped even though
it was never touched and kept running the whole time.

EXPECTED
Requesting maintenance again should not retry VMs already moved.

ACTUAL
Some already-moved VMs get falsely marked stopped.

NOTE
The false "stopped" status seems to come from CloudStack losing track
of which VMs are on which host. That could plausibly happen from causes
other than this one, but we only have evidence of it via this scenario.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず、CloudStack 4.22.1.1 の KVM ホストでメンテナンス要求を繰り返し実行して再現し、次にホストメンテナンス VM の移行フローと、ホストの VM リストがどのように更新されるかを追跡します。2 回目の要求で、すでに移行された VM がスキップされ、それらの VM が停止としてマークされるのではなく実行中のままになれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java
領域
cloud, infrastructure
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
活発
明瞭さ
おおむね明確
初心者へのやさしさ
42/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。