瀏覽代碼

Merge "compute: Take an instance.uuid lock when rebooting" into stable/queens

changes/69/696469/2
Zuul Gerrit Code Review 5 月之前
父節點
當前提交
203af2b6a9
共有 1 個文件被更改,包括 9 次插入0 次删除
  1. +9
    -0
      nova/compute/manager.py

+ 9
- 0
nova/compute/manager.py 查看文件

@@ -3310,6 +3310,15 @@ class ComputeManager(manager.Manager):
@wrap_instance_fault
def reboot_instance(self, context, instance, block_device_info,
reboot_type):
@utils.synchronized(instance.uuid)
def do_reboot_instance(context, instance, block_device_info,
reboot_type):
self._reboot_instance(context, instance, block_device_info,
reboot_type)
do_reboot_instance(context, instance, block_device_info, reboot_type)

def _reboot_instance(self, context, instance, block_device_info,
reboot_type):
"""Reboot an instance on this host."""
# acknowledge the request made it to the manager
if reboot_type == "SOFT":


Loading…
取消
儲存