<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mv="http://macVmlSchemaUri" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Title" content="">
<meta name="Keywords" content="">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:PMingLiU;
        panose-1:2 2 5 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:Calibri;
        color:windowtext;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:Calibri;
        color:windowtext;}
span.msoIns
        {mso-style-type:export-only;
        mso-style-name:"";
        text-decoration:underline;
        color:teal;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:595.0pt 842.0pt;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body bgcolor="white" lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri">For the sake of record and FYI - Instead of cross-posting, this discussion has been continued on the openstack-operators ML.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-left:.5in"><b><span style="font-family:Calibri;color:black">From:
</span></b><span style="font-family:Calibri;color:black">Jean-Philippe Evrard <Jean-Philippe.Evrard@rackspace.co.uk><br>
<b>Reply-To: </b>"OpenStack Development Mailing List (not for usage questions)" <openstack-dev@lists.openstack.org><br>
<b>Date: </b>Thursday, November 17, 2016 at 9:10 AM<br>
<b>To: </b>"OpenStack Development Mailing List (not for usage questions)" <openstack-dev@lists.openstack.org><br>
<b>Subject: </b>Re: [openstack-dev] [openstack-ansible] pip issues<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
</div>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:11.0pt;font-family:Calibri">Hello,
</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:11.0pt;font-family:Calibri"> </span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:11.0pt;font-family:Calibri">Is this a greenfield newton?</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:11.0pt;font-family:Calibri">Could you wget your http://172.16.1.2:8181/os-releases/14.0.1/requirements_constraints.txt  file reliably?
</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:11.0pt;font-family:Calibri">Are you using haproxy?  Are all the backends OK there?</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:11.0pt;font-family:Calibri"> </span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:11.0pt;font-family:Calibri">Don’t hesitate to come by our irc channel, it’s probably easier to have a conversation there.</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:11.0pt;font-family:Calibri"> </span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:11.0pt;font-family:Calibri">Best regards,</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:11.0pt;font-family:Calibri">Jean-Philippe
</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:11.0pt;font-family:Calibri"> </span><o:p></o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-left:.5in"><b><span style="font-family:Calibri;color:black">From:
</span></b><span style="font-family:Calibri;color:black">Achi Hamza <h16mara@gmail.com><br>
<b>Reply-To: </b>"OpenStack Development Mailing List (not for usage questions)" <openstack-dev@lists.openstack.org><br>
<b>Date: </b>Thursday, 17 November 2016 at 08:56<br>
<b>To: </b>"openstack-dev@lists.openstack.org" <openstack-dev@lists.openstack.org><br>
<b>Subject: </b>[openstack-dev] [openstack-ansible] pip issues</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"> <o:p></o:p></p>
</div>
<div>
<p style="mso-margin-top-alt:5.0pt;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt;line-height:9.6pt">
<span style="font-size:9.5pt">Hi all,</span><o:p></o:p></p>
<p style="mso-margin-top-alt:5.0pt;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt;line-height:9.6pt">
<span style="font-size:9.5pt">Context:<br>
openstact-ansible newton, tag: 14.0.1<br>
OS: ubuntu 16.04 LTS</span><o:p></o:p></p>
<p style="mso-margin-top-alt:5.0pt;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt;line-height:9.6pt">
<span style="font-size:9.5pt">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:</span><o:p></o:p></p>
<p style="mso-margin-top-alt:5.0pt;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt;line-height:9.6pt">
<b><span style="font-size:9.5pt">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!</span></b><o:p></o:p></p>
<p style="mso-margin-top-alt:5.0pt;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt;line-height:9.6pt">
<span style="font-size:9.5pt">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>
………..............................................................................</span><span style="font-size:9.5pt;font-family:PMingLiU"><br>
</span><b><span style="font-size:9.5pt">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" target="_blank">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"}</span></b><o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:9.5pt"> </span><o:p></o:p></p>
</div>
<p style="mso-margin-top-alt:5.0pt;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt;line-height:9.6pt">
<span style="font-size:9.5pt">Please advice on what i am doing wrong. I am stuck :)</span><o:p></o:p></p>
<p style="mso-margin-top-alt:5.0pt;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt;line-height:9.6pt">
<span style="font-size:9.5pt">Thank you,<br>
Hamza</span><o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-left:.5in">    <o:p></o:p></p>
<div class="MsoNormal" align="center" style="margin-left:.5in;text-align:center">
<hr size="2" width="100%" align="center">
</div>
<p class="MsoNormal" style="margin-left:.5in">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@rackspace.com and delete the original message. Your cooperation is appreciated.
<o:p></o:p></p>
</div>
</body>
</html>