<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:"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:"\@宋体";
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;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
/* Page Definitions */
@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">Hi, All<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> I`m still strugling to setup nodepool env, and i got following error messages:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">------------------------------------------<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">ERROR nodepool.NodeLauncher: Exception launching node id: 13 in provider: local_01 error:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Traceback (most recent call last):<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> File "/home/fujitsu/xiexs/nodepool/nodepool/nodepool.py", line 405, in _run<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> dt = self.launchNode(session)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> File "/home/fujitsu/xiexs/nodepool/nodepool/nodepool.py", line 503, in launchNode<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> timeout=self.timeout):<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> File "/home/fujitsu/xiexs/nodepool/nodepool/nodeutils.py", line 50, in ssh_connect<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> for count in iterate_timeout(timeout, "ssh access"):<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> File "/home/fujitsu/xiexs/nodepool/nodepool/nodeutils.py", line 42, in iterate_timeout<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> raise Exception("Timeout waiting for %s" % purpose)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Exception: Timeout waiting for ssh access<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> WARNING nodepool.NodePool: Deleting leaked instance d-p-c-local_01-12 (aa6f58d9-f691-4a72-98db-6add9d0edc1f) in local_01 for node id: 12<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">------------------------------------------<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">And meanwhile, in the console.log which records the info for launching this instance,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">there is also a</span><span lang="EN-US" style="mso-fareast-language:JA">n</span><span lang="EN-US"> error as follows:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">------------------------------------------<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">+ sed -i -e s/^\(DNS[0-9]*=[.0-9]\+\)/#\1/g /etc/sysconfig/network-scripts/ifcfg-*^M<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">sed: can't read /etc/sysconfig/network-scripts/ifcfg-*: No such file or directory^M<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">...<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">cloud-init-nonet[26.16]: waiting 120 seconds for network device<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">------------------------------------------<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I have tried to figure out what`s causing this error:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">1. mounted image.qcow2 and then checked the configuration for the network
</span><span lang="EN-US" style="mso-fareast-language:JA">about</span><span lang="EN-US"> this instance:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">$ cat etc/network/interfaces.d/eth0.cfg <o:p>
</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> auto eth0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> iface eth0 inet dhcp<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">$ cat etc/network/interfaces<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> auto lo<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> iface lo inet loopback<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> source /etc/network/interfaces.d/*.cfg<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">It seems good.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">2. But indeed, the directory named /etc/sysconfig/network-scripts/ifcfg-* does not exist.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">And i dont understand why it attempts to check this configuration file?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Because my instance is specified to ubuntu not rhel.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">So,could you give me some tips to work this out?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Thanks in advance.</span><span lang="EN-US" style="mso-fareast-language:JA"><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"><span lang="EN-US" style="mso-fareast-language:JA">Xiexs<o:p></o:p></span></p>
</div>
</body>
</html>