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

Jean-Philippe Evrard Jean-Philippe.Evrard at rackspace.co.uk
Thu Nov 17 09:10:20 UTC 2016


Hello,

Is this a greenfield newton?
Could you wget your http://172.16.1.2:8181/os-releases/14.0.1/requirements_constraints.txt  file reliably?
Are you using haproxy?  Are all the backends OK there?

Don’t hesitate to come by our irc channel, it’s probably easier to have a conversation there.

Best regards,
Jean-Philippe

From: Achi Hamza <h16mara at gmail.com>
Reply-To: "OpenStack Development Mailing List (not for usage questions)" <openstack-dev at lists.openstack.org>
Date: Thursday, 17 November 2016 at 08:56
To: "openstack-dev at lists.openstack.org" <openstack-dev at lists.openstack.org>
Subject: [openstack-dev] [openstack-ansible] pip issues


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-368f269a
root at node01-galera-container-368f269a:~# nc -nzv 172.16.1.2 8181
Connection 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  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


________________________________
Rackspace Limited is a company registered in England & Wales (company registered number 03897010) whose registered office is at 5 Millington Road, Hyde Park Hayes, Middlesex UB3 4AZ. Rackspace Limited privacy policy can be viewed at www.rackspace.co.uk/legal/privacy-policy - This e-mail message may contain confidential or privileged information intended for the recipient. Any dissemination, distribution or copying of the enclosed material is prohibited. If you receive this transmission in error, please notify us immediately by e-mail at abuse at rackspace.com and delete the original message. Your cooperation is appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20161117/c9536efa/attachment-0001.html>


More information about the OpenStack-dev mailing list