]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Skip reimaging on unsupported machine types
authorZack Cerza <zack@redhat.com>
Fri, 14 Jan 2022 19:50:49 +0000 (12:50 -0700)
committerZack Cerza <zack@redhat.com>
Fri, 4 Mar 2022 23:24:51 +0000 (16:24 -0700)
Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/lock/ops.py

index 41fc9ff192e4526b1b24b6a1a955fd41e4ed3e10..853879a6a9772862e7d26b66517ae8e69912568c 100644 (file)
@@ -297,6 +297,10 @@ def push_new_keys(keys_dict, reference):
 
 
 def reimage_machines(ctx, machines, machine_type):
+    reimage_types = teuthology.provision.get_reimage_types()
+    if machine_type not in reimage_types:
+        log.info(f"Skipping reimage of {machines.keys()} because {machine_type} is not in {reimage_types}")
+        return machines
     # Setup log file, reimage machines and update their keys
     reimaged = dict()
     console_log_conf = dict(