You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwhisk.apache.org by gi...@git.apache.org on 2017/05/16 08:48:16 UTC

[GitHub] style95 commented on a change in pull request #2248: Make invoker be scaled-out via ansible. (#2247)

style95 commented on a change in pull request #2248: Make invoker be scaled-out via ansible. (#2247)
URL: https://github.com/apache/incubator-openwhisk/pull/2248#discussion_r116686213
 
 

 ##########
 File path: ansible/roles/invoker/tasks/deploy.yml
 ##########
 @@ -31,6 +31,24 @@
     linuxOptions: "-v /usr/lib/x86_64-linux-gnu/libapparmor.so.1:/usr/lib/x86_64-linux-gnu/libapparmor.so.1"
   when: whisk_version_name != "mac"
 
+- name: get running invoker information
+  shell: >
+        curl -Gs http://{{ inventory_hostname }}:{{ docker.port }}/containers/json --data-urlencode 'filters={"name":[ "invoker" ]}'
+  register: results
 
 Review comment:
   I have tried it and it worked.
   But we need ugly url encoded due to filters.
   
   ```
   - name: determine if any invokers are running
     uri: url="http://{{ inventory_hostname }}:{{ docker.port }}/containers/json?filters=%7B%22name%22:%5B%22invoker%22%5D%7D" return_content=yes
     register: invokerInfo
   ``` 
   I couldn`t find any option to encode curly braces and brackets.
   
   If possible, we can get rid of annoying ansible warning.
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services