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

Bug #1585494 reported by Béla Vancsics on 2016-05-25
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
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
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) on 2016-05-30
Changed in nova:
assignee: Béla Vancsics (vancsics) → Alex Szarka (xavvior)
Alex Szarka (xavvior) on 2016-06-20
summary: - instances recovered
+ Rebuild instance, if the physical data is missing (at start)
Matt Riedemann (mriedem) wrote :

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

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

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

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.

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
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers