<!-- We use the issue tracker for bugs and feature requests. For general questions and discussion please use http://slack.openwhisk.org/ or https://openwhisk.apache.org/contact.html instead.
Do NOT share passwords, credentials or other confidential information. Before creating a new issue, please check if there is one already open that fits the defect you are reporting. If you open an issue and realize later it is a duplicate of a pre-existing open issue, please close yours and add a comment to the other. Issues can be created for either defects or enhancement requests. If you are a committer than please add the labels "bug" or "feature". If you are not a committer please make clear in the comments which one it is, so that committers can add these labels later. If you are reporting a defect, please edit the issue description to include the information shown below. If you are reporting an enhancement request, please include information on what you are trying to achieve and why that enhancement would help you. For more information about reporting issues, see https://github.com/apache/incubator-openwhisk/blob/master/CONTRIBUTING.md#raising-issues Use the commands below to provide key information from your environment: You do not have to include this information if this is a feature request. --> ## Environment details: Single and distributed Ubuntu 16.04 deployment Docker version 18.03.1-ce, build 9ee9f40 CPU - Intel(R) Xeon(R) CPU E5-2697 v4 @ 2.30GHz Server has 80 cores. ## Steps to reproduce the issue: 1. Change the value of "coreshare" in ansible/group_vars/all to "8" 2. Build using gradlew distDocker 3. Deploy openwhisk using ansible 4. Create a python action (wsk action create prime prime.py) - FYI "which" action does not matter, the underlying issue is in the support of the infrastructure to the parameter "coreshare" 5. Invoke action as "wsk invoke action prime -b -v" ## Provide the expected results and outputs: Expected result is that the action completes and returns "Hello" to the user. ## Provide the actual results and outputs: The action is created but fails during invoke with an internal error. wsk action -i invoke prime-py -b -p range 10000 -d [commands.NewQualifiedName]:132:[Inf] Qualified pkg+entity (EntityName): prime-py [commands.NewQualifiedName]:133:[Inf] Qualified namespace: _ [commands.NewQualifiedName]:134:[Inf] Qualified package: [commands.NewQualifiedName]:135:[Inf] Qualified entity: prime-py [li/commands.getParameters]:071:[Inf] Parsing parameters: []string{"{\"range\": 10000}"} [mmands.getJSONFromStrings]:099:[Inf] Convert content to JSON: []string{"{\"range\": 10000}"} [mmands.getJSONFromStrings]:109:[Inf] Created map 'map[range:10000]' from '{"range": 10000}' [k.(*ActionService).Invoke]:294:[Inf] HTTP route: actions/prime-py?blocking=true&result=false [k.(*Client).addAuthHeader]:299:[Inf] Adding basic auth header; using authkey REQUEST: [POST] https://192.168.168.17/api/v1/namespaces/_/actions/prime-py?blocking=true&result=false Req Headers { "Authorization": [ "Basic MjNiYzQ2YjEtNzFmNi00ZWQ1LThjNTQtODE2YWE0ZjhjNTAyOjEyM3pPM3haQ0xyTU42djJCS0sxZFhZRnBYbFBrY2NPRnFtMTJDZEFzTWdSVTRWck5aOWx5R1ZDR3VNREdJd1A=" ], "Content-Type": [ "application/json" ], "User-Agent": [ "OpenWhisk-CLI/1.0 (2018-09-05T22:00:18.848+0000) linux amd64" ] } Req Body {"range":10000} [go/whisk.PrintRequestInfo]:459:[Inf] Req Body (ASCII quoted string): "{\"range\":10000}\n" RESPONSE:Got response with code 500 Resp Headers { "Access-Control-Allow-Headers": [ "Authorization, Content-Type" ], "Access-Control-Allow-Origin": [ "*" ], "Connection": [ "keep-alive" ], "Content-Length": [ "89" ], "Content-Type": [ "application/json" ], "Date": [ "Mon, 10 Sep 2018 21:18:40 GMT" ], "Server": [ "nginx" ], "X-Request-Id": [ "1891fb56a3e7c0f90c15bbd777700574", "1891fb56a3e7c0f90c15bbd777700574" ] } Response body size is 89 bytes Response body received: {"error":"There was an internal server error.","code":"1891fb56a3e7c0f90c15bbd777700574"} [o/whisk.PrintResponseInfo]:500:[Inf] Response body received (ASCII quoted string): "{\"error\":\"There was an internal server error.\",\"code\":\"1891fb56a3e7c0f90c15bbd777700574\"}" [/whisk.parseErrorResponse]:515:[Inf] HTTP failure 500 + body [/whisk.parseErrorResponse]:530:[Inf] HTTP failure 500; server error There was an internal server error. (code 1891fb56a3e7c0f90c15bbd777700574) [k.(*ActionService).Invoke]:309:[Err] s.client.Do() error - HTTP req https://192.168.168.17/api/v1/namespaces/_/actions/prime-py?blocking=true&result=false; error 'There was an internal server error. (code 1891fb56a3e7c0f90c15bbd777700574)' [nds.handleInvocationError]:1014:[Err] Client.Actions.Invoke(prime-py, &{%!t(*whisk.ErrorResponse=&{0xc420019680 0xc420336f40 0xc420336f60}) %!t(int=244) true false false true false false}) error: %!s(MISSING) [-cli/commands.ExitOnError]:1187:[Inf] err object type: *whisk.WskError [-cli/commands.ExitOnError]:1198:[Err] Got a *whisk.WskError error: &whisk.WskError{RootErr:(*errors.errorString)(0xc420337230), ExitCode:244, DisplayMsg:true, MsgDisplayed:false, DisplayUsage:true, DisplayPrefix:true, ApplicationError:false, TimedOut:false} error: Unable to invoke action 'prime-py': There was an internal server error. (code 1891fb56a3e7c0f90c15bbd777700574) Run 'wsk --help' for usage. ## Additional information you deem important: Have Openwhisk developers tested the limits of coreshare? Are they hardcoded anywhere to be less than 8? [ Full content available at: https://github.com/apache/incubator-openwhisk/issues/4014 ] This message was relayed via gitbox.apache.org for [email protected]
