]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
task/kernel: run apt-get clean before updating to avoid 15090 830/head
authorSamuel Just <sjust@redhat.com>
Fri, 25 Mar 2016 01:26:47 +0000 (18:26 -0700)
committerSamuel Just <sjust@redhat.com>
Tue, 29 Mar 2016 17:24:04 +0000 (10:24 -0700)
Fixes: http://tracker.ceph.com/issues/15090
Signed-off-by: Samuel Just <sjust@redhat.com>
teuthology/task/kernel.py

index cef7f251bee18de5460c9069488ab7a929335c95..ef130ddbbefc6e7e4288e2c14a236df5dd07a7c4 100644 (file)
@@ -975,6 +975,7 @@ def get_latest_image_version_deb(remote, ostype):
     Round-about way to get the newest kernel uname -r compliant version string
     from the virtual package which is the newest kenel for debian/ubuntu.
     """
+    remote.run(args=['sudo', 'apt-get', 'clean'])
     remote.run(args=['sudo', 'apt-get', 'update'])
     output = StringIO()
     newest = ''