Rebuild instance, if the physical data is missing (at start)

Bug #1585494 reported by Béla Vancsics
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Opinion
Wishlist
Unassigned

Bug Description

Nova currently does not rebuild instances if they were removed from the disk.

The instances should be recovered (after we restart the OpenStack) if the compute host is replaced or the disk is erased so that a board replacement can be performed in case of hardware failure.

Steps:
0) OpenStack is running
1) Create a new instance
2) Stop the OpenStack
3) Erase the instance from the disk
4) Destroy the instance with virsh
5) Start the OpenStack

Result: The (new) instance's status is Shutoff and the power state is Shut Down.

Changed in devstack:
assignee: nobody → Béla Vancsics (vancsics)
Changed in devstack:
status: New → In Progress
affects: devstack → nova
Revision history for this message
Alex Szarka (xavvior) wrote :

Supplement: This bug report related to resume_guest_state bug.
If the resume_guest_state_on_host_boot is True, then reproduction is possible.

Alex Szarka (xavvior)
Changed in nova:
assignee: Béla Vancsics (vancsics) → Alex Szarka (xavvior)
Alex Szarka (xavvior)
summary: - instances recovered
+ Rebuild instance, if the physical data is missing (at start)
Revision history for this message
Matt Riedemann (mriedem) wrote :

In most cases if the compute host fails, you'd evacuate the instance to another host.

Revision history for this message
Alex Szarka (xavvior) wrote :

Yes, you right, but this case simulate a hardware failure, which the system administrator fix it. If the sysadm fixed it and restart nova-service, automatically rebuild the instances.
If this patch was accepted and merged i can continue the improve. I would like to smaller milestones.
So far patches:
https://review.openstack.org/#/c/322341/
https://review.openstack.org/#/c/343542/
https://review.openstack.org/#/c/347256/

Please look at, if you have time.
Best regards, Alex Szarka

Revision history for this message
Matt Riedemann (mriedem) wrote :

We should have a blueprint and spec for this in ocata as this is more of a feature enhancement to automatically rebuild instances after a compute failure, which is what evacuate is for, but it's not automatic. So please submit a spec for ocata where we can discuss the use case and proposed changes there.

Changed in nova:
importance: Undecided → Wishlist
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (master)

Change abandoned by Michael Still (<email address hidden>) on branch: master
Review: https://review.openstack.org/322341
Reason: This patch has been sitting unchanged for more than 12 weeks. I am therefore going to abandon it to keep the nova review queue sane. Please feel free to restore the change if you're still working on it.

Revision history for this message
Sean Dague (sdague) wrote :

There are no currently open reviews on this bug, changing the status back to the previous state and unassigning. If there are active reviews related to this bug, please include links in comments.

Changed in nova:
status: In Progress → New
assignee: Alex Szarka (xavvior) → nobody
Revision history for this message
Sean Dague (sdague) wrote :

Opinion is the state for needs a spec

Changed in nova:
status: New → Opinion
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.