]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Remove old kernels before installing anything
authorZack Cerza <zack@redhat.com>
Fri, 12 Jun 2015 19:24:12 +0000 (13:24 -0600)
committerZack Cerza <zack@redhat.com>
Fri, 12 Jun 2015 19:34:30 +0000 (13:34 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/task/kernel.py

index 92cfe27a81c2fe39713509291fdb232b3b21a693..95c67b2491d6c2a683566525f962be28f0132157 100644 (file)
@@ -1092,6 +1092,9 @@ def task(ctx, config):
     need_install = {}  # sha1 to dl, or path to rpm or deb
     need_version = {}  # utsrelease or sha1
     kdb = {}
+
+    remove_old_kernels(ctx)
+
     for role, role_config in config.iteritems():
         # gather information about this remote
         (role_remote,) = ctx.cluster.only(role).remotes.keys()
@@ -1202,8 +1205,6 @@ def task(ctx, config):
         if role_config.get('kdb') is not None:
             kdb[role] = role_config.get('kdb')
 
-    remove_old_kernels(ctx)
-
     if need_install:
         install_firmware(ctx, need_install)
         download_kernel(ctx, need_install)