]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commit
get_latest_image_version_deb(): run apt-get update 562/head
authorZack Cerza <zack@redhat.com>
Tue, 7 Jul 2015 22:42:05 +0000 (16:42 -0600)
committerZack Cerza <zack@redhat.com>
Tue, 7 Jul 2015 23:26:58 +0000 (17:26 -0600)
commitf24a55f6505a87da0b0154d4a1245a84dbc0aa9a
tree2b9f46779f9060f2f7101ab11c03472cb5a156e8
parentc59b9aa7f2a45b6130eaac331dec8e6bd98371ac
get_latest_image_version_deb(): run apt-get update

When we were still using Chef, we accidentally ran it twice on downburst
VMs during scheduled jobs: once before the kernel task, and once after.
Now that we're using Ansible, and not running the one before, and
because the kernel task is special and runs before most tasks (even the
ansible task that might be part of the job), the kernel task might run
before apt has refreshed its cache. This is more likely to be a problem
on VMs, because their cache is certainly more stale, but could affect
physical hosts as well.

Make all deb-based systems update their cache before attempting to
install a kernel.

Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/task/kernel.py