yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #44687
[Bug 1518200] Re: instance is not destroyed on source host after a successful evacuate
** Tags added: liberty-backport-potential
** Also affects: nova/liberty
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/1518200
Title:
instance is not destroyed on source host after a successful evacuate
Status in OpenStack Compute (nova):
In Progress
Status in OpenStack Compute (nova) liberty series:
New
Bug description:
After evacuate an instance to a new host successfully, then start the old host's nova-compute, bug the old instance not be destroyed as expected.
See following code:
https://github.com/openstack/nova/blob/stable/liberty/nova/compute/manager.py#L817
nova-compute read migration record from db to get the evacuated instance and then destroy it. It filters migration with status 'accepted'.
https://github.com/openstack/nova/blob/stable/liberty/nova/compute/manager.py#L2715
After successfully evacuate instance, status of migration will change to 'done' from 'accepted'
So, I think we should modify 'accepted' to 'done' when filter migration record.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1518200/+subscriptions
References