Add config option to disable handling virt lifecycle events
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openstack-manuals |
Fix Released
|
Medium
|
Gauvain Pocentek |
Bug Description
https:/
commit d09785b97a282e8
Author: Matt Riedemann <email address hidden>
Date: Wed Feb 25 14:13:45 2015 -0800
Add config option to disable handling virt lifecycle events
Historically the _sync_power_states periodic task has had the potential
for race conditions and several changes have been made to try and
tighten up this code:
cc5388bbe81
aa1792eb4c1
baabab45e0a
bd8329b3409
The handle_
from the compute driver (currently only implemented by the libvirt
driver) and calls _sync_instance_
_sync_
locks when it's running - expands the scope for race problems in the
compute manager so cloud providers should be able to turn it off. It is
also known to have races with reboot where rebooted instances are
automatically shutdown because of delayed lifecycle events that the
instance is stopped even though it's running.
This is consistent with the view that Nova should manage it's own state
and not rely on external events telling it what to do about state
changes. For example, in _sync_instance_
database thinks an instance is stopped but the hypervisor says it's
running, the compute manager issues a force-stop on the instance.
Also, although not documented (at least from what I can find), Nova has
historically held a stance that it does not support out-of-band
discovery and management of instances, so allowing external events to
change state somewhat contradicts that stance and should be at least a
configurable deployment option.
DocImpact: New config option "handle_
so there is no upgrade impact or change in functionality.
Related-Bug: #1293480
Partial-Bug: #1443186
Partial-Bug: #1444630
Change-Id: I26a1bc70939fb4
Changed in openstack-manuals: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in openstack-manuals: | |
milestone: | none → liberty |
tags: | added: autogenerate-config-docs |
Changed in openstack-manuals: | |
assignee: | nobody → jelly (coding1314) |
Fix proposed to branch: master /review. openstack. org/203429
Review: https:/