From: Tim Rozet Date: Wed, 14 Nov 2018 18:48:13 +0000 (-0500) Subject: Fix bad yum cache during repo update X-Git-Tag: opnfv-8.0.0~20^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=1fd4b57f67071ac50995ebf6f38a64c9634a9c10;p=apex.git 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 --- 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)}