wrong lock name when operating instance events
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Alex Xu |
Bug Description
We use wrong lock name at here:
def prepare_
"""Prepare to receive an event for an instance.
This will register an event for the given instance that we will
wait on later. This should be called before initiating whatever
action will trigger the event. The resulting eventlet.
object should be wait()'d on to ensure completion.
:param instance: the instance for which the event will be generated
:param event_name: the name of the event we're expecting
:returns: an event object that should be wait()'d on
"""
def _create_
if instance.uuid not in self._events:
return self._events[
return _create_
We should invoke self._lock_name, not pass it as name.
So will get log message as below:
2014-06-16 17:44:59.022 DEBUG nova.openstack.
Same problem for pop_instance_event and clear_events_
Changed in nova: | |
assignee: | nobody → Alex Xu (xuhj) |
Changed in nova: | |
importance: | Undecided → Medium |
status: | In Progress → Triaged |
Changed in nova: | |
status: | Triaged → In Progress |
tags: | added: icehouse-backport-potential |
Changed in nova: | |
milestone: | none → juno-2 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | juno-2 → 2014.2 |
Fix proposed to branch: master /review. openstack. org/100211
Review: https:/