From 08b128e47760cabe962cab276759887b638d72d8 Mon Sep 17 00:00:00 2001 From: David Galloway Date: Fri, 10 Jul 2026 17:13:46 -0400 Subject: [PATCH] builder-reimage: retain network configuration when commissioning Pass skip_networking=True to machine.commission(), the API equivalent of checking "Retain network configuration" in the MAAS UI, so a machine commissioned by the reimage job keeps its existing interface configuration instead of having it replaced by whatever commissioning discovers. Signed-off-by: David Galloway --- builder-reimage/build/Jenkins_builder-reimage.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/builder-reimage/build/Jenkins_builder-reimage.py b/builder-reimage/build/Jenkins_builder-reimage.py index bc7d627f4..32c0e7987 100755 --- a/builder-reimage/build/Jenkins_builder-reimage.py +++ b/builder-reimage/build/Jenkins_builder-reimage.py @@ -150,7 +150,10 @@ async def release_machine(machine): # ------------------------------------------------------------------------- async def commission_machine(machine): if get_normalized_status(machine) == "new": - await machine.commission() + # skip_networking is the API equivalent of checking "Retain network + # configuration" in the MAAS UI: keep the machine's existing interface + # config instead of replacing it with what commissioning discovers. + await machine.commission(skip_networking=True) # ------------------------------------------------------------------------- # Reimage -- 2.47.3