apache / apache/cloudstack

Retrying host maintenance falsely marks already-migrated VMs as stopped

Offen
#14,026 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
component:management-server type:bug
Vorherrschende Sprache
Java
Sterne
3.1k
Forks
1.4k
Ø Merge
6 T. 19 Std.
Gemergte PRs (30 T.)
32

Beschreibung

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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne damit, wiederholte Wartungsanfragen auf einem KVM-Host in CloudStack 4.22.1.1 zu reproduzieren, und verfolge dann den Migrationsablauf der Host-Wartungs-VM sowie die Aktualisierung der VM-Liste des Hosts. Als erledigt gilt die Aufgabe, wenn eine zweite Anfrage VMs überspringt, die bereits migriert wurden, und diese VMs weiterlaufen, statt als gestoppt markiert zu werden.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
java
Bereich
cloud, infrastructure
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Aktiv
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
42/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.