f-82: e2e: ping et cloud-init sous Rocky 10, temps des témoins 46 et 47 #82

Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
GnomeZworc 2026-11-01 09:43:16 +01:00
commit 1cec60587a
Signed by: nicolas.boufideline
GPG key ID: 4406BBBF8845D632
6 changed files with 26 additions and 4 deletions

View file

@ -77,7 +77,7 @@ vm_ssh () {
local vpc="${1}" ip="${2}"
shift 2
ip netns exec "${vpc}" ssh -i "${VM_KEY}" -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null \
-o LogLevel=ERROR -o ConnectTimeout=3 -o BatchMode=yes -n "syonad@${ip}" "$@"
-o LogLevel=ERROR -o ConnectTimeout=3 -o BatchMode=yes -o GSSAPIAuthentication=no -n "syonad@${ip}" "$@"
}
vm_wait () {
@ -193,7 +193,12 @@ vm_meta () {
}
vm_cloud_init_done () {
local rc
vm_ssh "${1}" "${2}" "timeout ${3:-300} cloud-init status --wait"
rc=$?
[ "${rc}" -eq 0 ] && return 0
echo "code ${rc}, $(vm_ssh "${1}" "${2}" 'cloud-init status --long' 2>&1 | sed -n '/^extended_status:/,$p' | tr -s '\n ' ' ')"
return "${rc}"
}
vm_boot_id () {