You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwhisk.apache.org by OpenWhisk Team Slack <ra...@apache.org> on 2019/03/15 07:24:03 UTC

[slack-digest] [2019-03-14] #general

2019-03-14 02:55:39 UTC - Rodric Rabbah: That suggests your controller didn’t come back cleanly. Checked the logs? In /tmp/wsklogs
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552532139263500?thread_ts=1552532139.263500&cid=C3TPCAQG1
----
2019-03-14 03:01:46 UTC - Xue Shuai: @chetanm Thanks for your reply, I fond the same info in  the log file at wsklogs. It seems that the metric have been enabled, but I still can't got data via grafana web port, Is there any suggestion :slightly_smiling_face:
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552532506263600?thread_ts=1552481145.258900&cid=C3TPCAQG1
----
2019-03-14 08:23:36 UTC - Lars Andersson: I can't find any documentation of the breaking change with api keys that was introduced with PR #4284. Can someone point me to where I can find information on the new annotation and how that changes commands with wsk cli?
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552551816265600?thread_ts=1552551816.265600&cid=C3TPCAQG1
----
2019-03-14 09:01:01 UTC - chetanm: Its documented here <https://github.com/apache/incubator-openwhisk/blob/master/docs/annotations.md#annotations-for-all-actions>
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552554061265700?thread_ts=1552551816.265600&cid=C3TPCAQG1
----
2019-03-14 09:01:20 UTC - chetanm: So just pass one more annotation as part of wsk cli
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552554080265900?thread_ts=1552551816.265600&cid=C3TPCAQG1
----
2019-03-14 09:02:06 UTC - chetanm: Not played much with graphite. Would check. Most likely data is there just need to be surfaced in Grafan by authoring a dashboard
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552554126266100?thread_ts=1552481145.258900&cid=C3TPCAQG1
----
2019-03-14 09:05:02 UTC - chetanm: I can see the metrics in <http://localhost:81/>
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552554302266300?thread_ts=1552481145.258900&cid=C3TPCAQG1
----
2019-03-14 09:05:23 UTC - chetanm: 
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552554323266500?thread_ts=1552481145.258900&cid=C3TPCAQG1
----
2019-03-14 09:20:39 UTC - Lars Andersson: Thanks. Never checked that document :face_with_monocle:
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552555239266900?thread_ts=1552551816.265600&cid=C3TPCAQG1
----
2019-03-14 11:15:17 UTC - Barry: How does the invoker get the IP addresses of the action containers(wsk0_*) ? I intercept the docker commands that executed by invoker, but it seems that the command of "docker inspect..." has never been executed. I can see only "docker ps/run/pause/unpause/rm" commands executed.
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552562117268900
----
2019-03-14 11:21:17 UTC - Dominic Kim: @Barry IP address is acquired by this <https://github.com/apache/incubator-openwhisk/blob/master/core/invoker/src/main/scala/org/apache/openwhisk/core/containerpool/docker/DockerContainer.scala#L143> while creating a container.
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552562477269600
----
2019-03-14 11:25:06 UTC - Barry: @Dominic Kim Then it will execute this code ? <https://github.com/apache/incubator-openwhisk/blob/bb4e4dfad252c0700b37093d78e24f56e52b3a3f/core/invoker/src/main/scala/org/apache/openwhisk/core/containerpool/docker/DockerClient.scala#L157>
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552562706270200
----
2019-03-14 11:25:27 UTC - Dominic Kim: I think so.
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552562727270400
----
2019-03-14 11:26:03 UTC - Barry: It seems the docker inspect command will be executed then.  Seq("inspect", "--format", s"{{.NetworkSettings.Networks.${network}.IPAddress}}", id.asString)
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552562763270900
----
2019-03-14 11:26:31 UTC - Barry: But I didn't see the inspect command executed in my log file
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552562791271500
----
2019-03-14 11:27:13 UTC - Dominic Kim: How do you capture the docker command execution?
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552562833271800
----
2019-03-14 11:27:39 UTC - Barry: ===&gt; docker run -d --cpu-shares 256 --memory 256m --memory-swap 256m --network openwhisk_default -e __OW_API_HOST=<https://172.31.11.205:443> --name wsk0_6_whisksystem_getApi --cap
===&gt; docker pause 4a7a5046fb1c0d0f8ef71eb1c444be54cc1e969ccac20dc4b02bf9e3b0f634d5
===&gt; docker unpause 216d9c5a2d22009610693ae050932638f1c0eae724c29f228b89aa7ed89cae84
===&gt; docker run -d --cpu-shares 256 --memory 256m --memory-swap 256m --network openwhisk_default -e __OW_API_HOST=<https://172.31.11.205:443> --name wsk0_7_whisksystem_deleteApi --
===&gt; docker rm -f 216d9c5a2d22009610693ae050932638f1c0eae724c29f228b89aa7ed89cae84
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552562859272000
----
2019-03-14 11:28:45 UTC - Dominic Kim: Are using logging to capture the docker command?
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552562925272600
----
2019-03-14 11:29:03 UTC - Barry: #!/bin/bash

mv /usr/bin/docker /usr/bin/docker1
echo "===&gt; docker $*" &gt;&gt; ~/command.log
/usr/bin/docker1 $@
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552562943272800
----
2019-03-14 11:29:36 UTC - Barry: I just replace docker client
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552562976273100
----
2019-03-14 11:30:02 UTC - Barry: with my script and pass parameters to docker client again
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552563002273600
----
2019-03-14 11:31:31 UTC - Barry: My Dockerfile
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552563091274100
----
2019-03-14 11:31:38 UTC - Barry: From openwhisk/invoker:latest
RUN mv /usr/bin/docker /usr/bin/docker1
COPY docker /usr/bin/
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552563098274300
----
2019-03-14 11:34:30 UTC - Dominic Kim: oh..
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552563270274500
----
2019-03-14 11:34:43 UTC - Dominic Kim: It seems it does not fetch IP address from `docker inspect`.
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552563283275000
----
2019-03-14 11:34:53 UTC - Barry: yes
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552563293275200
----
2019-03-14 11:35:10 UTC - Dominic Kim: <https://github.com/apache/incubator-openwhisk/blob/master/core/invoker/src/main/scala/org/apache/openwhisk/core/containerpool/docker/DockerClientWithFileAccess.scala#L133>
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552563310275400
----
2019-03-14 11:35:23 UTC - Dominic Kim: It directly fetches it from the container file.
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552563323275800
----
2019-03-14 11:36:31 UTC - Dominic Kim: `DockerClientWithFileAccess` is the default client for Docker.
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552563391276500
----
2019-03-14 11:38:08 UTC - Barry: Ah, I see, read the file like /var/lib/docker/containers/01f4af466cb71e503fd28fe486f85ff4db8f963eb009670300eaece688643c19/hosts
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552563488276900
----
2019-03-14 11:38:13 UTC - Barry: right ?
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552563493277200
----
2019-03-14 11:47:50 UTC - Barry: @Dominic Kim I find it , is read from the config file, thanks for your help
+1 : Dominic Kim
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552564070279600?thread_ts=1552564070.279600&cid=C3TPCAQG1
----
2019-03-14 12:00:11 UTC - Xue Shuai: Well, I see nothing in graphite web port. o(╥﹏╥)o
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552564811279900?thread_ts=1552481145.258900&cid=C3TPCAQG1
----
2019-03-14 12:04:22 UTC - Xue Shuai: [2019-03-13T11:35:08.907Z] [INFO] Remoting shut down
[2019-03-13T11:35:08.907Z] [INFO] Remoting shut down.
Picked up JAVA_TOOL_OPTIONS: -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap
[2019-03-13T11:35:13.617Z] [INFO] Started the Kamon StatsD reporter
[2019-03-13T11:35:13.620Z] [INFO] Loaded metric reporter [kamon.statsd.StatsDReporter]
[2019-03-13T11:35:14.170Z] [INFO] Slf4jLogger started
[2019-03-13T11:35:14.376Z] [INFO] Starting remoting
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552565062280300?thread_ts=1552481145.258900&cid=C3TPCAQG1
----
2019-03-14 12:07:47 UTC - chetanm: What's the host OS Mac or linux
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552565267280500?thread_ts=1552481145.258900&cid=C3TPCAQG1
----
2019-03-14 12:38:36 UTC - Xue Shuai: @chetanm Ubuntu 16.04
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552567116280700?thread_ts=1552481145.258900&cid=C3TPCAQG1
----
2019-03-14 12:42:18 UTC - Rodric Rabbah: Welcome Barry. 

What are you trying to do?
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552567338281400?thread_ts=1552564070.279600&cid=C3TPCAQG1
----
2019-03-14 13:59:50 UTC - chetanm: May be its not able to connect. With UDP you would not be able to see connection error 172.17.0.7
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552571990281600?thread_ts=1552481145.258900&cid=C3TPCAQG1
----
2019-03-14 14:00:13 UTC - chetanm: May be try the test steps mentioned by @Vadim Raskin at <https://github.com/apache/incubator-openwhisk/pull/4165#issuecomment-449417123>
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552572013281800?thread_ts=1552481145.258900&cid=C3TPCAQG1
----
2019-03-14 14:04:09 UTC - Erez Hadad: Strange. I see that "redo edge" fixed my problem. AFAIK, this has nothing to do with the controller.
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552572249282000?thread_ts=1552532139.263500&cid=C3TPCAQG1
----
2019-03-14 14:49:05 UTC - James Thomas: <https://twitter.com/thomasj/status/1106205517767168002>
+1 : Dominic Kim
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552574945282300
----
2019-03-14 15:02:46 UTC - Rodric Rabbah: @James Thomas that is :fire: :exploding_head:
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552575766283200
----
2019-03-14 15:05:19 UTC - James Thomas: thanks! it worked better than I thought….
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552575919283600
----
2019-03-14 15:05:39 UTC - James Thomas: I even got a Java app server working - although the cold starts were terrible :slightly_smiling_face:
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552575939284100
----
2019-03-14 15:09:31 UTC - James Thomas: will try to remember to present this on the next community call…
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552576171284500
----
2019-03-14 15:19:18 UTC - Rodric Rabbah: @Dragos Dascalita Haut ^^
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552576758284600
----
2019-03-14 15:21:30 UTC - Rodric Rabbah: do we have a list of all the openwhisk repos somewhere?
yes we do: <https://github.com/apache/incubator-openwhisk/blob/master/docs/dev/modules.md>
+1 : Satwik Kolhe
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552576890285100?thread_ts=1552576890.285100&cid=C3TPCAQG1
----
2019-03-14 15:23:22 UTC - chetanm: Thats bit stale now … reminds me to update it
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552577002285300?thread_ts=1552576890.285100&cid=C3TPCAQG1
----
2019-03-14 16:34:14 UTC - Carlos Santana: @James Thomas Nice :rocket: <https://twitter.com/csantanapr/status/1106231672587075589>
openwhisk : James Thomas
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552581254286000
----
2019-03-14 20:20:32 UTC - Perry Dykes: Folks, have an openwhisk action that takes XML (Web Action attributes set "Enable as Web Action" and "Raw HTTP handling"). It parses the XML, does the work as expected, creates a JSON response object and completes sucessfully (call the .json http method to make this work).  For testing, I use the API-KEY created in the action Endpoint, and call the http Public method that ends in .json as openwhisk creates.

My issue, I cannot use an API-KEY for a variety of reasons.  Thus I createed an Action/API/API Explorer uri for intending non-api key access.  I can create the exposed URI without API-Key, and trying to use the Endpoint + the URI extension created in the definition, e.g. /api/v1.

The question... how can I access the .json http method for the action as tested above (that works), but do so using the API Explorer API Explorer Endpoint uri + "/api/v1" that does not require an API-KEY.  Openwhisk, I think (api gateway maybe), is providing back a 500 error code with out much detail:

```
{
  "code":500, 
  "message":"Oops. Something went wrong. Check your URI and try again."
}
```

The result does not show up in the Monitor console. I tried the debugging X-Debug-Mode:true, and the API endpoint shows the entry, but the action is not invoked. The xml content is provided according to the Response Details in the Response log.  Thanks for the newb question.
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1552594832292400
----