From: Zack Cerza Date: Fri, 14 Jan 2022 19:50:49 +0000 (-0700) Subject: Skip reimaging on unsupported machine types X-Git-Tag: 1.2.0~194^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e94f15e4b53740d4dccee228ba4a4ec4f58a2325;p=teuthology.git Skip reimaging on unsupported machine types Signed-off-by: Zack Cerza --- diff --git a/teuthology/lock/ops.py b/teuthology/lock/ops.py index 41fc9ff1..853879a6 100644 --- a/teuthology/lock/ops.py +++ b/teuthology/lock/ops.py @@ -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(