You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by ma...@apache.org on 2017/09/13 07:56:30 UTC
[incubator-openwhisk] branch master updated: Ping couchdb ready by
using _utils. (#2732)
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 <cs...@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" <co...@openwhisk.apache.org>'].