yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #58262
[Bug 1535918] Re: instance.host not updated on evacuation
Reviewed: https://review.openstack.org/371048
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=a5b920a197c70d2ae08a1e1335d979857f923b4f
Submitter: Jenkins
Branch: master
commit a5b920a197c70d2ae08a1e1335d979857f923b4f
Author: Artom Lifshitz <alifshit@xxxxxxxxxx>
Date: Wed Oct 5 14:37:03 2016 -0400
Send events to all relevant hosts if migrating
Previously, external events were sent to the instance object's host
field. This patch fixes the external event dispatching to check for
migration. If an instance is being migrated, the source and
destination compute are added to the set of hosts to which the event
is sent.
Change-Id: If00736ab36df4a5a3be4f02b0a550e4bcae77b1b
Closes-bug: 1535918
Closes-bug: 1624052
** Changed in: nova
Status: In Progress => Fix Released
--
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/1535918
Title:
instance.host not updated on evacuation
Status in OpenStack Compute (nova):
Fix Released
Status in nova-powervm:
Fix Released
Bug description:
I'm working on the nova-powervm driver for Mitaka and trying to add
support for evacuation.
The problem I'm hitting is that instance.host is not updated when the
compute driver is called to spawn the instance on the destination
host. It is still set to the source host. It's not until after the
spawn completes that the compute manager updates instance.host to
reflect the destination host.
The nova-powervm driver uses instance events callback mechanism during
plug VIF to determine when Neutron has finished provisioning the
network. The instance events code sends the event to instance.host
and hence is sending the event to the source host (which is down).
This causes the spawn to fail and also causes weirdness when the
source host gets the events when it's powered back up.
To temporarily work around the problem, I hacked in setting
instance.host = CONF.host; instance.save() in the compute driver but
that's not a good solution.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1535918/+subscriptions
References