← Back to team overview

openstack team mailing list archive

Re: nova client support for restore from soft delete ?

 

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@xxxxxxxxx]
Sent: 30 January 2013 00:32
To: Day, Phil
Cc: openstack@xxxxxxxxxxxxxxxxxxx (openstack@xxxxxxxxxxxxxxxxxxx) (openstack@xxxxxxxxxxxxxxxxxxx)
Subject: Re: [Openstack] nova client support for restore from soft delete ?


On Jan 29, 2013, at 8:55 AM, "Day, Phil" <philip.day@xxxxxx<mailto:philip.day@xxxxxx>> 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

Follow ups

References