fixed HA VM timeout during mm
This commit is contained in:
@@ -5,6 +5,37 @@ TEST_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
source "${TEST_ROOT}/tests/testlib.sh"
|
||||
source "${TEST_ROOT}/inc/evacuate-proxmox-node.sh"
|
||||
|
||||
test_stopped_ha_guest_does_not_block_wait() {
|
||||
LOCAL_NODE=node1
|
||||
HA_WAIT_SECONDS=0
|
||||
get_local_guests() {
|
||||
printf '%s\n' \
|
||||
$'100\x1fqemu\x1fstopped\x1fshutdown-ha-vm\x1f1024' \
|
||||
$'101\x1fqemu\x1frunning\x1fnon-ha-vm\x1f1024'
|
||||
}
|
||||
get_ha_guest_ids() {
|
||||
printf '%s\n' 100
|
||||
}
|
||||
wait_for_ha_evacuation
|
||||
}
|
||||
|
||||
test_running_ha_guest_blocks_wait() {
|
||||
LOCAL_NODE=node1
|
||||
HA_WAIT_SECONDS=0
|
||||
get_local_guests() {
|
||||
printf '%s\n' $'100\x1fqemu\x1frunning\x1frunning-ha-vm\x1f1024'
|
||||
}
|
||||
get_ha_guest_ids() {
|
||||
printf '%s\n' 100
|
||||
}
|
||||
wait_for_ha_evacuation
|
||||
}
|
||||
|
||||
assert_success "stopped HA guest does not block evacuation wait" \
|
||||
test_stopped_ha_guest_does_not_block_wait
|
||||
assert_failure "running HA guest still blocks evacuation wait" \
|
||||
test_running_ha_guest_blocks_wait
|
||||
|
||||
set_routing_fixture() {
|
||||
MIGRATION_NODES=(node2 node3)
|
||||
NODE_STORAGE_CACHE=()
|
||||
|
||||
Reference in New Issue
Block a user