Steven Meow De Claude Steven Meow De Claude - 19 days ago 7
Git Question

Installing Openstack errors

I have no experience in openstack and would appreciate anyone who can help and guide me with this issue. I'm installing openstack in virtual environment (Ubuntu 12.04) and this came out:



  • git clone git//git.openstack.org/openstack/requirements.git/opt/stack/reqiurements
    Cloning into '/opt/stack/requirements'... fatal:unable to connect to
    git.openstack.org: git.openstack.org[0: 192.237.223.224]:
    errno=Connection refused git.openstack.org[1:
    2001:4800:7813:516:3bc3:d7f6:ff04:aacb]: errno=Network is
    unreachable



Answer

I had the same problem, the git protocol is blocked in my testing environment.

The solution is to modify the sourcerc file in the devstack installation folder to use https instead of git. You have to look for that line and change it. This file is also known as the local.conf file.

Default setting in sourcerc file:

GIT_BASE=${GIT_BASE:-git://git.openstack.org}

Modified setting that should bypass git restrictions:

GIT_BASE=${GIT_BASE:-https://git.openstack.org}

Simply add this modified line to the local/localrc section of your local.conf file in the DevStack directory and it should use the HTTPS protocol instead of the Git protocol! More info on the local.conf file here - http://devstack.org/configuration.html