diff options
author | Scott Dodson <sdodson@redhat.com> | 2017-08-23 10:58:41 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-23 10:58:41 -0400 |
commit | 2a4f95429df8f6c7c4d3ca35ccca5e27fbf372fc (patch) | |
tree | 87d851eb9768398d9e02742a054145ce60a88067 /playbooks/common/openshift-etcd/scaleup.yml | |
parent | 099835cfd928e0bccf8c298d197ca06960bf954a (diff) | |
parent | 4b5d8d2dc25dbca20be59f3d5d111d737fd865bc (diff) | |
download | openshift-2a4f95429df8f6c7c4d3ca35ccca5e27fbf372fc.tar.gz openshift-2a4f95429df8f6c7c4d3ca35ccca5e27fbf372fc.tar.bz2 openshift-2a4f95429df8f6c7c4d3ca35ccca5e27fbf372fc.tar.xz openshift-2a4f95429df8f6c7c4d3ca35ccca5e27fbf372fc.zip |
Merge pull request #4980 from sdodson/migrate-v2
Switch to migrating one host and scaling etcd members back up
Diffstat (limited to 'playbooks/common/openshift-etcd/scaleup.yml')
-rw-r--r-- | playbooks/common/openshift-etcd/scaleup.yml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/playbooks/common/openshift-etcd/scaleup.yml b/playbooks/common/openshift-etcd/scaleup.yml index 192305bc8..52b90daca 100644 --- a/playbooks/common/openshift-etcd/scaleup.yml +++ b/playbooks/common/openshift-etcd/scaleup.yml @@ -24,6 +24,9 @@ member add {{ etcd_hostname }} {{ etcd_peer_url_scheme }}://{{ etcd_ip }}:{{ etcd_peer_port }} delegate_to: "{{ etcd_ca_host }}" register: etcd_add_check + retries: 3 + delay: 10 + until: etcd_add_check.rc == 0 roles: - role: openshift_etcd when: etcd_add_check.rc == 0 @@ -36,3 +39,13 @@ r_etcd_common_etcd_runtime: "{{ openshift.common.etcd_runtime }}" - role: nickhammond.logrotate when: etcd_add_check.rc == 0 + post_tasks: + - name: Verify cluster is stable + command: > + /usr/bin/etcdctl --cert-file {{ etcd_peer_cert_file }} + --key-file {{ etcd_peer_key_file }} + --ca-file {{ etcd_peer_ca_file }} + -C {{ etcd_peer_url_scheme }}://{{ hostvars[etcd_ca_host].etcd_hostname }}:{{ etcd_client_port }} + cluster-health + retries: 1 + delay: 30 |