<div dir="ltr">
<p style="margin-bottom:0in;line-height:100%">Hi all,</p>
<p style="margin-bottom:0in;line-height:100%">Context:<br>openstact-ansible
newton, tag: 14.0.1<br>OS: ubuntu 16.04
LTS</p>
<p style="margin-bottom:0in;line-height:100%">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:</p><p style="margin-bottom:0in;line-height:100%"><b>root@node01:~#
lxc-attach -n node01_galera_container-368f269a<br>root@node01-galera-container-368f269a:~#
nc -nzv 172.16.1.2 8181<br>Connection to
172.16.1.2 8181 port [tcp/*] succeeded!</b></p>
<p style="margin-bottom:0in;line-height:100%">However, when i run
galera-install.yml playbook it throws the following error (but the
root cause is pip_install role) :<br><b>root@maas:/opt/openstack-ansible/playbooks#
openstack-ansible galera-install.yml</b><br>………..............................................................................<br><b>TASK [pip_install : Install pip packages (fall back mode)] *********************<br>FAILED - RETRYING: TASK: pip_install : Install pip packages (fall back mode) (5 retries left).<br>FAILED - RETRYING: TASK: pip_install : Install pip packages (fall back mode) (4 retries left).<br>FAILED - RETRYING: TASK: pip_install : Install pip packages (fall back mode) (3 retries left).<br>FAILED - RETRYING: TASK: pip_install : Install pip packages (fall back mode) (2 retries left).<br>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 <a href="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</a> 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"}</b></p><div><br></div>
<p style="margin-bottom:0in;line-height:100%">Please advice on
what i am doing wrong. I am stuck :)</p>
<p style="margin-bottom:0in;line-height:100%">Thank you,<br>Hamza</p></div>