add docs/way of installing from external mirror

Bug #1783237 reported by Satish Patel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Fix Released
Wishlist
Jesse Pretorius

Bug Description

Today i have started upgrading PIKE to QUEENS and my bootstrap took 5 hours to finish which is just checking out roles and found following.

Why don't we switch all URL in "ansible-role-requirements.yml" point to github.com ?

------------------ git.openstack.org ------Took 4 minute --------------

[root@ostack-osa /tmp]# time git clone https://git.openstack.org/openstack/openstack-ansible-rsyslog_client
Cloning into 'openstack-ansible-rsyslog_client'...
remote: Counting objects: 1224, done.
remote: Compressing objects: 100% (574/574), done.
remote: Total 1224 (delta 733), reused 1079 (delta 612)
Receiving objects: 100% (1224/1224), 266.25 KiB | 0 bytes/s, done.
Resolving deltas: 100% (733/733), done.

real 4m15.922s
user 0m0.203s
sys 0m0.118s

---------------- github.com ------------Took 1 second ------------------

[root@ostack-osa /tmp]# rm -rf openstack-ansible-rsyslog_client
[root@ostack-osa /tmp]#
[root@ostack-osa /tmp]# time git clone https://github.com/openstack/openstack-ansible-rsyslog_client
Cloning into 'openstack-ansible-rsyslog_client'...
remote: Counting objects: 1224, done.
remote: Compressing objects: 100% (19/19), done.
remote: Total 1224 (delta 7), reused 13 (delta 0), pack-reused 1204
Receiving objects: 100% (1224/1224), 270.43 KiB | 0 bytes/s, done.
Resolving deltas: 100% (747/747), done.

real 0m1.118s
user 0m0.169s
sys 0m0.105s

Revision history for this message
Jesse Pretorius (jesse-pretorius) wrote :

github's content is a mirror copy of git.openstack.org and is not guaranteed to be complete, but this can be done - I outlined an approach in a previous attempt to do this [1].

[1] https://review.openstack.org/434813

Revision history for this message
Jean-Philippe Evrard (jean-philippe-evrard) wrote :

The user can also override the ansible-role-requirements with its own a-r-r by exporting an env variable.

Revision history for this message
Satish Patel (satish-txt) wrote :

I understand we can do s/git.openstack.org/github.com/ but that me and you know underline code, new person has no idea and he will be endup like me sitting and waiting for 5 hour or more to just finish checkout, I can understand hour but its takes multiple hours sometime..

If we have some kind of check like `curl git.openstack.org` if slow do github.com

OR

Put that in documentation like if git.openstack.org is slow please use github

Changed in openstack-ansible:
importance: Undecided → Critical
importance: Critical → Undecided
Mohammed Naser (mnaser)
Changed in openstack-ansible:
importance: Undecided → Wishlist
summary: - git.openstack.org is super slow, we should switch to github.com
+ add docs/way of installing from external mirror
Changed in openstack-ansible:
status: New → Confirmed
Revision history for this message
Jesse Pretorius (jesse-pretorius) wrote :
Revision history for this message
Jean-Philippe Evrard (jean-philippe-evrard) wrote :

This way to do it is already in our reference documentation, but we can add links to it as part of a user story.

Changed in openstack-ansible:
assignee: nobody → Jesse Pretorius (jesse-pretorius)
Revision history for this message
Damian Dąbrowski (damiandabrowski) wrote :

Recently, https://review.opendev.org/c/openstack/openstack-ansible/+/869748 was implemented so `sed` workaround is not needed anymore to switch to github mirrors.

I also believe that opendev.org is more reliable these days.

Changed in openstack-ansible:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.