Browse Source

upgrade: storage migrations should use 'until' to properly retry migrations

Vadim Rutkovsky 6 năm trước cách đây
mục cha
commit
7cc7157cdc
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      playbooks/openshift-master/private/upgrade.yml

+ 2 - 0
playbooks/openshift-master/private/upgrade.yml

@@ -66,6 +66,7 @@
       migrate storage --include=* --confirm
     register: l_pb_upgrade_control_plane_pre_upgrade_storage
     when: openshift_upgrade_pre_storage_migration_enabled | default(true) | bool
+    until: l_pb_upgrade_control_plane_pre_upgrade_storage.rc == 0
     failed_when:
     - l_pb_upgrade_control_plane_pre_upgrade_storage.rc != 0
     - openshift_upgrade_pre_storage_migration_fatal | default(true) | bool
@@ -201,6 +202,7 @@
     run_once: true
     register: l_pb_upgrade_control_plane_post_upgrade_storage
     when: openshift_upgrade_post_storage_migration_enabled | default(true) | bool
+    until: l_pb_upgrade_control_plane_post_upgrade_storage.rc == 0
     failed_when:
     - l_pb_upgrade_control_plane_post_upgrade_storage.rc != 0
     - openshift_upgrade_post_storage_migration_fatal | default(false) | bool