diff --git a/playbookconfig/src/playbooks/migrate_sx_to_dx.yml b/playbookconfig/src/playbooks/migrate_sx_to_dx.yml index 1c5f6c6c0..6530ecee4 100644 --- a/playbookconfig/src/playbooks/migrate_sx_to_dx.yml +++ b/playbookconfig/src/playbooks/migrate_sx_to_dx.yml @@ -56,6 +56,7 @@ - set_fact: duplex_mode: "{{ duplex_mode | default('duplex') }}" + kubernetes_duplex_migration_flag: '/var/run/.kubernetes_duplex_migration_complete' - name: Query system_mode shell: source /etc/platform/openrc; system show | awk '$2 == "system_mode" { print $4 }' @@ -85,6 +86,16 @@ failed_when: false when: current_system_mode.stdout == 'simplex' + # Wait up to 20 minutes for the runtime manifest triggered by the previous + # "system modify -m duplex" command, as there may be other runtime manifests + # being applied + - name: Wait for kubernetes duplex migration manifest completion, up to 20 minutes + wait_for: + path: "{{ kubernetes_duplex_migration_flag }}" + state: present + timeout: 1200 + msg: Timeout waiting for kubernetes duplex migration manifest completion + - name: Update OAM configuration shell: >- source /etc/platform/openrc;