Sfoglia il codice sorgente

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

tags/18.3.0
Zuul Gerrit Code Review 5 mesi fa
parent
commit
de00ef96a9
1 ha cambiato i file con 9 aggiunte e 0 eliminazioni
  1. +9
    -0
      nova/compute/manager.py

+ 9
- 0
nova/compute/manager.py Vedi File

@@ -3437,6 +3437,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…
Annulla
Salva