[Openstack] nova client support for restore from soft delete ?

Vishvananda Ishaya vishvananda at gmail.com
Thu Jan 31 02:43:09 UTC 2013


Yes I noticed the other day that the restore and force_delete admin commands are not in novaclient. I was planning on adding them at some point soon, but it should be a really easy addition if someone wants to tackle it before I get to it.

Vish

On Jan 30, 2013, at 2:24 AM, "Day, Phil" <philip.day at hp.com> wrote:

> Hi Vish,
>  
> Sorry, I wasn’t very clear in my original post.   I have reclaim_instance_inteval set, and the instance does go to “SOFT_DELETED”.  I can see that the api extension adds a “restore” verb to the list of actions on an instance.
>  
> What I was trying to find out was if that additional action was available from the nova client.  E.g is there a “nova restore <xxx>” command ?    Looking through the client code I can’t see one, but thought I might be missing  something.
>  
> Thanks
> Phil
>  
> From: Vishvananda Ishaya [mailto:vishvananda at gmail.com] 
> Sent: 30 January 2013 00:32
> To: Day, Phil
> Cc: openstack at lists.launchpad.net (openstack at lists.launchpad.net) (openstack at lists.launchpad.net)
> Subject: Re: [Openstack] nova client support for restore from soft delete ?
>  
>  
> On Jan 29, 2013, at 8:55 AM, "Day, Phil" <philip.day at hp.com> wrote:
> 
> 
> Hi Folks,
>  
> Does the nova client provide support to restore a soft deleted instance  (and if not, what is the process for pulling an instance back from the brink) ?
>  
> If you have reclaim_instance_interval set then you can restore instances via an admin api command. If not then you are not going to have much luck reclaiming the insance becasue the drive will be deleted. If by some chance you have the backing files still, then you should be able to fix the db and do a hard reboot on the instance to get it to come back up. Fixing the db is mostly about setting deleted=False but keep in mind that you will also have to manually restore the vif and reassociate the fixed ip which hopefully hasn't been associated to a new instance.
>  
> Vish

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20130130/124f9cc9/attachment.html>


More information about the Openstack mailing list