soft deleted instance is deleted when error restoring
Bug #1932268 reported by
HYSong
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
The SOFT_DELETED instance will be deleted when executing restore instance failed.
restore instance:
instance.task_state = task_states.
instance.deleted_at = None
If `self.driver.
The instance will be filtered in _reclaim_
filters = {'vm_state': vm_states.
'host': self.host}
To post a comment you must log in.
What do you suggests? What state should the VM be in after a failed restore? The VM is still soft-deleted on the hypervisor as the restore is failed and no task is ongoing as that restore task failed. For me it is the expected behavior that if the restore fails and then the reclaim timer hits then the VM is deleted.
Closing this as Invalid. Please set it back to New if you disagree.