I think <span class="nf">inject_key_into_fs</span><span class="p">(</span><span class="n">key</span><span class="p">,</span> <span class="n">fs</span><span class="p">) only affects the root user <br></span><pre><br></pre><div><div><br></div><div><br></div><div style="font-size: 12px;font-family: Arial Narrow;padding:2px 0 2px 0;">------------------ 原始邮件 ------------------</div><div style="font-size: 12px;background:#efefef;padding:8px;"><div><b>发件人:</b> "menghuizhanguo";<menghuizhanguo@gmail.com>;</div><div><b>发送时间:</b> 2013年10月28日(星期一) 下午4:07</div><div><b>收件人:</b> "Chenrui (A)"<kiwik.chenrui@huawei.com>; "Bill Owen"<billowen@us.ibm.com>; <wbr></div><div><b>抄送:</b> "Openstack Milis"<openstack@lists.openstack.org>; <wbr></div><div><b>主题:</b> 回复:[Openstack] 答复: Key Injection not working after upgrading from Grizzly to Havana</div></div><div><br></div><span style=" font-size:10.0pt ; ; ; ; " lang="EN-US">"$ ssh -i key.pem fedora@<vm-ip-addr></span><span lang="EN-US">"<br>are you sure the username is fedora but not root ?<br><br>you also could add a user yourself in the image ,so you could ssh with password to check the file .ssh/authorized_keys to ensure the <br>public key there.<br>
</span><div><div><br></div><div><br></div><div style="font-size: 12px;font-family: Arial Narrow;padding:2px 0 2px 0;">------------------ 原始邮件 ------------------</div><div style="font-size: 12px;background:#efefef;padding:8px;"><div><b>发件人:</b> "Chenrui (A)";<kiwik.chenrui@huawei.com>;</div><div><b>发送时间:</b> 2013年10月28日(星期一) 上午10:52</div><div><b>收件人:</b> "Bill Owen"<billowen@us.ibm.com>; <wbr></div><div><b>抄送:</b> "openstack@lists.openstack.org"<openstack@lists.openstack.org>; <wbr></div><div><b>主题:</b> [Openstack] 答复: Key Injection not working after upgrading from Grizzly to Havana</div></div><div><br></div>
<style></style>
<div class="WordSection1">
<p class="MsoNormal"><span style=" font-size:10.5pt ; ; ; ;;color:#1F497D " lang="EN-US">Please check
<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:18.0pt;text-indent:-18.0pt;mso-list:l0 level1 lfo1">
<span style=" font-size:10.5pt ; ; ; ;;color:#1F497D " lang="EN-US"><span style="mso-list:Ignore">1.<span style="">
</span></span></span><span style=" font-size:10.5pt ; ; ; ;;color:#1F497D " lang="EN-US">the vm console log by nova console-log
<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:18.0pt;text-indent:-18.0pt;mso-list:l0 level1 lfo1">
<span style=" font-size:10.5pt ; ; ; ;;color:#1F497D " lang="EN-US"><span style="mso-list:Ignore">2.<span style="">
</span></span></span><span style=" font-size:10.5pt ; ; ; ;;color:#1F497D " lang="EN-US">Nova and Neutron metadata service is ok</span><span style=" font-size:10.5pt ; ; ; ;;color:#1F497D ">?<span lang="EN-US"><o:p></o:p></span></span></p>
<p class="MsoNormal"><span style=" font-size:10.5pt ; ; ; ;;color:#1F497D " lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style=" font-size:10.5pt ; ; ; ;;color:#1F497D " lang="EN-US"><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"><b><span style="font-size:10.0pt;font-family:宋体">发件人<span lang="EN-US">:</span></span></b><span style="font-size:10.0pt;font-family:宋体" lang="EN-US"> Bill Owen [mailto:billowen@us.ibm.com]
<br>
</span><b><span style="font-size:10.0pt;font-family:宋体">发送时间<span lang="EN-US">:</span></span></b><span style="font-size:10.0pt;font-family:宋体" lang="EN-US"> 2013</span><span style="font-size:10.0pt;font-family:宋体">年<span lang="EN-US">10</span>月<span lang="EN-US">26</span>日<span lang="EN-US">
8:43<br>
</span><b>收件人<span lang="EN-US">:</span></b><span lang="EN-US"> openstack@lists.openstack.org<br>
</span><b>主题<span lang="EN-US">:</span></b><span lang="EN-US"> [Openstack] Key Injection not working after upgrading from Grizzly to Havana<o:p></o:p></span></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p><span style=" font-size:10.0pt ; ; ; ; " lang="EN-US">I've just updated my test environment to stable-havana.</span><span lang="EN-US"><br>
<br>
</span><span style=" font-size:10.0pt ; ; ; ; " lang="EN-US">I have booted vm instances with Fedora and Ubuntu images with a key_name specified:</span><span lang="EN-US"><br>
</span><span style=" font-size:10.0pt ; ; ; ; " lang="EN-US">$ nova boot --key_name key <vm-name> --image <image-id> --flavor 2 test_vm</span><span lang="EN-US"><br>
<br>
</span><span style=" font-size:10.0pt ; ; ; ; " lang="EN-US">After the image becomes active, I try to ssh to the image, but get an error message: </span><span lang="EN-US"><br>
</span><span style=" font-size:10.0pt ; ; ; ; " lang="EN-US">$ ssh -i key.pem fedora@<vm-ip-addr></span><span lang="EN-US"><br>
</span><span style=" font-size:10.0pt ; ; ; ; " lang="EN-US">Permission denied (publickey,gssapi-keyex,gssapi-with-mic).</span><span lang="EN-US"><br>
<br>
</span><span style=" font-size:10.0pt ; ; ; ; " lang="EN-US">I tried using keys/images that worked in grizzly, as well as newly created keys and new images following the instructions in the install docs:</span><span lang="EN-US"><br>
</span><span style=" font-size:10.0pt ; ; ; ; " lang="EN-US"><a href="http://docs.openstack.org/trunk/install-guide/install/apt/content/nova-boot.html">http://docs.openstack.org/trunk/install-guide/install/apt/content/nova-boot.html</a></span><span lang="EN-US"><br>
<br>
</span><span style=" font-size:10.0pt ; ; ; ; " lang="EN-US">I don't see anything about changes in this area in release notes. Any suggestions on what I might be missing or how to debug would be appreciated!</span><span lang="EN-US"><br>
</span><span style=" font-size:10.0pt ; ; ; ; " lang="EN-US">In particular, is there a way to increase debug logging so I can see when it tries to do the key injection on the new vm?</span><span lang="EN-US"><br>
<br>
</span><span style=" font-size:10.0pt ; ; ; ; " lang="EN-US">FWIW, cirros image boots and I can ssh/login using cirros user and password.</span><span lang="EN-US"><br>
<br>
</span><span style=" font-size:10.0pt ; ; ; ; " lang="EN-US">Thanks,<br>
Bill Owen <br>
billowen@us.ibm.com<br>
520-799-4829, T/L 321-4829</span><span lang="EN-US"><o:p></o:p></span></p>
</div></div></div>