Skip to content

Instantly share code, notes, and snippets.

@odyssey4me
Last active March 24, 2020 12:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save odyssey4me/e35cd1c561057603b6fd98dcbab22798 to your computer and use it in GitHub Desktop.
Save odyssey4me/e35cd1c561057603b6fd98dcbab22798 to your computer and use it in GitHub Desktop.
TripleO handy notes
# 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
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