Kaynağa Gözat

Make DELETE_REPLICA_DISK_SNAPSHOTS task depend on CREATE_REPLICA_DISKS_SNAPSHOTS.

Nashwan Azhari 6 yıl önce
ebeveyn
işleme
5dfdb4fe9e
1 değiştirilmiş dosya ile 3 ekleme ve 1 silme
  1. 3 1
      coriolis/conductor/rpc/server.py

+ 3 - 1
coriolis/conductor/rpc/server.py

@@ -919,7 +919,9 @@ class ConductorServerEndpoint(object):
 
             self._create_task(
                 instance, constants.TASK_TYPE_DELETE_REPLICA_DISK_SNAPSHOTS,
-                execution, depends_on=[finalize_deployment_task.id],
+                execution, depends_on=[
+                    create_snapshot_task.id,
+                    finalize_deployment_task.id],
                 on_error=clone_disks)
 
             cleanup_deployment_task = self._create_task(