Explorar el Código

Do not delete reservation on action error or cancellation

This patch makes sure that reservations only get deleted when a
Transfer action is being deleted.
Daniel Vincze hace 1 año
padre
commit
9cb8f31abe
Se han modificado 1 ficheros con 0 adiciones y 5 borrados
  1. 0 5
      coriolis/conductor/rpc/server.py

+ 0 - 5
coriolis/conductor/rpc/server.py

@@ -3205,11 +3205,6 @@ class ConductorServerEndpoint(object):
             else:
                 self._cancel_tasks_execution(ctxt, execution)
 
-            # NOTE: if this was a migration, make sure to delete
-            # its associated reservation.
-            if execution.type == constants.EXECUTION_TYPE_MIGRATION:
-                self._check_delete_reservation_for_transfer(action)
-
     @task_synchronized
     def add_task_event(self, ctxt, task_id, level, message):
         LOG.info("Adding event for task '%s': %s", task_id, message)