X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=ci%2Fansible%2Froles%2Fosdsdb%2Fscenarios%2Fetcd.yml;h=9c3352b20728969667e0760d59690edd67c62cbc;hb=6bc7e08cc5d80941c80e8d36d3a2b1373f147a05;hp=79dc4444464e99ff3c10233d05b48f9361dbc975;hpb=64df7bc3bc70d49153409436b411fb327691a4d5;p=stor4nfv.git diff --git a/ci/ansible/roles/osdsdb/scenarios/etcd.yml b/ci/ansible/roles/osdsdb/scenarios/etcd.yml index 79dc444..9c3352b 100644 --- a/ci/ansible/roles/osdsdb/scenarios/etcd.yml +++ b/ci/ansible/roles/osdsdb/scenarios/etcd.yml @@ -8,14 +8,14 @@ - name: download etcd get_url: url={{ etcd_download_url }} - dest=/tmp/{{ etcd_tarball }} + dest=/opt/{{ etcd_tarball }} when: - etcdexisted.stat.exists is undefined or etcdexisted.stat.exists == false - name: extract the etcd tarball unarchive: - src=/tmp/{{ etcd_tarball }} - dest=/tmp/ + src=/opt/{{ etcd_tarball }} + dest=/opt/ when: - etcdexisted.stat.exists is undefined or etcdexisted.stat.exists == false @@ -25,7 +25,7 @@ register: service_etcd_status - name: run etcd daemon service - shell: nohup ./etcd &>>etcd.log & + 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 & become: true args: chdir: "{{ etcd_dir }}" @@ -34,5 +34,6 @@ - name: check etcd cluster health shell: ./etcdctl cluster-health become: true + ignore_errors: true args: chdir: "{{ etcd_dir }}"