Merge "Ensure yum cache is ready before update"
authorJenkins <jenkins@review.openstack.org>
Tue, 18 Jul 2017 11:51:07 +0000 (11:51 +0000)
committerGerrit Code Review <review@openstack.org>
Tue, 18 Jul 2017 11:51:07 +0000 (11:51 +0000)
extraconfig/tasks/yum_update.sh
puppet/services/openvswitch.yaml

index 8f80458..a2a04e8 100755 (executable)
@@ -64,6 +64,9 @@ fi
 
 command_arguments=${command_arguments:-}
 
+# Always ensure yum has full cache
+yum makecache || echo "Yum makecache failed. This can cause failure later on."
+
 # yum check-update exits 100 if updates are available
 set +e
 check_update=$(yum check-update 2>&1)
index 0edd113..d8061d4 100644 (file)
@@ -163,6 +163,8 @@ outputs:
                 owner: root
                 group: root
                 mode: 0750
+            - name: Make yum cache.
+              command: yum makecache
             - name: Download OVS packages.
               command: yumdownloader --destdir /root/OVS_UPGRADE --resolve openvswitch
             - name: Get rpm list for manual upgrade of OVS.