Allow disabling the evacuate cleanup mechanism in compute manager
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Undecided
|
Unassigned | ||
openstack-manuals |
Fix Released
|
High
|
Alexandra Settle |
Bug Description
https:/
commit 6f1f9dbc211356a
Author: Tony Breeds <email address hidden>
Date: Tue Jan 27 11:17:54 2015 -0800
Allow disabling the evacuate cleanup mechanism in compute manager
This mechanism attempts to destroy any locally-running instances on
startup if instance.host != self.host. The assumption is that the
instance has been evacuated and is safely running elsewhere. This is
a dangerous assumption to make, so this patch adds a configuration
variable to disable this behavior if it's not desired.
Note that disabling it may have implications for the case where
instances *were* evacuated, given potential shared resources.
To counter that problem, this patch also makes _init_instance()
skip initialization of the instance if it appears to be owned
by another host, logging a prominent warning in that case.
As a result, if you have destroy_
a nova compute with an incorrect hostname, or run it twice from
another host, then the worst that will happen is you get log
warnings about the instances on the host being ignored. This should
be an indication that something is wrong, but still allow for
fixing it without any loss. If the configuration option is disabled
and a legitimate evacuation does occur, simply enabling it and then
restarting the compute service will cause the cleanup to occur.
This is added to the workarounds config group because it is really
only relevant while evacuate is fundamentally broken in this way.
It needs to be refactored to be more robust, and once that is done,
this should be able to go away.
Conflicts:
NOTE: In nova/utils.py a new section has been introduced but
only the option addessed by this backport has been included.
DocImpact: New configuration option, and peril warning
Partial-Bug: #1419785
(cherry picked from commit 922148ac45c5a70
-- squashed with commit --
Create a 'workarounds' config group.
This group is for very specific reasons.
If you're:
- Working around an issue in a system tool (e.g. libvirt or qemu) where the fix
is in flight/discussed in that community.
- The tool can be/is fixed in some distributions and rather than patch the code
those distributions can trivially set a config option to get the "correct"
behavior.
This is a good place for your workaround.
(cherry picked from commit b1689b58409ab97
--
Change-Id: Ib9a3c72c096822
tags: | added: autogenerate-config-docs config-reference |
Changed in openstack-manuals: | |
status: | New → Confirmed |
importance: | Undecided → High |
milestone: | none → liberty |
Changed in openstack-manuals: | |
status: | In Progress → Triaged |
assignee: | Gauvain Pocentek (gpocentek) → nobody |
Changed in openstack-manuals: | |
milestone: | liberty → mitaka |
Changed in openstack-manuals: | |
assignee: | nobody → khushbu (khushbuparakh) |
Changed in openstack-manuals: | |
milestone: | mitaka → newton |
Changed in openstack-manuals: | |
status: | Triaged → In Progress |
Changed in openstack-manuals: | |
assignee: | khushbu (khushbuparakh) → Christian Berendt (berendt) |
Changed in openstack-manuals: | |
assignee: | Christian Berendt (berendt) → Lana (loquacity) |
Changed in openstack-manuals: | |
assignee: | Lana (loquacity) → Alexandra Settle (alexandra-settle) |
Fix proposed to branch: master /review. openstack. org/203429
Review: https:/