From 46a5277c7775b8fffea6cc58da76fb3ed1409ebc Mon Sep 17 00:00:00 2001 From: "juvenal.diaz" Date: Wed, 7 Oct 2026 21:22:16 -0600 Subject: [PATCH] fix: reassert Pimox registry path on cluster start --- lib/jeannie/commands.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/lib/jeannie/commands.sh b/lib/jeannie/commands.sh index 86cdc37..2dd0def 100644 --- a/lib/jeannie/commands.sh +++ b/lib/jeannie/commands.sh @@ -191,6 +191,22 @@ start_remote_kubernetes_services() { "sudo systemctl start containerd && sudo systemctl start kubelet" } +ensure_pimox_registry_recovery_path() { + local registry_endpoint="${LAB_REGISTRY_ENDPOINT:-${TF_VAR_registry_endpoint:-}}" + + if [[ "${LAB_CLUSTER_PROFILE:-debian}" != "pimox" ]]; then + return 0 + fi + if [[ -z "${registry_endpoint}" ]]; then + echo "Skipping Pimox registry recovery wiring because LAB_REGISTRY_ENDPOINT is unset." + return 0 + fi + + echo "--> Reasserting Pimox registry recovery path for ${registry_endpoint}..." + ensure_pimox_registry_endpoint_forwarding "${registry_endpoint}" + ensure_pimox_containerd_registry_refresh "${registry_endpoint}" +} + wait_for_ssh_target() { local target="$1" local timeout_seconds="${2:-180}" @@ -553,6 +569,7 @@ start_cluster() { start_pimox_control_plane_vm start_pimox_worker_vms wait_for_cluster_ssh_targets + ensure_pimox_registry_recovery_path if [[ -n "${LAB_CLUSTER_CONTROL_PLANE_LAN_IP:-}" ]]; then control_plane_target="${LAB_CLUSTER_CONTROL_PLANE_USER:-${LAB_DEBIAN_USER:-jv}}@${LAB_CLUSTER_CONTROL_PLANE_LAN_IP}"