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

[GitHub] ningyougang opened a new pull request #2585: Add the image filter when get invoker info

ningyougang opened a new pull request #2585: Add the image filter when get invoker info
URL: https://github.com/apache/incubator-openwhisk/pull/2585
 
 
   The `nodejs6action` container is created by invoker which test the invoker whether worked well, sometimes, 
   its name may has `invoker` substring, for example as below
   ```
   37d73d962120        whisk/nodejs6action:latest   "/bin/sh -c 'node --e"   13 minutes ago      Up 13 minutes                                                                          wsk0_3_whisksystem_invokerHealthTestAction0
   2581c86d6ada        whisk/invoker:latest         "/bin/sh -c 'exec /in"   13 minutes ago      Up 13 minutes       0.0.0.0:12001->8080/tcp                                            invoker0
   ```
   If above situation happens, below ansible task's revokerInfo's length will be greater than 1
   ```
   - name: get running invoker information
     uri: url="http://{{ inventory_hostname }}:{{ docker.port }}/containers/json?filters={{ '{"name":[ "invoker" ],"ancestor":[ "invoker" ]}' | urlencode }}" return_content=yes
     register: invokerInfo
   ```
   then, below ansible task will be failed
   ```
   TASK [invoker : determine if more than one invoker is running] ******************************************************************************
   Monday 07 August 2017  22:15:36 -0400 (0:00:00.314)       0:00:02.154 ********* 
   fatal: [10.34.135.216]: FAILED! => {"changed": false, "failed": true, "msg": "more than one invoker is running"}
   ```
   
   How to solve this problem, i think the best way is `add image filter` to search exactly 
 
----------------------------------------------------------------
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