Skip to content

Commit

Permalink
Merge pull request #8779 from vrutkovs/storage-migrate-until
Browse files Browse the repository at this point in the history
upgrade: storage migrations should use 'until' to properly retry migr…
  • Loading branch information
openshift-merge-robot committed Jun 16, 2018
2 parents 3e9b1f4 + 7cc7157 commit 57945e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions playbooks/openshift-master/private/upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 57945e8

Please sign in to comment.