From 9803817004ea6a383518a4e62c163a0aac376d1b Mon Sep 17 00:00:00 2001 From: Michal Date: Tue, 17 Mar 2026 11:45:16 +0000 Subject: [PATCH] fix: reprovision SSH reboot is expected to close connection The SSH connection closing during reboot is normal, not an error. Co-Authored-By: Claude Opus 4.6 (1M context) --- bastion/src/cli/src/commands/reprovision.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/bastion/src/cli/src/commands/reprovision.ts b/bastion/src/cli/src/commands/reprovision.ts index faa1ee4..39802a4 100644 --- a/bastion/src/cli/src/commands/reprovision.ts +++ b/bastion/src/cli/src/commands/reprovision.ts @@ -86,12 +86,11 @@ export function registerReprovisionCommand(parent: Command): void { try { execFileSync("ssh", sshArgs, { stdio: "inherit" }); - console.log(""); - console.log("Machine is rebooting into PXE. Install will start automatically."); } catch { - console.log(""); - console.log("SSH failed. Reboot the machine manually into PXE (e.g. via IPMI/KVM)."); + // SSH connection closing during reboot is expected } + console.log(""); + console.log("Machine is rebooting into PXE. Install will start automatically."); } else { console.log(""); console.log("No IP known for this machine. Reboot it manually into PXE.");