f-75: e2e: 33-bridge vérifie le confinement de interface_ip entre deux hôtes, attente de cloud-init dans 23 et 27 #75

Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
GnomeZworc 2026-10-23 10:28:11 +02:00
commit 668790a1cc
Signed by: nicolas.boufideline
GPG key ID: 4406BBBF8845D632
6 changed files with 70 additions and 6 deletions

View file

@ -9,6 +9,7 @@ check "VPC vp-t27" vpc_create vp-t27 10.27.0.0/16
check "subnet sn-t27" subnet_create sn-t27 vp-t27 2701 10.27.1.0/24
check "VM t27-r, user_data qui écrit une ligne par exécution" vm_launch t27-r --nic sn-t27=10.27.1.10 --sshkey "${KEY}" --user-data "${UD64}"
check "t27-r joignable" vm_wait vp-t27 10.27.1.10
check "t27-r : cloud-init terminé au premier démarrage" vm_cloud_init_done vp-t27 10.27.1.10
check "t27-r : runcmd exécuté une fois au premier démarrage" test "$(vm_ssh vp-t27 10.27.1.10 'wc -l < /var/tmp/t27-runcmd')" -eq 1
BOOT=$(vm_boot_id vp-t27 10.27.1.10)
QEMU=$(pgrep -f "${VOLUMES}/t27-r.qcow2" | sort | tr '\n' ' ')
@ -16,6 +17,7 @@ info "boot_id ${BOOT:-illisible} ; processus QEMU ${QEMU:-introuvable}"
check "prérequis : boot_id et processus QEMU relevés" test -n "${BOOT}" -a -n "${QEMU}"
check "t27-r : redémarrage demandé depuis l'invité" vm_ssh vp-t27 10.27.1.10 'sudo systemd-run --on-active=2 systemctl reboot'
check "t27-r : redémarrée (boot_id changé) et de nouveau joignable" wait_reboot vp-t27 10.27.1.10 "${BOOT}"
check "t27-r : cloud-init terminé après le redémarrage" vm_cloud_init_done vp-t27 10.27.1.10
check "t27-r : toujours running pour l'API" test "$(api_state vms/t27-r)" = running
check "t27-r : même processus QEMU (redémarrage invité, pas de recréation)" test "$(pgrep -f "${VOLUMES}/t27-r.qcow2" | sort | tr '\n' ' ')" = "${QEMU}"
check "t27-r : même adresse 10.27.1.10" has_addr vp-t27 10.27.1.10