summaryrefslogtreecommitdiffstats
path: root/xci/scripts/update-osa-version-files.sh
diff options
context:
space:
mode:
authorMarkos Chandras <mchandras@suse.de>2018-03-13 12:03:55 +0000
committerMarkos Chandras <mchandras@suse.de>2018-03-13 12:03:55 +0000
commitaecfc01d7eb193f2971236a195b3d8d7e007a212 (patch)
tree3dc67ed175e6f69acd6227ab6c1c9cdcab7837d7 /xci/scripts/update-osa-version-files.sh
parentc6ea45f88ce8c11e7b0e35b6d1c8cf233ebd556c (diff)
xci: osa: Switch git repositories to github.com
CI sometimes fails with the following error "msg": "fatal: unable to access 'https://git.openstack.org/openstack/dragonflow/': Failed to connect to git.openstack.org port 443: Connection timed out" We assume that the upstream OpenStack mirrors may get very busy at times or the connectivity between the CI and the OpenStack repos is not very stable. As such, lets switch to github.com for the majority of OSA repositories such as the roles and the services which may improve the situation. Change-Id: Ia4668d692077a785c76adeda128eb4cf9f4516a7 Signed-off-by: Markos Chandras <mchandras@suse.de>
Diffstat (limited to 'xci/scripts/update-osa-version-files.sh')
-rwxr-xr-xxci/scripts/update-osa-version-files.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/xci/scripts/update-osa-version-files.sh b/xci/scripts/update-osa-version-files.sh
index 42405a3f..bb15fcba 100755
--- a/xci/scripts/update-osa-version-files.sh
+++ b/xci/scripts/update-osa-version-files.sh
@@ -96,6 +96,10 @@ fi
cp $tempdir/openstack-ansible/playbooks/defaults/repo_packages/openstack_services.yml ${releng_xci_base}/installer/osa/files/.
cp $tempdir/openstack-ansible/global-requirement-pins.txt ${releng_xci_base}/installer/osa/files/.
+# Switch sources from git.openstack.org to github.com
+sed -i "s@^src:.*git\.openstack\.org/\(.*\)@src: https://github\.com/\1@g" ${releng_xci_base}/installer/osa/files/ansible-role-requirements.yml
+sed -i "s@\(^.*git_repo:\).*git\.openstack\.org/\(.*\)@\1 https://github\.com/\2@g" ${releng_xci_base}/installer/osa/files/openstack_services.yml
+
popd &> /dev/null
printme ""