Cannot restore soft-deleted instance when node is failure
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
In Progress
|
Undecided
|
Unassigned |
Bug Description
Description
===========
So far, the soft-deleted instance can not be evacuated.
When the node can not be fixed or exceed the reclaim window,
the instance can not be restored for ever.
Steps to reproduce
==================
* Set `reclaim_
* then delete the instance A
* then shutdown compute node for 500s
* Use `openstack server evacuate xxx` and got the instance can not be evacuated.
Expected result
===============
Can be evacuated and restored
Actual result
=============
Do not be allowed to be evacuated
Environment
===========
# git log
commit 22830d78b91946b
Merge: fb020b360b 4d8bf15fec
Author: Zuul <email address hidden>
Date: Wed Jun 16 00:53:08 2021 +0000
Merge "libvirt: Set driver_iommu when attaching virtio devices to SEV instance"
commit fb020b360b13faa
Merge: 7f83cbe9e2 0ac74f4e00
Author: Zuul <email address hidden>
Date: Tue Jun 15 21:47:10 2021 +0000
Merge "Remove references to 'inst_type'
Logs & Configs
==============
nova evacuate a59b2915-
ERROR (Conflict): Cannot 'evacuate' instance a59b2915-
One way forward is to allow restore to succeed when the compute host is down, and just set the VM back to ACTIVE in the DB. Then restore + evacuate would work together when host is down.