summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Rozet <trozet@redhat.com>2018-11-14 13:48:13 -0500
committerTim Rozet <trozet@redhat.com>2018-11-14 13:48:13 -0500
commit1fd4b57f67071ac50995ebf6f38a64c9634a9c10 (patch)
treebd03920c6af406835cbfbc9ca51fb530a1bfe87b
parent9066cb52523aeb4a5b98c634aa6616233b0c0237 (diff)
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 <trozet@redhat.com>
-rw-r--r--apex/builders/undercloud_builder.py1
1 files changed, 1 insertions, 0 deletions
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)}