summaryrefslogtreecommitdiffstats
path: root/roles/etcd_migrate/tasks
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2017-07-07 20:46:42 -0400
committerGitHub <noreply@github.com>2017-07-07 20:46:42 -0400
commitcd7aea4d9c13d366ddf14095ae4d63560e2dbb7b (patch)
tree2e4e1066f4320cc22becb56284b31878ba15780c /roles/etcd_migrate/tasks
parent40fd8feff47cccc266699ee0e9f855e3fe2550f1 (diff)
parent6033232d9c3b2d9c571fdb262c6c638fb848e080 (diff)
downloadopenshift-cd7aea4d9c13d366ddf14095ae4d63560e2dbb7b.tar.gz
openshift-cd7aea4d9c13d366ddf14095ae4d63560e2dbb7b.tar.bz2
openshift-cd7aea4d9c13d366ddf14095ae4d63560e2dbb7b.tar.xz
openshift-cd7aea4d9c13d366ddf14095ae4d63560e2dbb7b.zip
Merge pull request #4703 from tbielawa/bz1468187
Run some basic etcd checks after migration to ensure leases are good
Diffstat (limited to 'roles/etcd_migrate/tasks')
-rw-r--r--roles/etcd_migrate/tasks/migrate.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/roles/etcd_migrate/tasks/migrate.yml b/roles/etcd_migrate/tasks/migrate.yml
index 4f987a051..b2cf6d20a 100644
--- a/roles/etcd_migrate/tasks/migrate.yml
+++ b/roles/etcd_migrate/tasks/migrate.yml
@@ -31,6 +31,15 @@
name: "{{ l_etcd_service }}"
state: started
+- name: Wait for cluster to become healthy after migration
+ command: >
+ etcdctl --cert-file {{ etcd_peer_cert_file }} --key-file {{ etcd_peer_key_file }} --ca-file {{ etcd_peer_ca_file }} --endpoint https://{{ etcd_peer }}:{{ etcd_client_port }} cluster-health
+ register: l_etcd_migrate_health
+ until: l_etcd_migrate_health.rc == 0
+ retries: 3
+ delay: 30
+ run_once: true
+
# NOTE: /usr/local/bin may be removed from the PATH by ansible hence why
# it's added to the environment in this task.
- name: Re-introduce leases (as a replacement for key TTLs)