]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
maas.py: Don't throw an error if machine's already released
authorDavid Galloway <david.galloway@ibm.com>
Wed, 31 Dec 2025 21:33:41 +0000 (16:33 -0500)
committerDavid Galloway <david.galloway@ibm.com>
Wed, 31 Dec 2025 21:34:02 +0000 (16:34 -0500)
Signed-off-by: David Galloway <david.galloway@ibm.com>
teuthology/provision/maas.py

index a65ed26794329d92ef71ae13957f535288f47cc1..60235be41a06c499e5d7c0fcc427f13ce79a3cf8 100644 (file)
@@ -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, "