You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2018/05/04 00:06:58 UTC
[GitHub] pritidesai commented on issue #890: Resolves issue #880
pritidesai commented on issue #890: Resolves issue #880
URL: https://github.com/apache/incubator-openwhisk-wskdeploy/pull/890#issuecomment-386472766
Hi @kpavel I am testing these changes and able to generate `manifest.yaml` after running:
```
./wskdeploy sync -m tests/src/integration/cloudant/manifest.yaml --projectname AAA
./wskdeploy export --projectname AAA -m manifest.yaml
```
But when I try to deploy using the exported manifest file, deployment fails with:
```
Info: Deploying trigger feed [sample-data-inserted-trigger] ...
Error: Deployment did not complete sucessfully. Run `wskdeploy undeploy` to remove partially deployed assets.
Error: servicedeployer.go [1625]: [ERROR_WHISK_CLIENT_ERROR]: Error code: 246: The following application error was received: {}: HTTP Response Status: application error HTTP Response Body: {"duration":147,"name":"changes","subject":"","activationId":"d894bbec74ee422994bbec74eec22984","publish":false,"annotations":[{"key":"limits","value":{"timeout":90000,"memory":256,"logs":10}},{"key":"path","value":"whisk.system/cloudant/changes"},{"key":"kind","value":"nodejs:6"},{"key":"waitTime","value":56}],"version":"0.0.139","response":{"result":{"error":{"error":"cloudant trigger feed: missing dbname parameter"}},"success":false,"status":"application error"},"end":1525391387833,"logs":[],"start":1525391387686,"namespace":""}
```
This error is saying `dbname is missing while creating cloudant trigger feed`.
Here is the exported manifest:
```
project:
name: AAA
namespace: ""
credential: ""
apiHost: ""
apigwAccessToken: ""
version: ""
packages: {}
packages:
cloudant-sample:
name: cloudant-sample
version: 0.0.2
license: ""
dependencies:
sample-openwhisk-cloudant:
location: /whisk.system/cloudant
inputs: {}
annotations: {}
namespace:
credential: ""
apiHost: ""
apigwAccessToken: ""
actions:
process-change:
name: process-change
location: ""
version: 0.0.1
function: cloudant-sample/process-change.js
code: ""
runtime: nodejs:6
namespace: <namespace>/cloudant-sample
credential: ""
exposedUrl: ""
web-export: ""
web: ""
main: ""
limits: null
inputs: {}
outputs: {}
annotations:
exec: nodejs:6
read:
name: read
location: ""
version: 0.0.52
function: cloudant-sample/read.js
code: ""
runtime: nodejs:6
namespace: whisk.system/cloudant
credential: ""
exposedUrl: ""
web-export: ""
web: ""
main: ""
limits: null
inputs:
apihost:
value: openwhisk.ng.bluemix.net
bluemixServiceName:
value: cloudantNoSQLDB
dbname:
value: ""
host:
value: <host>
id:
value: ""
password:
value: <password>
username:
value: <username>
outputs: {}
annotations:
description: Read document from database
exec: nodejs:6
parameters:
- name: dbname
required: true
- description: The Cloudant document id to fetch
name: id
required: true
- name: params
required: false
triggers:
sample-data-inserted-trigger:
feed: ""
namespace:
credential: ""
inputs: {}
name: sample-data-inserted-trigger
annotations:
feed: sample-openwhisk-cloudant/changes
source: ""
feeds: {}
rules:
sample-log-change-rule:
trigger: sample-data-inserted-trigger
action: cloudant-sample/process-change-cloudant-sequence
rule: ""
name: sample-log-change-rule
inputs: {}
sequences:
process-change-cloudant-sequence:
actions: read,process-change
web: ""
apis: {}
filepath: ""
```
Here I am noticing couple of differences:
dependency "sample-openwhisk-cloudant" missing Inputs from the exported manifest:
```
dependencies:
# binding cloudant package named sample-openwhisk-cloudant
sample-openwhisk-cloudant:
location: /whisk.system/cloudant
inputs:
username: $CLOUDANT_USERNAME
password: $CLOUDANT_PASSWORD
host: ${CLOUDANT_USERNAME}.cloudant.com
```
Trigger feed and trigger inputs are empty:
```
triggers:
# Trigger named "sample-data-inserted-trigger"
# Creating trigger to fire events when data is inserted into database
sample-data-inserted-trigger:
source: sample-openwhisk-cloudant/changes
inputs:
dbname: $CLOUDANT_DATABASE
```
One of the actions in Sequence is `read` instead of `sample-openwhisk-cloudant/read` and source for action `read` is created on the system. And all the inputs from dependency are listed under `read` action.
----------------------------------------------------------------
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