Sfoglia il codice sorgente

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 1 anno fa
parent
commit
9cb8f31abe
1 ha cambiato i file con 0 aggiunte e 5 eliminazioni
  1. 0 5
      coriolis/conductor/rpc/server.py

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

@@ -3205,11 +3205,6 @@ class ConductorServerEndpoint(object):
             else:
             else:
                 self._cancel_tasks_execution(ctxt, execution)
                 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
     @task_synchronized
     def add_task_event(self, ctxt, task_id, level, message):
     def add_task_event(self, ctxt, task_id, level, message):
         LOG.info("Adding event for task '%s': %s", task_id, message)
         LOG.info("Adding event for task '%s': %s", task_id, message)