Migrating git repos to OpenDev

Doug Hellmann doug at doughellmann.com
Mon Apr 22 00:50:16 UTC 2019


"Clark Boylan" <cboylan at sapwetik.org> writes:

> Hello everyone!
>
> The Infra team, no, OpenDev Infra team, has completed the initial work
> to migrate to a more flexible git hosting platform. Gerrit is now
> hosted at review.opendev.org (with redirects from review.openstack.org
> in place). Our git mirroring has transitioned from git.openstack.org,
> git.airshipit.org, git.starlingx.io, and git.zuul-ci.org to
> http(s)://opendev.org. We have put in place redirects from these old
> domains to the new domain. If you see James Blair at the summit and
> appreciate these redirects: buy him a beverage.

So does that mean that old git:// URLs in remotes will need to be
updated in local copies? For example, in a local working copy I have
this output:

$ git remote -v
gerrit ssh://doug-hellmann@review.openstack.org:29418/openstack/releases.git (fetch)
gerrit ssh://doug-hellmann@review.openstack.org:29418/openstack/releases.git (push)
origin git://git.openstack.org/openstack/releases (fetch)
origin git://git.openstack.org/openstack/releases (push)

$ git remote update
Fetching origin
fatal: unable to connect to git.openstack.org:
git.openstack.org[0: 23.253.125.17]: errno=No route to host
git.openstack.org[1: 2001:4800:7817:103:be76:4eff:fe04:e3e3]:
errno=Network is unreachable

error: Could not fetch origin
Fetching gerrit
remote: Counting objects: 185, done
remote: Finding sources: 100% (127/127)
remote: Total 127 (delta 75), reused 103 (delta 75)
Receiving objects: 100% (127/127), 54.07 KiB | 1.00 MiB/s, done.
Resolving deltas: 100% (75/75), completed with 33 local objects.
>From ssh://review.openstack.org:29418/openstack/releases
   7f9656b69..b32f07138  master     -> gerrit/master

So the gerrit remote works using review.openstack.org but the origin
remote does not work using git.openstack.org.

If I change the URL for the origin remote to
https://opendev.org/openstack/releases it works fine. Before I do that
in all of my sandboxes, do I need to, or are those old URLs expected to
work?

-- 
Doug



More information about the openstack-discuss mailing list