Open huksley opened 5 years ago
I'm having the same problem no my digital ocean managed Kubernetes deployment.
@huksley @ZachHerridge There is not error in wskdeploy; it is merely reporting that your .wskprops appears to be missing a key/value for APIGW_ACCESS_TOKEN
. Not sure what the devtools' Compose installation should set for this value. I would recommend asking in either the project's Slack channel (general, or apigateway) asking what value should be set and/or how apigw should be properly configured in wskprops. In the meantime, you could try using the Kube deployment which is preferred and current or try IBM Cloud Functions which should also work.
Seeing that your .wsprops file is very sparse... I would also ask if you have followed the CLI setup instructions: https://github.com/apache/openwhisk/blob/master/docs/cli.md
and also to see what server-side errors you might get... be sure to add a key APIGW_ACCESS_TOKEN
to .wskprops if it does not exist (with a empty value if needed) so that wskdeploy will call the Whisk client which may produce further information (error or otherwise) and if it passes the call to the server, perhaps more (error) info.
@huksley @ZachHerridge For our testing (in Travis), we assume that the key APIGW_ACCESS_TOKEN
is the default for the "guest" account and has a known value of "DUMMY TOKEN"
. This is NOT well documented and I intend to correct that (in multiple places). Typically, it is assumed that you have installed the CLI, performed a manual api list
command and it (as a side effect) would generate the key/value for you in .wskprops...
See:https://github.com/apache/openwhisk-wskdeploy/blob/master/deployers/whiskclient.go
Additionally, I would note that the "sequence:"
key is not supported under the "api:"
key of the manifest.yaml file... it is assumed that you defined an action sequence elsewhere, name it and reference that name when creating your API endpoint (and I will fix that documentation). Please see the 2 integration tests for API gateway for definitive examples here:
https://github.com/apache/openwhisk-wskdeploy/tree/master/tests/src/integration/apigateway
Please also see fix was merged to supply a "DUMMY TOKEN" with this PR: https://github.com/apache/openwhisk-wskdeploy/pull/1057
which was merged into the 1.0.0 release: https://github.com/apache/openwhisk-wskdeploy/releases/tag/1.0.0
OS: Linux Ubuntu 18.04 OpenWhisk deployed to docker using devtools compose setup
I've tried using latest and 0.9.9 version of deploy
I've created simple manifest myservice.yaml
apis
block - error