cleanup_running_deleted_instances should not be needed

Bug #1173430 reported by Joshua Harlow
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Opinion
Wishlist
Unassigned

Bug Description

cleanup_running_deleted_instances should likely be refactored so that said function is not needed in the first place, since in a ideal world an instance does not have the capability to be running when it is deleted (said deletion should fail in that case).

Revision history for this message
Joshua Harlow (harlowja) wrote :

running_deleted_instances is also connected to this :(

Revision history for this message
Michael Still (mikal) wrote :

What about the case where the compute node is offline when the instance is deleted? Wouldn't we end up with the hypervisor being out of sync (and therefore needing cleanup) in that case?

Changed in nova:
status: New → Triaged
importance: Undecided → Wishlist
Revision history for this message
Joshua Harlow (harlowja) wrote :

So that case is a very interesting one, lets say that if a running compute node never gets out of sync, due to some conductor or elsewhere making sure that when it is running that tasks that get requested of said compute node happen in a transcational manner (so therefore they happen or don't).

Now if its offline and an instance is deleted, it almost seems like in said transcational world that it shouldn't be possible to perform that delete (since said delete would have transcational logic) operation in the first place. Likely there would need to be a 2 phase commit on said delete to ensure this. Having said logic would ensure that you can't delete vm's until a hypervisor/compute node has acknowledged the deletion. A compute node being offline would be unable to 'ack' and would therefore not allow deletion.

Changed in nova:
assignee: nobody → surendra reddy narala (narala-surendra)
Changed in nova:
assignee: surendra reddy narala (narala-surendra) → nobody
Sean Dague (sdague)
Changed in nova:
status: Triaged → 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.