← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1932126] [NEW] Cannot restore soft-deleted instance when node is failure

 

Public bug reported:

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_instance_interval` to 300s, and restart nova-api and nova-compute
* 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 22830d78b91946b108defe26b3a8ddefc2247363 (HEAD -> master, origin/master, origin/HEAD)
Merge: fb020b360b 4d8bf15fec
Author: Zuul <zuul@xxxxxxxxxxxxxxxxxx>
Date:   Wed Jun 16 00:53:08 2021 +0000

    Merge "libvirt: Set driver_iommu when attaching virtio devices to
SEV instance"

commit fb020b360b13faa53f64222bc81be0d965b47358
Merge: 7f83cbe9e2 0ac74f4e00
Author: Zuul <zuul@xxxxxxxxxxxxxxxxxx>
Date:   Tue Jun 15 21:47:10 2021 +0000

    Merge "Remove references to 'inst_type'


Logs & Configs
==============
nova evacuate a59b2915-5e2e-4541-8bba-235e05ab83dc
ERROR (Conflict): Cannot 'evacuate' instance a59b2915-5e2e-4541-8bba-235e05ab83dc while it is in vm_state soft-delete (HTTP 409) (Request-ID: req-ab2bcfab-4a2e-41d8-

** Affects: nova
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1932126

Title:
  Cannot restore soft-deleted instance when node is failure

Status in OpenStack Compute (nova):
  New

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_instance_interval` to 300s, and restart nova-api and nova-compute
  * 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 22830d78b91946b108defe26b3a8ddefc2247363 (HEAD -> master, origin/master, origin/HEAD)
  Merge: fb020b360b 4d8bf15fec
  Author: Zuul <zuul@xxxxxxxxxxxxxxxxxx>
  Date:   Wed Jun 16 00:53:08 2021 +0000

      Merge "libvirt: Set driver_iommu when attaching virtio devices to
  SEV instance"

  commit fb020b360b13faa53f64222bc81be0d965b47358
  Merge: 7f83cbe9e2 0ac74f4e00
  Author: Zuul <zuul@xxxxxxxxxxxxxxxxxx>
  Date:   Tue Jun 15 21:47:10 2021 +0000

      Merge "Remove references to 'inst_type'

  
  Logs & Configs
  ==============
  nova evacuate a59b2915-5e2e-4541-8bba-235e05ab83dc
  ERROR (Conflict): Cannot 'evacuate' instance a59b2915-5e2e-4541-8bba-235e05ab83dc while it is in vm_state soft-delete (HTTP 409) (Request-ID: req-ab2bcfab-4a2e-41d8-

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1932126/+subscriptions