From a480cc73df5f91376363173f0f1b540c60567123 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 25 Sep 2025 15:29:33 -0400 Subject: [PATCH] Add connectivity check to esxi ident bringup If using the identity image bringup with dhcp, be more careful about waiting for connectivity before proceeding. --- confluent_osdeploy/esxi7/initramfs/bin/dcuiweasel | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/confluent_osdeploy/esxi7/initramfs/bin/dcuiweasel b/confluent_osdeploy/esxi7/initramfs/bin/dcuiweasel index f9e02624..6132feec 100644 --- a/confluent_osdeploy/esxi7/initramfs/bin/dcuiweasel +++ b/confluent_osdeploy/esxi7/initramfs/bin/dcuiweasel @@ -73,6 +73,19 @@ if [ -e /tmp/confluentident/cnflnt.yml ]; then hmacfile=$(mktemp) ln -s /opt/confluent/bin/clortho /opt/confluent/bin/genpasshmac /opt/confluent/bin/genpasshmac $passfile $passcrypt $hmacfile $hmackeyfile + echo -n 'Checking connectivity to server: ' + maxwait=30 + while ! /opt/confluent/bin/apiclient -c >& /dev/null; do + echo -n '.' + sleep 1 + maxwait=$((maxwait - 1)) + if [ $maxwait -le 0 ]; then + echo "Unable to contact deployment server, verify network connectivity" + echo "A debug session has been made available on Alt-F1" + sleep 30 + maxwait=30 + done + echo echo -n 'Registering new API key with deployment server: ' /opt/confluent/bin/apiclient -p $hmacfile /confluent-api/self/registerapikey $passcrypt echo