style95 commented on a change in pull request #4963:
URL: https://github.com/apache/openwhisk/pull/4963#discussion_r637735667



##########
File path: ansible/README.md
##########
@@ -196,6 +196,42 @@ ansible-playbook -i environments/$ENVIRONMENT routemgmt.yml
 - To use the API Gateway, you'll need to run `apigateway.yml` and 
`routemgmt.yml`.
 - Use `ansible-playbook -i environments/$ENVIRONMENT openwhisk.yml` to avoid 
wiping the data store. This is useful to start OpenWhisk after restarting your 
Operating System.
 
+### Deploying Using MongoDB
+
+You can choose MongoDB instead of CouchDB as the database backend to store 
entities.
+
+- Deploy a mongodb server(Optional, for test and develop only, use an external 
MongoDB server in production)
+
+```
+ansible-playbook -i environments/<environment> mongodb.yml -e 
mongodb_data_volume="/tmp/mongo-data"
+```
+
+- Then execute
+
+```
+cd <openwhisk_home>
+./gradlew distDocker
+cd ansible
+ansible-playbook -i environments/<environment> initMongodb.yml -e 
mongodb_connect_string="mongodb://172.17.0.1:27017"

Review comment:
       Not quite sure the reason yet but I am unable to deploy this change with 
this line.
   
   ```
   scheduler:
     dataManagementService:
       retryInterval: "{{ scheduler_dataManagementService_retryInterval | 
default(1 second) }}"
   ```
   
   
   ```
   TASK [kafka : add kafka default env vars] 
**********************************************************************************************************************************************************************************************************************************************************************************************************************************
   Monday 24 May 2021  16:07:39 +0900 (0:00:00.054)       0:00:13.372 
************
   fatal: [kafka0]: FAILED! => {"msg": "An unhandled exception occurred while 
templating '{% set ret = [] %}{% for host in groups['zookeepers'] %}{{ 
ret.append( hostvars[host].ansible_host + ':' + 
((zookeeper.port+loop.index-1)|string) ) }}{% endfor %}{{ ret | join(',') }}'. 
Error was a <class 'ansible.errors.AnsibleError'>, original message: template 
error while templating string: expected token ',', got 'second'. String: {{ 
scheduler_dataManagementService_retryInterval | default(1 second) }}"}
   
   An unhandled exception occurred while templating '{% set ret = [] %}{% for
   host in groups['zookeepers'] %}{{ ret.append( hostvars[host].ansible_host + 
':'
   + ((zookeeper.port+loop.index-1)|string) ) }}{% endfor %}{{ ret | join(',') 
}}'.
   Error was a <class 'ansible.errors.AnsibleError'>, original message: template
   error while templating string: expected token ',', got 'second'. String: {{
   scheduler_dataManagementService_retryInterval | default(1 second) }}




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to