Table of Content

error on pip installation

When install openstack on ubuntu using devstack,

./stack.sh

always got error on install_pip stage,

+ cd /home/vagrant/devstack
+ source /home/vagrant/devstack/stackrc
/home/vagrant/devstack/tools/install_pip.sh: 21: /home/vagrant/devstack/tools/install_pip.sh: source: not found

as remedy, install pip before stack.sh

wget https://bootstrap.pypa.io/get-pip.py
sudo python get-pip.py

error on git clone

[ERROR] /home/vagrant/devstack/functions-common:598 git call failed: [git clone git://git.openstack.org/openstack/requirements.git /opt/stack/requirements --branch master]

manually run got same result:

vagrant@ubopenstack:~/devstack$ git clone git://git.openstack.org/openstack/requirements.git /opt/stack/requirements --branch master
Cloning into '/opt/stack/requirements'...
fatal: unable to connect to git.openstack.org:
git.openstack.org[0: 104.130.246.85]: errno=Connection timed out
git.openstack.org[1: 2001:4800:7819:103:be76:4eff:fe04:77e6]: errno=Network is unreachable

ping seems ok to git server,

vagrant@ubopenstack:~/devstack$ ping 104.130.246.85
PING 104.130.246.85 (104.130.246.85) 56(84) bytes of data.
64 bytes from 104.130.246.85: icmp_seq=1 ttl=40 time=132 ms
64 bytes from 104.130.246.85: icmp_seq=2 ttl=40 time=56.5 ms

it is working if change protocol to https,

vagrant@ubopenstack:~/devstack$ git clone https://git.openstack.org/openstack/requirements.git /opt/stack/requirements --branch master
Cloning into '/opt/stack/requirements'...
remote: Counting objects: 25479, done.
remote: Compressing objects: 100% (12504/12504), done.
remote: Total 25479 (delta 17571), reused 20587 (delta 12952)
Receiving objects: 100% (25479/25479), 3.93 MiB | 396.00 KiB/s, done.
Resolving deltas: 100% (17571/17571), done.

As remedy, add line to local.conf

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