Remove cell api overrides for lock and unlock

This isn't actually needed as these methods handle objects and is
triggered when the instance object is saved.
It actually caused a race condition with unlock as it triggers 2
instance updates from a compute cell.

Change-Id: I42eea6a2984f70527d4fc37f48ad973a2248721c
Closes-Bug: #1257168
This commit is contained in:
Sam Morrison 2014-04-22 16:34:26 +10:00
parent 4d21e66b39
commit fb9b60fb5d
1 changed files with 0 additions and 10 deletions

View File

@ -392,16 +392,6 @@ class ComputeCellsAPI(compute_api.API):
return self._call_to_cells(context, instance, 'get_console_output',
*args, **kwargs)
def lock(self, context, instance):
"""Lock the given instance."""
super(ComputeCellsAPI, self).lock(context, instance)
self._cast_to_cells(context, instance, 'lock')
def unlock(self, context, instance):
"""Unlock the given instance."""
super(ComputeCellsAPI, self).lock(context, instance)
self._cast_to_cells(context, instance, 'unlock')
@check_instance_cell
def _attach_volume(self, context, instance, volume_id, device,
disk_bus, device_type):