Fix bad yum cache during repo update 35/65135/1
authorTim Rozet <trozet@redhat.com>
Wed, 14 Nov 2018 18:48:13 +0000 (13:48 -0500)
committerTim Rozet <trozet@redhat.com>
Wed, 14 Nov 2018 18:48:13 +0000 (13:48 -0500)
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>
apex/builders/undercloud_builder.py

index ec75f3d..d9e2333 100644 (file)
@@ -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)}