openwhisk-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From markusthoem...@apache.org
Subject [incubator-openwhisk] branch master updated: Ping couchdb ready by using _utils. (#2732)
Date Wed, 13 Sep 2017 07:56:30 GMT
This is an automated email from the ASF dual-hosted git repository.

markusthoemmes pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk.git


The following commit(s) were added to refs/heads/master by this push:
     new 602ce94  Ping couchdb ready by using _utils. (#2732)
602ce94 is described below

commit 602ce9438cdf5cbfa5e3365223c1c48348ff1092
Author: Carlos Santana <csantana23@gmail.com>
AuthorDate: Wed Sep 13 03:56:27 2017 -0400

    Ping couchdb ready by using _utils. (#2732)
---
 ansible/roles/couchdb/tasks/deploy.yml | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/ansible/roles/couchdb/tasks/deploy.yml b/ansible/roles/couchdb/tasks/deploy.yml
index 895c4ec..27de148 100644
--- a/ansible/roles/couchdb/tasks/deploy.yml
+++ b/ansible/roles/couchdb/tasks/deploy.yml
@@ -41,12 +41,13 @@
       COUCHDB_PASSWORD: "{{ db_password }}"
       NODENAME: "{{ nodeName }}"
 
-- name: wait until the CouchDB in this host is up and running
-  wait_for:
-    delay: 2
-    host: "{{ ansible_host }}"
-    port: "{{ db_port }}"
-    timeout: 60
+- name: wait until CouchDB in this host is up and running
+  uri:
+    url: "{{ db_protocol }}://{{ ansible_host }}:{{ db_port }}/_utils/"
+  register: result
+  until: result.status == 200
+  retries: 12
+  delay: 5
 
 - name: disable reduce limit on views
   uri:

-- 
To stop receiving notification emails like this one, please contact
['"commits@openwhisk.apache.org" <commits@openwhisk.apache.org>'].

Mime
View raw message