]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Enable FOG reimage by default for all machine types
authorVasu Kulkarni <vasu@redhat.com>
Wed, 14 Feb 2018 17:33:01 +0000 (09:33 -0800)
committerVasu Kulkarni <vasu@redhat.com>
Wed, 19 Sep 2018 19:37:02 +0000 (12:37 -0700)
the downside: you can't control from teuthology.yaml what
machines can be enabled for FOG

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
teuthology/lock/ops.py

index 502297f454c32db6785bd40c41425702116779c4..e6815d7833da777d48251467f6ee1903c96fb807 100644 (file)
@@ -80,8 +80,7 @@ def lock_many(ctx, num, machine_type, user=None, description=None,
         # Only query for os_type/os_version if non-vps and non-libcloud, since
         # in that case we just create them.
         vm_types = ['vps'] + teuthology.provision.cloud.get_types()
-        reimage_types = teuthology.provision.fog.get_types()
-        if machine_type not in vm_types + reimage_types:
+        if machine_type not in vm_types:
             if os_type:
                 data['os_type'] = os_type
             if os_version:
@@ -110,7 +109,7 @@ def lock_many(ctx, num, machine_type, user=None, description=None,
                         unlock_one(ctx, machine, user)
                     ok_machs = keys.do_update_keys(ok_machs.keys())[1]
                 return ok_machs
-            elif machine_type in reimage_types:
+            else:
                 reimaged = dict()
                 console_log_conf = dict(
                     logfile_name='{shortname}_reimage.log',