<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="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:"MS Mincho";
panose-1:2 2 6 9 4 2 5 8 3 4;}
@font-face
{font-family:宋体;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@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:"Segoe UI";
panose-1:2 11 5 2 4 2 4 2 2 3;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:"\@宋体";
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:"\@MS Mincho";
panose-1:2 2 6 9 4 2 5 8 3 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
text-align:justify;
text-justify:inter-ideograph;
font-size:10.5pt;
font-family:"Calibri","sans-serif";}
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.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"批注框文本 Char";
margin:0cm;
margin-bottom:.0001pt;
text-align:justify;
text-justify:inter-ideograph;
font-size:10.5pt;
font-family:"Calibri","sans-serif";}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin:0cm;
margin-bottom:.0001pt;
text-align:justify;
text-justify:inter-ideograph;
text-indent:21.0pt;
font-size:10.5pt;
font-family:"Calibri","sans-serif";}
span.Char
{mso-style-name:"批注框文本 Char";
mso-style-priority:99;
mso-style-link:批注框文本;
font-family:"Calibri","sans-serif";}
p.BalloonText, li.BalloonText, div.BalloonText
{mso-style-name:"Balloon Text";
mso-style-link:"Balloon Text Char";
margin:0cm;
margin-bottom:.0001pt;
text-align:justify;
text-justify:inter-ideograph;
font-size:10.5pt;
font-family:"Calibri","sans-serif";}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Segoe UI","sans-serif";}
span.EmailStyle22
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.EmailStyle23
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle24
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle25
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle26
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="ZH-CN" link="blue" vlink="purple" style="text-justify-trim:punctuation">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA">Hi Ramy,<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:9.0pt"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA">Thanks for your patience.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:9.0pt"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA">I have tried your suggestion, but it did not work for me.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:9.0pt"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA">According to the log, this element has already ran in the chroot before the pip commands are executed.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:9.0pt"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA">So, in theory, the pip command would run behind this proxy, but the connection errors are still raised.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:9.0pt"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA">It`s weird.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:9.0pt"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-indent:9.0pt"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA">Then I tried to hard code the proxy with --proxy option into the pip command, it works.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:9.0pt"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA">Anyway, this is a merely temporary solution for this issue until I figure it out.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:9.0pt"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-indent:9.0pt"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA">But, after that, I got a new error:<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:9.0pt"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA">-------------------------<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:9.0pt"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA">nodepool.image.build.dpc: + sudo env 'PATH=/opt/git/subunit2sql-env/bin:/usr/lib64/ccache:/usr/lib/ccache:$PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
/opt/git/subunit2sql-env/bin/python2 /opt/nodepool-scripts/prepare_tempest_testrepository.py /opt/git/openstack/tempest<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:9.0pt"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA">nodepool.image.build.dpc: sudo: unable to resolve host fnst01<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:9.0pt"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA">nodepool.image.build.dpc: No handlers could be found for logger "oslo_db.sqlalchemy.session"<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:9.0pt"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA">nodepool.image.build.dpc: Traceback (most recent call last):<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:9.0pt"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA">nodepool.image.build.dpc: File "/opt/nodepool-scripts/prepare_tempest_testrepository.py", line 50, in <module><o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:9.0pt"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA">nodepool.image.build.dpc: main()<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:9.0pt"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA">nodepool.image.build.dpc: File "/opt/nodepool-scripts/prepare_tempest_testrepository.py", line 39, in main<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:9.0pt"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA">nodepool.image.build.dpc: session = api.get_session()<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:9.0pt"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA">nodepool.image.build.dpc: File "/opt/git/subunit2sql-env/local/lib/python2.7/site-packages/subunit2sql/db/api.py", line 47, in get_session<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:9.0pt"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA">nodepool.image.build.dpc: facade = _create_facade_lazily()<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:9.0pt"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA">nodepool.image.build.dpc: File "/opt/git/subunit2sql-env/local/lib/python2.7/site-packages/subunit2sql/db/api.py", line 37, in _create_facade_lazily<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:9.0pt"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA">nodepool.image.build.dpc: **dict(CONF.database.iteritems()))<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:9.0pt"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA">nodepool.image.build.dpc: File "/opt/git/subunit2sql-env/local/lib/python2.7/site-packages/oslo_db/sqlalchemy/session.py", line 822, in __init__<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:9.0pt"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA">nodepool.image.build.dpc: **engine_kwargs)<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:9.0pt"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA">nodepool.image.build.dpc: File "/opt/git/subunit2sql-env/local/lib/python2.7/site-packages/oslo_db/sqlalchemy/session.py", line 417, in create_engine<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:9.0pt"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA">nodepool.image.build.dpc: test_conn = _test_connection(engine, max_retries, retry_interval)<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:9.0pt"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA">nodepool.image.build.dpc: File "/opt/git/subunit2sql-env/local/lib/python2.7/site-packages/oslo_db/sqlalchemy/session.py", line 596, in _test_connection<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:9.0pt"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA">nodepool.image.build.dpc: six.reraise(type(de_ref), de_ref)<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:9.0pt"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA">nodepool.image.build.dpc: File "<string>", line 2, in reraise<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:9.0pt"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA">nodepool.image.build.dpc: oslo_db.exception.DBConnectionError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'logstash.openstack.org'
([Errno -5] No address associated with hostname)")<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:9.0pt"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA">-------------------------<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:9.0pt"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA">I think it is also a proxy problem about remote access to the subunit2sql database.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:9.0pt"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA">And it should work with simpleproxy I think.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:9.0pt"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA">But I couldn`t find how to use simpleproxy to forward data for the subunit2sql db.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:9.0pt"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA">Could you please give me more hints?<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:9.0pt"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-indent:9.0pt"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA">Thanks again.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:9.0pt"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA">Xiexs<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" align="left" style="text-align:left"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Asselin, Ramy [mailto:ramy.asselin@hp.com]
<br>
<b>Sent:</b> Wednesday, August 05, 2015 6:00 AM<br>
<b>To:</b> OpenStack Development Mailing List (not for usage questions)<br>
<b>Subject:</b> Re: [openstack-dev] [CI]How to set proxy for nodepool<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal" align="left" style="text-align:left"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D">Hi Xiexs,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D">You might need to configure pip to use your proxy.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D">I added my own element here:
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D">cache-devstack/install.d/98-setup-pip<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D">Basically:
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D">set -eux<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D">mkdir -p /root/.pip/<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D">cat <<EOF > /root/.pip/pip.conf<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D">[global]<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D">proxy = <your proxy><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D">EOF<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D">cp -f /root/.pip/pip.conf /etc/<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D">Ramy<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" align="left" style="text-align:left"><b><span lang="EN-US" style="font-size:11.0pt">From:</span></b><span lang="EN-US" style="font-size:11.0pt"> Xie, Xianshan [<a href="mailto:xiexs@cn.fujitsu.com">mailto:xiexs@cn.fujitsu.com</a>]
<br>
<b>Sent:</b> Tuesday, August 04, 2015 12:05 AM<br>
<b>To:</b> OpenStack Development Mailing List (not for usage questions) <<a href="mailto:openstack-dev@lists.openstack.org">openstack-dev@lists.openstack.org</a>><br>
<b>Subject:</b> Re: [openstack-dev] [CI]How to set proxy for nodepool<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal" align="left" style="text-align:left"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA">Hi Ramy,<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:9.0pt"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA">Thanks for your help.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:9.0pt"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-indent:9.0pt"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA">I have already confirmed proxy setting again, and it works fine(no matter whether the NODEPOOL_ variables are declared or not):<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:27.0pt;text-indent:-18.0pt"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA">1)</span><span lang="EN-US" style="font-size:7.0pt;font-family:"Times New Roman","serif";color:#1F497D;mso-fareast-language:JA">
</span><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA">not only in the host machine on which DIB run,
<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:27.0pt;text-indent:-18.0pt"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA">2)</span><span lang="EN-US" style="font-size:7.0pt;font-family:"Times New Roman","serif";color:#1F497D;mso-fareast-language:JA">
</span><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA">but also in the first half part of DIB(before the DIB running chroot).<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:27.0pt;text-indent:-18.0pt"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA">3)</span><span lang="EN-US" style="font-size:7.0pt;font-family:"Times New Roman","serif";color:#1F497D;mso-fareast-language:JA">
</span><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA">furthmore, I ran the commands manually in the host env, they also works fine.<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:27.0pt;text-indent:10.5pt"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA">$</span><span lang="EN-US">
</span><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA">sudo -H virtualenv /usr/zuul-swift-logs-env<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:27.0pt;text-indent:10.5pt"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA">$</span><span lang="EN-US">
</span><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA">sudo -H /usr/zuul-swift-logs-env/bin/pip install python-magic argparse requests glob2<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:9.0pt"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-indent:9.0pt"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA">So, if I understood correctly, it seems obvious, that the proxy setting is missed when DIB goes into chroot env.
<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:9.0pt"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA">Thus, when DIB attempts to connect internet to download/install/update some materials to prepare the image within the chroot env, the error will
be encountered.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:9.0pt"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA">In this case, DIB will run “pip install” in the chroot env zuul-swift-logs-env to install python-magic, argparse and so forth.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:9.0pt"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-indent:9.0pt"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA">Actually, all NODEPOOL_ variables were already declared by the install_master.sh previously, and the proxy setting also derived from the host machine`s
proxy setting.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:9.0pt"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-indent:9.0pt"><span lang="EN-US" style="color:#1F497D;mso-fareast-language:JA">Xiexs<o:p></o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" align="left" style="text-align:left"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Asselin, Ramy [<a href="mailto:ramy.asselin@hp.com">mailto:ramy.asselin@hp.com</a>]
<br>
<b>Sent:</b> Tuesday, August 04, 2015 12:54 PM<br>
<b>To:</b> OpenStack Development Mailing List (not for usage questions)<br>
<b>Subject:</b> Re: [openstack-dev] [CI]How to set proxy for nodepool<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal" align="left" style="text-align:left"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D">Hi Xiexs,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D">You are using disk image builder (DIB), so make sure your proxy is set correctly also without the NODEPOOL_ prefix.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D">Those NODEPOOL_ prefixed variables are what would be used when DIB is not used / when the script approach is used with nova/glance (nodepool image-update). I don’t recommend using
that if you can use DIB.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D">Also, I’ve found some of the infra project-config elements don’t work in my environment and aren’t needed as they’re specific to infra. For those, simply comment out the portions
that don’t work. I didn’t notice any negative side-effects.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D">Ramy<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" align="left" style="text-align:left"><b><span lang="EN-US" style="font-size:11.0pt">From:</span></b><span lang="EN-US" style="font-size:11.0pt"> Xie, Xianshan [<a href="mailto:xiexs@cn.fujitsu.com">mailto:xiexs@cn.fujitsu.com</a>]
<br>
<b>Sent:</b> Monday, August 03, 2015 9:37 PM<br>
<b>To:</b> <a href="mailto:openstack-dev@lists.openstack.org">openstack-dev@lists.openstack.org</a><br>
<b>Subject:</b> [openstack-dev] [CI]How to set proxy for nodepool<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal" align="left" style="text-align:left"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:JA">Hi All,<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:10.5pt"><span lang="EN-US" style="mso-fareast-language:JA">When I ran “nodepool image-build <image-name>” to create a new image, I got this error message:<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:10.5pt"><span lang="EN-US" style="mso-fareast-language:JA">…<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:10.5pt"><span lang="EN-US" style="mso-fareast-language:JA">INFO nodepool.image.build.dpc: + sudo -H virtualenv /usr/zuul-swift-logs-env<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:10.5pt"><span lang="EN-US" style="mso-fareast-language:JA">INFO nodepool.image.build.dpc: sudo: unable to resolve host fnst01<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:10.5pt"><span lang="EN-US" style="mso-fareast-language:JA">INFO nodepool.image.build.dpc: + sudo -H /usr/zuul-swift-logs-env/bin/pip install python-magic argparse requests glob2<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:10.5pt"><span lang="EN-US" style="mso-fareast-language:JA">INFO nodepool.image.build.dpc: sudo: unable to resolve host fnst01<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:10.5pt"><span lang="EN-US" style="mso-fareast-language:JA">INFO nodepool.image.build.dpc: Collecting python-magic<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:10.5pt"><span lang="EN-US" style="mso-fareast-language:JA">INFO nodepool.image.build.dpc: Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.',
gaierror(-5, 'No address associated with hostname'))': /simple/python-magic/<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:10.5pt"><span lang="EN-US" style="mso-fareast-language:JA">INFO nodepool.image.build.dpc: Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.',
gaierror(-5, 'No address associated with hostname'))': /simple/python-magic/<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:10.5pt"><span lang="EN-US" style="mso-fareast-language:JA">…<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:10.5pt"><span lang="EN-US" style="mso-fareast-language:JA"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-indent:10.5pt"><span lang="EN-US" style="mso-fareast-language:JA">And I exported the bash env when the script elements/nodepool-base/install.d/90-venv-swift-logs ran,<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:10.5pt"><span lang="EN-US" style="mso-fareast-language:JA">it seems that the nodepool proxy and dns has already been set:<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:10.5pt"><span lang="EN-US" style="mso-fareast-language:JA"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-indent:10.5pt"><span lang="EN-US" style="mso-fareast-language:JA">declare -x NODEPOOL_HTTPS_PROXY=<a href="http://xx.xx.xx.xx:8080/">http://xx.xx.xx.xx:8080/</a> </span><span lang="EN-US" style="font-family:Wingdings;mso-fareast-language:JA">ß</span><span lang="EN-US" style="mso-fareast-language:JA">valid
proxy<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:10.5pt"><span lang="EN-US" style="mso-fareast-language:JA">declare -x NODEPOOL_HTTP_PROXY="<a href="http://xx.xx.xx.xx:8080/">http://xx.xx.xx.xx:8080/</a>"<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:10.5pt"><span lang="EN-US" style="mso-fareast-language:JA">declare -x NODEPOOL_NO_PROXY="localhost,127.0.0.1"<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:10.5pt"><span lang="EN-US" style="mso-fareast-language:JA">declare -x NODEPOOL_SCRIPTDIR="/etc/nodepool/scripts"<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:10.5pt"><span lang="EN-US" style="mso-fareast-language:JA">declare -x NODEPOOL_STATIC_NAMESERVER="xx.xx.xx.xx"<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:10.5pt"><span lang="EN-US" style="mso-fareast-language:JA">declare -x PS1="(zuul-swift-logs-env)"<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:10.5pt"><span lang="EN-US" style="mso-fareast-language:JA">INFO nodepool.image.build.dpc: + cat /etc/resolv.conf<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:10.5pt"><span lang="EN-US" style="mso-fareast-language:JA">INFO nodepool.image.build.dpc: nameserver xx.xx.xx.xx </span><span lang="EN-US" style="font-family:Wingdings;mso-fareast-language:JA">ß</span><span lang="EN-US" style="mso-fareast-language:JA">valid
dns<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:10.5pt"><span lang="EN-US" style="mso-fareast-language:JA"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-indent:10.5pt"><span lang="EN-US" style="mso-fareast-language:JA">And I have tried to add element “local-config” into nodepool.yaml, but it does not work.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:10.5pt"><span lang="EN-US" style="mso-fareast-language:JA"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-indent:10.5pt"><span lang="EN-US" style="mso-fareast-language:JA">So, my questions are:<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:28.5pt;text-indent:-18.0pt"><span lang="EN-US" style="mso-fareast-language:JA">1)</span><span lang="EN-US" style="font-size:7.0pt;font-family:"Times New Roman","serif";mso-fareast-language:JA">
</span><span lang="EN-US" style="mso-fareast-language:JA">These bash env will be passed into the virtualenv zuul-swift-logs-env after chroot, is it right?<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:28.5pt;text-indent:-18.0pt"><span lang="EN-US" style="mso-fareast-language:JA">2)</span><span lang="EN-US" style="font-size:7.0pt;font-family:"Times New Roman","serif";mso-fareast-language:JA">
</span><span lang="EN-US" style="mso-fareast-language:JA">If not, how to configure the proxy for nodepool?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:JA"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-indent:10.5pt"><span lang="EN-US" style="mso-fareast-language:JA">Many thanks to any suggestion.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:10.5pt"><span lang="EN-US" style="mso-fareast-language:JA"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-indent:10.5pt"><span lang="EN-US" style="mso-fareast-language:JA">Xiexs<o:p></o:p></span></p>
</div>
</body>
</html>