I have been following the guide at https://docs.openstack.org/developer/devstack/ but always errors:

[Call Trace]
[ERROR] /opt/stack/devstack/functions-common:602 git call failed: [git clone git://git.openstack.org/openstack/requirements.git /opt/stack/requirements --branch master]
Error on exit
./stack.sh: line 506: generate-subunit: command not found

So I tried the last command (git clone git://git.openstack.org/openstack/requirements.git /opt/stack/requirements --branch master) manually and got:

Cloning into '/opt/stack/requirements'...
fatal: unable to connect to git.openstack.org:
git.openstack.org[0:]: errno=Connection timed out
git.openstack.org[1: 2001:4800:7819:103:be76:4eff:fe06:63c]: errno=Network is unreachable

I think this is due to using git:// instead of http:// because when I try replacing it, I get:

stack@DevStack:~/devstack$ git clone http://git.openstack.org/openstack/requirements.git /opt/stack/requirements --branch master
Cloning into '/opt/stack/requirements'...
remote: Counting objects: 18929, done.
remote: Compressing objects: 100% (9696/9696), done.
remote: Total 18929 (delta 12803), reused 15154 (delta 9213)
Receiving objects: 100% (18929/18929), 2.83 MiB | 2.79 MiB/s, done.
Resolving deltas: 100% (12803/12803), done.
Checking connectivity... done.

I assume this is because I am behind a restrictive company firewall. So how do I get the setup script to use http instead of git?


Well, I am pretty sure this isn't the best way, but using a combination of the answers from:

I used grep -rlnw '/opt/stack/' -e 'git:' | xargs -i@ sed -i 's/git:/http:/g' @ to replace the git:// with http://.

However, since the install keeps downloading more files with git://, then I needed to run this simultaneously during the install in order to replace as new files were downloaded:

watch -n 1 grep -rlnw '/opt/stack/' -e 'git:' | xargs -i@ sed -i 's/git:/http:/g' @


In the cloned repository edit line 228 in the stackrc file. You can easily replace the git:// by https://.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.