Last active
March 24, 2020 12:53
-
-
Save odyssey4me/e35cd1c561057603b6fd98dcbab22798 to your computer and use it in GitHub Desktop.
TripleO handy notes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Resetting back to the package state | |
rm -rf /usr/share/openstack-tripleo-heat-templates; yum reinstall -y openstack-tripleo-heat-templates | |
# Getting it from gerrit | |
GERRIT_ID="<num>"; \ | |
FOLDER="openstack-tripleo-heat-templates"; \ | |
curl -4 "https://review.opendev.org/changes/${GERRIT_ID}/revisions/current/patch?download" | \ | |
base64 -d | \ | |
sudo patch -d "/usr/share/${FOLDER}/" -p1 | |
# Getting it from a URL | |
PATCH_URL="<url>"; \ | |
FOLDER="openstack-tripleo-heat-templates"; \ | |
curl -4 ${PATCH_URL} | sudo patch -d "/usr/share/${FOLDER}/" -p1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
img_set_name=10-latest_cdn-3cont_2comp_3ceph-ipv4-vxlan-HA | |
dest_dir=/home/rhos-ci/jenkins/workspace/DFG-upgrades-ffu-ffu-upgrade-10-13_director-rhel-virthost-3cont_2comp_3ceph-ipv4-vxlan-HA | |
until false; do | |
if [[ ! -d ${dest_dir}/${img_set_name} ]]; then | |
rm -rf /home/rhos-ci/jenkins/workspace/*_ws-cleanup_* | |
rsync -av --progress ~/images/${img_set_name} ${dest_dir}/ | |
else | |
echo "No copy needed. Waiting 30 secs." | |
sleep 30 | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment