Deleted KVM host is automatically re-added to the cluster after reboot
- Lingua principale
- Java
- Stelle
- 3.1k
- Fork
- 1.4k
- Merge medio
- 6g 19h
- PR unite (30g)
- 32
Descrizione
### problem
We removed a host from a CloudStack cluster containing multiple KVM hosts. Before deletion, the host was placed into maintenance mode, as required by CloudStack in order to remove it safely.
After the host had been deleted from CloudStack, the underlying physical server was rebooted because updates had been applied. The reboot itself was not expected to have any effect on CloudStack, since the host had already been removed from the management plane.
Unexpectedly, after the reboot, CloudStack rediscovered the machine and added it back to the same cluster as a new host. We also verified in the CloudStack database that the host entry had first been deleted and then recreated as a new record.
This behavior suggests that CloudStack is still able to rediscover a previously removed KVM host when the machine comes back online, even though it had already been deleted from CloudStack.
Expected behavior:
Once a host has been removed from CloudStack, rebooting the underlying physical server should not cause the host to be automatically rediscovered and re-added to the same cluster.
Actual behavior:
The deleted host was automatically added back to the cluster as a new host after the physical server reboot.
Environment:
CloudStack: 4.22.1.0
Hypervisor: KVM
Cluster: multiple hosts
Host state before deletion: maintenance mode
Host status after deletion: removed from CloudStack
Database observation: host entry was deleted and later recreated as a new entry
Additional details:
We did not manually re-add the host after deletion.
The host appears to have been rediscovered automatically by CloudStack after the reboot.
The issue occurred in a multi-host cluster environment.
### versions
CloudStack version: 4.22.1.0
OS and database versions:
We observed this behavior in two CloudStack installations:
Management Server OS: Ubuntu 24.04 LTS
Database: MySQL 8.x
KVM Host OS: AlmaLinux 9.8 and Ubuntu 24.04 LTS
### The steps to reproduce the bug
1. Migrate all VMs off the host.
2. Put the host into maintenance mode.
3. Remove the host from the cluster in CloudStack.
4. Reboot the physical server.
### What to do about it?
_No response_
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia con i quattro passaggi per la riproduzione e ispeziona la PR aperta #13719 per l indagine in corso. Il lavoro è completato quando un host rimosso da un cluster non viene riscoperto o ricreato automaticamente dopo il riavvio del suo server fisico.
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à
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 25/100