From: David Galloway Date: Wed, 31 Dec 2025 21:33:41 +0000 (-0500) Subject: maas.py: Don't throw an error if machine's already released X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0fbb92777f2e3f7e18d496665dabbd324f28f4fc;p=teuthology.git maas.py: Don't throw an error if machine's already released Signed-off-by: David Galloway --- diff --git a/teuthology/provision/maas.py b/teuthology/provision/maas.py index a65ed2679..60235be41 100644 --- a/teuthology/provision/maas.py +++ b/teuthology/provision/maas.py @@ -398,6 +398,11 @@ class MAAS(object): ).json() status = resp.get("status_name", "").lower() + if status in {"ready", "new"}: + self.log.info( + f"'{self.shortname}' already released (state={status})" + ) + return if status not in {"disk erasing", "releasing"}: raise RuntimeError( f"Machine '{self.shortname}' release failed, "