soft delete instance will be reclaimed if power on failed when do restore
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
In Progress
|
Undecided
|
zhangyujun |
Bug Description
I found an instance disappeared after do restore instance, check the nova code and log, I think its a logic bug here
1. restore instance with power on failed
nova-api `restore` set `instance.
https:/
nova-compute `restore_instance` will call `self._power_on` if virt driver did not implement the `restore` method
https:/
instance state will be set to None if any exceptions raise when call `self._power_on` in `reverts_
https:/
finally the instnace state will be set to {vm_state=
2. reclaim instance
nova-compute periodic task `_reclaim_
https:/
it will select instance with filte `{'vm_state': vm_states.
https:/
and it will be in the return list of `_deleted_
https:/
and then be deleted soon
https:/
I don't think the instance should be reclaimed with the above situation
Changed in nova: | |
assignee: | nobody → zhangyujun (zhangyujun) |
description: | updated |
Changed in nova: | |
status: | New → In Progress |