[openstack-dev] [openstack-ansible] pip issues

Achi Hamza h16mara at gmail.com
Thu Nov 17 08:56:12 UTC 2016


Hi all,

Context:
openstact-ansible newton, tag: 14.0.1
OS: ubuntu 16.04 LTS

the pip command is unable to download packages form the repo container. I
can reach the repo container from within galera container through the port
8181:



*root at node01:~# lxc-attach -n
node01_galera_container-368f269aroot at node01-galera-container-368f269a:~# nc
-nzv 172.16.1.2 8181Connection to 172.16.1.2 8181 port [tcp/*] succeeded!*

However, when i run galera-install.yml playbook it throws the following
error (but the root cause is pip_install role)  :
*root at maas:/opt/openstack-ansible/playbooks# openstack-ansible
galera-install.yml*
……….........................................................
.....................





*TASK [pip_install : Install pip packages (fall back mode)]
*********************FAILED - RETRYING: TASK: pip_install : Install pip
packages (fall back mode) (5 retries left).FAILED - RETRYING: TASK:
pip_install : Install pip packages (fall back mode) (4 retries left).FAILED
- RETRYING: TASK: pip_install : Install pip packages (fall back mode) (3
retries left).FAILED - RETRYING: TASK: pip_install : Install pip packages
(fall back mode) (2 retries left).FAILED - RETRYING: TASK: pip_install :
Install pip packages (fall back mode) (1 retries left).fatal:
[node01_galera_container-368f269a]: FAILED! => {"changed": false, "cmd":
"/usr/local/bin/pip install -U --isolated
--constraint http://172.16.1.2:8181/os-releases/14.0.1/requirements_constraints.txt
<http://172.16.1.2:8181/os-releases/14.0.1/requirements_constraints.txt>
 ndg-httpsclient
requests", "failed": true, "msg": "\n:stderr: Retrying (Retry(total=4,
connect=None, read=None, redirect=None)) after connection broken by
'ProtocolError('Connection aborted.', BadStatusLine(\"''\",))':
/os-releases/14.0.1/requirements_constraints.txt\nRetrying (Retry(total=3,
connect=None, read=None, redirect=None)) after connection broken by
'ProtocolError('Connection aborted.', BadStatusLine(\"''\",))':
/os-releases/14.0.1/requirements_constraints.txt\nRetrying (Retry(total=2,
connect=None, read=None, redirect=None)) after connection broken by
'ProtocolError('Connection aborted.', BadStatusLine(\"''\",))':
/os-releases/14.0.1/requirements_constraints.txt\nRetrying (Retry(total=1,
connect=None, read=None, redirect=None)) after connection broken by
'ProtocolError('Connection aborted.', BadStatusLine(\"''\",))':
/os-releases/14.0.1/requirements_constraints.txt\nRetrying (Retry(total=0,
connect=None, read=None, redirect=None)) after connection broken by
'ProtocolError('Connection aborted.', BadStatusLine(\"''\",))':
/os-releases/14.0.1/requirements_constraints.txt\nException:\nTraceback
(most recent call last):\n  File
\"/usr/local/lib/python2.7/dist-packages/pip/basecommand.py\", line 215, in
main\n    status = self.run(options, args)\n  File
\"/usr/local/lib/python2.7/dist-packages/pip/commands/install.py\", line
287, in run\n    wheel_cache\n  File
\"/usr/local/lib/python2.7/dist-packages/pip/basecommand.py\", line 269, in
populate_requirement_set\n    session=session, wheel_cache=wheel_cache):\n
 File \"/usr/local/lib/python2.7/dist-packages/pip/req/req_file.py\", line
84, in parse_requirements\n    filename, comes_from=comes_from,
session=session\n  File
\"/usr/local/lib/python2.7/dist-packages/pip/download.py\", line 409, in
get_file_content\n    resp = session.get(url)\n  File
\"/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/sessions.py\",
line 487, in get\n    return self.request('GET', url, **kwargs)\n  File
\"/usr/local/lib/python2.7/dist-packages/pip/download.py\", line 378, in
request\n    return super(PipSession, self).request(method, url, *args,
**kwargs)\n  File
\"/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/sessions.py\",
line 475, in request\n    resp = self.send(prep, **send_kwargs)\n  File
\"/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/sessions.py\",
line 585, in send\n    r = adapter.send(request, **kwargs)\n  File
\"/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/adapters.py\",
line 467, in send\n    raise ConnectionError(e,
request=request)\nConnectionError: HTTPConnectionPool(host='172.16.1.2',
port=8181): Max retries exceeded with url:
/os-releases/14.0.1/requirements_constraints.txt (Caused by
ProtocolError('Connection aborted.', BadStatusLine(\"''\",)))\nYou are
using pip version 8.1.2, however version 9.0.1 is available.\nYou should
consider upgrading via the 'pip install --upgrade pip' command.\n"}*

Please advice on what i am doing wrong. I am stuck :)

Thank you,
Hamza
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20161117/bf888f5d/attachment.html>


More information about the OpenStack-dev mailing list