]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
task/kernel: Skip if running in a container
authorZack Cerza <zack@redhat.com>
Mon, 17 Jan 2022 19:29:06 +0000 (12:29 -0700)
committerZack Cerza <zack@redhat.com>
Fri, 4 Mar 2022 23:25:03 +0000 (16:25 -0700)
Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/task/kernel.py

index 892c382f79d20b9253f9add8dbad00627f5f305a..a27b23096c88e63cf0e6045b766c377a7a838397 100644 (file)
@@ -1242,6 +1242,9 @@ def process_role(ctx, config, timeout, role, role_config):
     # gather information about this remote
     (role_remote,) = ctx.cluster.only(role).remotes.keys()
     system_type = role_remote.os.name
+    if role_remote.is_container:
+        log.info(f"Remote f{role_remote.shortname} is a container; skipping kernel installation")
+        return
     if role_config.get('rpm') or role_config.get('deb'):
         # We only care about path - deb: vs rpm: is meaningless,
         # rpm: just happens to be parsed first.  Nothing is stopping