apache / apache/cloudstack

Retrying host maintenance falsely marks already-migrated VMs as stopped

Aperta
#14,026 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
component:management-server type:bug
Lingua principale
Java
Stelle
3.1k
Fork
1.4k
Merge medio
6g 19h
PR unite (30g)
32

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia riproducendo richieste di manutenzione ripetute su un host KVM in CloudStack 4.22.1.1, quindi segui il flusso di migrazione della VM di manutenzione dell'host e il modo in cui viene aggiornata la lista delle VM dell'host. Il lavoro è completato quando una seconda richiesta salta le VM già migrate e tali VM rimangono in esecuzione invece di essere contrassegnate come arrestate.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
java
Ambito
cloud, infrastructure
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Attiva
Chiarezza
Abbastanza chiara
Idoneità per principianti
42/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.