[openstack-dev] [nova] reset key pair during rebuilding

LIU Yulong liuyulong.xa at gmail.com
Thu Sep 28 01:55:03 UTC 2017


On Wed, Sep 27, 2017 at 5:15 PM, Marcus Furlong <furlongm at gmail.com> wrote:

> On 27 September 2017 at 09:23, Michael Still <mikal at stillhq.com> wrote:
> >
> > Operationally, why would I want to inject a new keypair? The scenario I
> can
> > think of is that there's data in that instance that I want, and I've lost
> > the keypair somehow. Unless that data is on an ephemeral, its gone if we
> do
> > a rebuild.
>
> This is quite a common scenario - staff member who started the
> instance leaves, and you want to access data on the instance, or
> maintain/debug the service running on the instance.
>
>

I can think of several ways to solve this problem:
1) reset the password by using the admin_pass API (if available)
2) libguestfs the instance dist directly



> Hitherto, I have used direct db calls to update the key, so it would
> be nice if there was an API call to do so.
>
>

These are some tricks for unusual scenarios. Nova API needs to stay robust
and general.



> Cheers,
> Marcus.
> --
> Marcus Furlong
>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20170928/3c67ead3/attachment.html>


More information about the OpenStack-dev mailing list