Revision history [back]

click to hide/show revision 1
initial version

Devstack installation error: python: can't open file '/opt/stack/devstack/files/get-pip.py': [Errno 2] No such file or directory

Hi There,

I am trying to install openstack on Ubuntu 14.04. I am following the steps mentioned on devstack for multinode installation. Controller installation is failing with following error:

2015-09-16 23:16:52.495 | Reading package lists...
2015-09-16 23:16:52.708 | Building dependency tree...
2015-09-16 23:16:52.709 | Reading state information...
2015-09-16 23:16:52.878 | Package 'python-pip' is not installed, so not removed
2015-09-16 23:16:52.878 | The following packages were automatically installed and are no longer required:
2015-09-16 23:16:52.878 |   python-chardet-whl python-colorama python-colorama-whl python-distlib
2015-09-16 23:16:52.878 |   python-distlib-whl python-html5lib python-html5lib-whl python-pip-whl
2015-09-16 23:16:52.878 |   python-requests-whl python-setuptools-whl python-six-whl python-urllib3-whl
2015-09-16 23:16:52.878 |   python-wheel python3-pkg-resources
2015-09-16 23:16:52.878 | Use 'apt-get autoremove' to remove them.
2015-09-16 23:16:52.918 | 0 upgraded, 0 newly installed, 0 to remove and 115 not upgraded.
2015-09-16 23:16:52.920 | + install_get_pip
2015-09-16 23:16:52.920 | + [[ ! -r /opt/stack/devstack/files/get-pip.py ]]
2015-09-16 23:16:52.920 | + curl --retry 6 --retry-delay 5 -o /opt/stack/devstack/files/get-pip.py http://bootstrap.pypa.io/get-pip.py
2015-09-16 23:16:52.925 |   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
2015-09-16 23:16:52.925 |                                  Dload  Upload   Total   Spent    Left  Speed
2015-09-16 23:16:52.983 | 
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
2015-09-16 23:16:52.985 | + touch /opt/stack/devstack/files/get-pip.py.downloaded
2015-09-16 23:16:52.986 | + sudo -H -E python /opt/stack/devstack/files/get-pip.py
2015-09-16 23:16:53.001 | python: can't open file '/opt/stack/devstack/files/get-pip.py': [Errno 2] No such file or directory
2015-09-16 23:16:53.003 | ++ err_trap
2015-09-16 23:16:53.003 | ++ local r=2
2015-09-16 23:16:53.003 | stack.sh failed: full log in /opt/stack/logs/stack.sh.log.2015-09-16-191644
2015-09-16 23:16:53.004 | Error on exit

I tried to work around the issue by doing following:

  1. sudo apt-get install python.pip
  2. curl command with http instead of https.

But still getting same error. Any pointers are appreciated.

Thanks,