From: David Galloway Date: Fri, 10 Jul 2026 21:13:46 +0000 (-0400) Subject: builder-reimage: retain network configuration when commissioning X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=08b128e47760cabe962cab276759887b638d72d8;p=ceph-build.git 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 --- 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