From 1fd4b57f67071ac50995ebf6f38a64c9634a9c10 Mon Sep 17 00:00:00 2001 From: Tim Rozet Date: Wed, 14 Nov 2018 13:48:13 -0500 Subject: Fix bad yum cache during repo update When deploying rocky, python2-tripleo-repos fails to install because of a bad yum cache even after updating the repo. This patch just clears the yum cache after updating the repo. Change-Id: I94a68611faf1c3ff89d57c3d877d3336574ce8bb Signed-off-by: Tim Rozet --- apex/builders/undercloud_builder.py | 1 + 1 file changed, 1 insertion(+) diff --git a/apex/builders/undercloud_builder.py b/apex/builders/undercloud_builder.py index ec75f3dc..d9e23337 100644 --- a/apex/builders/undercloud_builder.py +++ b/apex/builders/undercloud_builder.py @@ -70,6 +70,7 @@ def update_repos(image, branch): {con.VIRT_RUN_CMD: "yum-config-manager --add-repo " "https://trunk.rdoproject.org/centos7/{}" "/delorean.repo".format(con.RDO_TAG)}, + {con.VIRT_RUN_CMD: "yum clean all"}, {con.VIRT_INSTALL: "python2-tripleo-repos"}, {con.VIRT_RUN_CMD: "tripleo-repos -b {} {} ceph".format(branch, con.RDO_TAG)} -- cgit 1.2.3-korg