]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
Merge pull request #151 from ceph/wip-distro-kernel
authorZack Cerza <zack@cerza.org>
Mon, 9 Dec 2013 21:16:33 +0000 (13:16 -0800)
committerZack Cerza <zack@cerza.org>
Mon, 9 Dec 2013 21:16:33 +0000 (13:16 -0800)
Wip distro kernel

1  2 
schedule_suite.sh
teuthology/misc.py
teuthology/run.py
teuthology/task/kernel.py

Simple merge
Simple merge
index e96a9df26137c449787a4f832fbebf422499916b,308b9a8c62ec89d6627dfc51c79c49cf973c9a6e..6cfbf57c8fb2c6c680c246cf36d2d90d0187bb8e
@@@ -135,15 -135,13 +135,16 @@@ def main(ctx)
          {'internal.check_lock': None},
          {'internal.connect': None},
          {'internal.check_conflict': None},
 -        {'internal.check_ceph_data': None},
 -        {'internal.vm_setup': None},
      ])
 +    if not ctx.config.get('use_existing_cluster', False):
 +        init_tasks.extend([
 +            {'internal.check_ceph_data': None},
 +            {'internal.vm_setup': None},
 +        ])
      if 'kernel' in ctx.config:
+         sha1 = ctx.config['kernel'].get('sha1')
          distro = get_distro(ctx)
-         if distro == 'ubuntu':
+         if (distro == 'ubuntu') or (sha1 == 'distro'):
              init_tasks.append({'kernel': ctx.config['kernel']})
      init_tasks.extend([
          {'internal.base': None},
index 9d318055bde7ea9ee30925fed36546de6611f13a,67a461e0c20c7b33656e3a60cbbf2c8facd4d8c9..cf6fc937218b69b9252f5398b14c8e7e237656b0
@@@ -218,15 -186,15 +221,21 @@@ def install_firmware(ctx, config)
              )
  
  def download_deb(ctx, config):
 +    """
 +    Download a Debian kernel and copy the assocated linux image.
 +
 +    :param ctx: Context
 +    :param config: Configuration
 +    """
      procs = {}
+     #Don't need to download distro kernels
      for role, src in config.iteritems():
          (role_remote,) = ctx.cluster.only(role).remotes.keys()
+       if src.find('distro') >= 0:
+             log.info('Installing newest kernel distro');
+             return
+             
          if src.find('/') >= 0:
              # local deb
              log.info('Copying kernel deb {path} to {role}...'.format(path=src,