fix etcd startup arguments 83/57383/1
authorDi Xu <di.xu@arm.com>
Fri, 27 Apr 2018 05:36:44 +0000 (13:36 +0800)
committerDi Xu <di.xu@arm.com>
Tue, 15 May 2018 07:23:02 +0000 (15:23 +0800)
Change-Id: I34c399b309986fc7bfb25af8104843ec9b9dd9c0
Signed-off-by: Di Xu <di.xu@arm.com>
ci/ansible/roles/osdsdb/scenarios/etcd.yml

index 9c3352b..62abfdb 100644 (file)
   register: service_etcd_status\r
 \r
 - name: run etcd daemon service\r
-  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 &\r
+  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 &\r
   become: true\r
   args:\r
     chdir: "{{ etcd_dir }}"\r
   when: service_etcd_status.rc != 0\r
 \r
 - name: check etcd cluster health\r
-  shell: ./etcdctl cluster-health\r
+  shell: ./etcdctl --endpoints http://{{ etcd_host }}:{{ etcd_port }} cluster-health\r
   become: true\r
   ignore_errors: true\r
   args:\r