Re: [VOTE] Accept wskdebug contribution from Adobe

2020-02-20 Thread Matt Rutkowski
+1

Many thanks to the Adobe team for all the work to get it to this point!

On 2020/02/20 14:36:49, "David P Grove"  wrote: 
> 
> 
> This is a call to vote to accept the donation of the wskdebug code base
> from Adobe as discussed in [1]. This majority vote will remain open for at
> least 72 hours.
> 
> The IP clearance form [2] has been filed and I will initiate an IPMC IP
> clearance vote shortly (in parallel with this vote).  (Note that there
> appears to be a lag in rebuilding the html version of the clearance at [2];
> consult the .xml file in svn [3] if you want to see the latest)
> 
>  If the vote is successful, we will create a new git repo,
> openwhisk-wskdebug, to contain the donated code to allow the OpenWhisk
> community to continue its development.
> 
> --dave
> 
> [1]
> https://lists.apache.org/thread.html/3cb01abdf0a6a0f2d577d08ed687ab0c06918b7ce958a27b0654b145%40%3Cdev.openwhisk.apache.org%3E
> [2] https://incubator.apache.org/ip-clearance/openwhisk-wskdebug.html
> [3]
> https://svn.apache.org/repos/asf/incubator/public/trunk/content/ip-clearance/openwhisk-wskdebug.xml
> 


Re: Wskdebug, does it work in a docker image?

2020-02-20 Thread Michele Sciabarra
I reply to myself to say that I solved this problem (it is actually mentioned 
in the documentation) with a chown of /usr/lib/node_modules and /usr/bin. So I 
was able to install wskdebug.

However wskdebug in current shape does not work in my two use cases.

One use case is the one I mentioned: I am running an editor with theia in a 
docker image, so I installed it inside a docker image.

Unfortunately wskdebug assumes I can contact the debugging server in 
localhost:9229. This is the case if I am running wskdebug OUTSIDE docker but 
not if I am running INSIDE. 

Also I have another use case where I have to run it: a production with 
kubernetes cluster with actions. Some actions are using redis, kafka and 
buckets. Unfortunately the debugger runs the action in the local docker, and 
the local action cannot reach the services inside the cluster.

-- 
  Michele Sciabarra
  mich...@sciabarra.com

- Original message -
From: Michele Sciabarra 
To: dev@openwhisk.apache.org
Subject: Wskdebug, does it work in a docker image?
Date: Wednesday, February 19, 2020 7:25 PM

Hello, 

I am trying to build an openwhisk IDE, using eclipse theia as a starting point.
I already packages standalone openwhisk as a docker image, and I contributed 
the effort.
Theia runs from another docker image.

I am now trying to run wskdebug in the theia docker container.

Note I am able to run  "wsk" from theia  and I have also docker in the image 
and the docker socket mounted, so I can also do docker ps, docker create etc.

But if I try to install wskdebug in the image it fails.

You can easily replicate the issue with `docker run -ti node:10 bash` and then 
run `npm install -g @adobe/wskdebug`

I see errors like:


ngrok - error storing binary to local file { [Error: EACCES: permission denied, 
open 
'/usr/local/lib/node_modules/@adobe/wskdebug/node_modules/ngrok/bin/aHR0cHM6Ly9iaW4uZXF1aW5veC5pby9jLzRWbUR6QTdpYUhiL25ncm9rLXN0YWJsZS1saW51eC1hbWQ2NC56aXA=.zip']
  errno: -13,
  code: 'EACCES',




-- 
  Michele Sciabarra
  mich...@sciabarra.com


Re: [VOTE] Accept wskdebug contribution from Adobe

2020-02-20 Thread Carlos Santana
+1 To accept wskdebug into Apache OpenWhisk project. 

Thanks to the Adobe team for the contribution. 

Thanks David for handling the handover. 

- Carlos Santana
@csantanapr

> On Feb 20, 2020, at 6:37 AM, David P Grove  wrote:
> 
> 
> 
> This is a call to vote to accept the donation of the wskdebug code base
> from Adobe as discussed in [1]. This majority vote will remain open for at
> least 72 hours.
> 
> The IP clearance form [2] has been filed and I will initiate an IPMC IP
> clearance vote shortly (in parallel with this vote).  (Note that there
> appears to be a lag in rebuilding the html version of the clearance at [2];
> consult the .xml file in svn [3] if you want to see the latest)
> 
> If the vote is successful, we will create a new git repo,
> openwhisk-wskdebug, to contain the donated code to allow the OpenWhisk
> community to continue its development.
> 
> --dave
> 
> [1]
> https://lists.apache.org/thread.html/3cb01abdf0a6a0f2d577d08ed687ab0c06918b7ce958a27b0654b145%40%3Cdev.openwhisk.apache.org%3E
> [2] https://incubator.apache.org/ip-clearance/openwhisk-wskdebug.html
> [3]
> https://svn.apache.org/repos/asf/incubator/public/trunk/content/ip-clearance/openwhisk-wskdebug.xml


[VOTE] Accept wskdebug contribution from Adobe

2020-02-20 Thread David P Grove


This is a call to vote to accept the donation of the wskdebug code base
from Adobe as discussed in [1]. This majority vote will remain open for at
least 72 hours.

The IP clearance form [2] has been filed and I will initiate an IPMC IP
clearance vote shortly (in parallel with this vote).  (Note that there
appears to be a lag in rebuilding the html version of the clearance at [2];
consult the .xml file in svn [3] if you want to see the latest)

 If the vote is successful, we will create a new git repo,
openwhisk-wskdebug, to contain the donated code to allow the OpenWhisk
community to continue its development.

--dave

[1]
https://lists.apache.org/thread.html/3cb01abdf0a6a0f2d577d08ed687ab0c06918b7ce958a27b0654b145%40%3Cdev.openwhisk.apache.org%3E
[2] https://incubator.apache.org/ip-clearance/openwhisk-wskdebug.html
[3]
https://svn.apache.org/repos/asf/incubator/public/trunk/content/ip-clearance/openwhisk-wskdebug.xml


[slack-digest] [2020-02-19] #general

2020-02-20 Thread OpenWhisk Team Slack
2020-02-19 01:48:26 UTC - Tom Barber: okay I've been working on this all day 
and I'm doing something wrong cause this used to work
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582076906074200

2020-02-19 01:48:29 UTC - Tom Barber: but I can't figure out what
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582076909074500

2020-02-19 01:48:51 UTC - Tom Barber: In sls I've got a docker based axction 
defined
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582076931074800

2020-02-19 01:49:09 UTC - Tom Barber: ```  quantJobTrigger:
handler: image
runtime: docker
annotations:
  web-export: true
  require-whisk-auth: false
events:
  - http:
  path: /sessions/docker
  method: get```
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582076949075300

2020-02-19 01:49:30 UTC - Tom Barber: I then try and call it
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582076970075600

2020-02-19 01:50:08 UTC - Tom Barber: ```curl -XPOST - 
http:///api/v1/web/guest/default/-serverless-dev-quantJobTrigger?blocking=false```
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582077008076100

2020-02-19 01:50:13 UTC - Tom Barber: it it runs the container
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582077013076300

2020-02-19 01:50:22 UTC - Tom Barber: but returns a
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582077022076600

2020-02-19 01:50:25 UTC - Tom Barber: ``` HTTP/1.1 204 No Content```
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582077025077000

2020-02-19 01:50:33 UTC - Tom Barber: and no activation ID or anything
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582077033077300

2020-02-19 01:57:44 UTC - Tom Barber: all the container exec command does is
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582077464077600

2020-02-19 01:58:01 UTC - Tom Barber: ```#!/bin/bash
echo '{"msg":"Container run"}'```
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582077481077900

2020-02-19 01:58:13 UTC - Tom Barber: and if I run the container locally and 
and /run
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582077493078200

2020-02-19 01:58:23 UTC - Tom Barber: the container returns a 200 and that 
message
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582077503078700

2020-02-19 02:01:17 UTC - Rodric Rabbah: Try s/msg/body
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582077677079200

2020-02-19 02:01:38 UTC - Rodric Rabbah: Or use .json in the curl after the 
action name. 
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582077698079600

2020-02-19 02:02:04 UTC - Tom Barber: omfg :sob:
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582077724079900

2020-02-19 02:02:14 UTC - Tom Barber: lol
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582077734080400

2020-02-19 02:02:20 UTC - Rodric Rabbah: (No activation id is odd though there 
should be one in the headers) 
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582077740080700

2020-02-19 02:02:42 UTC - Tom Barber: literally 6 hours i've been trying to get 
a response out of that endpoint
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582077762081500

2020-02-19 02:02:50 UTC - Tom Barber: and adding .json and it returns something
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p158200082100

2020-02-19 02:03:18 UTC - Rodric Rabbah: _sorry_ (web actions require a 
conforming response to project the body, status code and headers)
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582077798082900

2020-02-19 02:03:53 UTC - Tom Barber: i saw something about that like 5 minutes 
ago. Weird though because I could have sworn this random box of weirdness ran a 
couple of weeks ago
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582077833083500

2020-02-19 02:04:19 UTC - Tom Barber: well, it may or may not have run, but it 
certainly returned a response than didn't cause the parent action to explode
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582077859084200

2020-02-19 02:04:58 UTC - Tom Barber: clearly something got changed it didn't 
like at some point
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582077898084600

2020-02-19 09:53:01 UTC - Anuradha Natarajan: Hi, i have created a webaction 
that is supposed to use paramiko to connect to the remote machine, install 
docker and liberty profile, however when running the action thro' curl, i am 
getting the following response,
  --   
x-openwhisk-activation-id: 46d8db5620e144b198db5620e144b13f
x-openwhisk-activation-id: 46d8db5620e144b198db5620e144b13f


{
  "code": "vsNL0mKwgvL4bgAb1vVDYJ9mvPB8frDp",
  "error": "Response not yet ready."
* Connection #0 to host 10.0.2.15 left intact
}
 what is meant by a 'response not yet ready' message?

[slack-digest] [2020-02-19] #random

2020-02-20 Thread OpenWhisk Team Slack
2020-02-19 12:28:21 UTC - Rodric Rabbah: 

+1 : Dominic Kim
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1582115301017400

2020-02-19 12:28:52 UTC - Rodric Rabbah: thanks for sharing 
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1582115332017900?thread_ts=1582051429.016800=C3UDXSFA6

2020-02-19 18:24:55 UTC - Rodric Rabbah: 

+1 : Dominic Kim
https://openwhisk-team.slack.com/archives/C3UDXSFA6/p1582136695018200



Re: Preview of a OpenWhisk IDE & Debugger... and an help request

2020-02-20 Thread Bertrand Delacretaz
Hi,

On Wed, Feb 19, 2020 at 7:02 PM Alexander Klimetschek
 wrote:
> Bertrand wrote:
> > IIUC there's no bundling of ngrok with wskdebug and users have to download 
> > ngrok separately?
> Not quite. Their npm client library is bundled with wskdebug, and this is 
> licensed under BSD-2-Clause...

Ok, BSD 2 clause is fine as per [1],

> When you run wskdebug you have the option to specify —ngrok on the command 
> line which will by
> default use their free tier service, or you could also use their paid plans 
> if you want to (I think)

I think mentioning this in the module's README or in the --ngrok help
option text would be sufficient - I don't think anything banned by [1]
is being redistributed so you just want to warn users that by default
they are led to use that service.

-Bertrand

[1] https://apache.org/legal/resolved.html