summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHui Wang <wanghui71@huawei.com>2018-05-25 09:06:44 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-05-25 09:06:44 +0000
commitfca5504bcb2f14ad36d9a29658a6a7c96c29d8bc (patch)
treeb5e9de0bad10d01e09ad3061826117240b76d076
parent3b387984b55e9f84f5a7ca1421d722964e088ba1 (diff)
parent5be62de11c0423cc9314a3328147318d4dfb1954 (diff)
Merge "fix etcd startup arguments"
-rw-r--r--ci/ansible/roles/osdsdb/scenarios/etcd.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/ci/ansible/roles/osdsdb/scenarios/etcd.yml b/ci/ansible/roles/osdsdb/scenarios/etcd.yml
index 9c3352b..62abfdb 100644
--- a/ci/ansible/roles/osdsdb/scenarios/etcd.yml
+++ b/ci/ansible/roles/osdsdb/scenarios/etcd.yml
@@ -25,14 +25,14 @@
register: service_etcd_status
- name: run etcd daemon service
- shell: nohup ./etcd --advertise-client-urls http://{{ etcd_host }}:{{ etcd_port }} --listen-client-urls http://{{ etcd_host }}:{{ etcd_port }} -advertise-client-urls http://{{ etcd_host }}:{{ etcd_peer_port }} -listen-peer-urls http://{{ etcd_host }}:{{ etcd_peer_port }} &>>etcd.log &
+ shell: nohup ./etcd --advertise-client-urls http://{{ etcd_host }}:{{ etcd_port }} --listen-client-urls http://{{ etcd_host }}:{{ etcd_port }} -listen-peer-urls http://{{ etcd_host }}:{{ etcd_peer_port }} &>>etcd.log &
become: true
args:
chdir: "{{ etcd_dir }}"
when: service_etcd_status.rc != 0
- name: check etcd cluster health
- shell: ./etcdctl cluster-health
+ shell: ./etcdctl --endpoints http://{{ etcd_host }}:{{ etcd_port }} cluster-health
become: true
ignore_errors: true
args: