evacuate a vm when it is evacuating will cause vm error

Bug #2040038 reported by efineshi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
In Progress
Undecided
efineshi

Bug Description

Description
===========

if we evacuate a vm agent when if is still evacuating, it will leads the vm be many unexpect errors.

so, wo don't allow the vm to be evacuated when it is in rebuilding state before Train version, but this patch makes it allowed.

https://review.opendev.org/c/openstack/nova/+/864169

Steps to reproduce
==================

1. create a vm

2. down the host compute node

3. evacuate the vm last twice

openstack server evacuate XXXXX
openstack server evacuate XXXX

Expected result
===============

it should be not allowed to evacuate twice.

Actual result
=============

the 2nd evacuate are allowed and the vm will be error, if the vm is created in the other node, but not

evacuate completed, it will be evacuate again, and leads to many errors, such as double alive, or if it

is schedued to the same node, it will be error and can't be evacuate as the vm or vm files exsit.

Environment
===========

openstack wallaby / master

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/nova/+/898200

Changed in nova:
status: New → In Progress
efineshi (efineshi)
Changed in nova:
assignee: nobody → efineshi (efineshi)
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.