[openstack-dev] [nova]Nova rescue inject pasword failed

李杰 lijie at unitedstack.com
Mon Jan 29 11:50:27 UTC 2018

yeah,but Idon't know why we have to use a config disk,we can also gain the metadata by metadata RESTful service.Now I set my nova.conf inject_password=True, inject_partition=-1.And the libguestfs-1.36.3-6.el7_4.3.x86_64 is also installed.But it doesn't work.
------------------ Original ------------------
From:  "Matthew Booth"<mbooth at redhat.com>;
Date:  Mon, Jan 29, 2018 05:57 PM
To:  "OpenStack Developmen"<openstack-dev at lists.openstack.org>; 

Subject:  Re: [openstack-dev] [nova]Nova rescue inject pasword failed

On 29 January 2018 at 09:27, 李杰 <lijie at unitedstack.com> wrote:
          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.
          I use the libvirt as the virt driver. The web said to set"[libvirt]inject_password=true",but it didn't work. Is it a bug?Can you give me some advice?Help in troubleshooting this issue will be appreciated.

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.

But to reiterate, ideally your rescue image would support cloud-init and you would use a config disk.


Matthew Booth

Red Hat OpenStack Engineer, Compute DFG

Phone: +442070094448 (UK)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20180129/51f4d666/attachment.html>

More information about the OpenStack-dev mailing list