<div>yeah,but Idon't know why we have to use a config disk,we can also gain the metadata by <span style="color: rgb(50, 50, 50); font-family: ibm-plex-sans, "Helvetica Neue", Arial, sans-serif; font-size: 17px;">metadata RESTful</span><span style="color: rgb(50, 50, 50); font-family: ibm-plex-sans, "Helvetica Neue", Arial, sans-serif; font-size: 17px;"> service.Now I set my nova.conf </span>inject_password=True, inject_partition=-1.And the libguestfs-1.36.3-6.el7_4.3.x86_64 is also installed.But it <span style="color: rgb(75, 75, 75); font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;">doesn't work.</span></div><div><includetail><div> </div><div> </div><div style="font:Verdana normal 14px;color:#000;"><div style="FONT-SIZE: 12px;FONT-FAMILY: Arial Narrow;padding:2px 0 2px 0;">------------------ Original ------------------</div><div style="FONT-SIZE: 12px;background:#efefef;padding:8px;"><div id="menu_sender"><b>From: </b> "Matthew Booth"<mbooth@redhat.com>;</div><div><b>Date: </b> Mon, Jan 29, 2018 05:57 PM</div><div><b>To: </b> "OpenStack Developmen"<openstack-dev@lists.openstack.org>; <wbr></div><div></div><div><b>Subject: </b> Re: [openstack-dev] [nova]Nova rescue inject pasword failed</div></div><div> </div><div style="position:relative;"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 29 January 2018 at 09:27, 李杰 <span dir="ltr"><<a href="mailto:lijie@unitedstack.com" target="_blank">lijie@unitedstack.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div> Hi,all:</div><div>          I want to access to my instance under rescue state using temporary password which nova rescue gave me.But this password doesn't work. Can I ask how this password is injected to instance? I can't find any specification how is it done.I saw the code about rescue,But it displays the password has inject.</div><div>          I use the libvirt as the virt driver. The web said to set"[libvirt]inject_password=<wbr>true",but it didn't work. Is it a bug?Can you give me some advice?Help in troubleshooting this issue will be appreciated.</div></div></blockquote><div><br></div><div>Ideally your rescue image will support cloud-init and you would use a config disk. For password injection to work you need inject_password=True, inject_partition=-1 (*NOT* -2, which is the default), and for libguestfs to be correctly installed on your compute hosts.<br><br></div><div>But to reiterate, ideally your rescue image would support cloud-init and you would use a config disk.<br><br></div><div>Matt<br></div></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><span style="font-size:12.8px">Matthew Booth</span><br></div><div>Red Hat OpenStack Engineer, Compute DFG</div><div><br></div><div>Phone: +442070094448 (UK)</div><div><br></div></div></div></div></div></div></div>
</div></div>

</div></div><!--<![endif]--></includetail></div>