Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with trigger deployement using openwhisk alarm package. #195

Open
ghost opened this issue Aug 5, 2020 · 0 comments · May be fixed by #203
Open

Issue with trigger deployement using openwhisk alarm package. #195

ghost opened this issue Aug 5, 2020 · 0 comments · May be fixed by #203

Comments

@ghost
Copy link

ghost commented Aug 5, 2020

Hi Team,

We are working on a new openwhisk project for our organization. we are in deployment stage and we tried to use a serverless framework for deployment. it worked fine for functions when I tried to deploy an alarm trigger. it hadn't worked.

When I tried to look on code, its seems like you guys using 'feedMask' which makes feed parameter to undefined, which makes my trigger deployment not working. when I changed the 'object .assign' line it worked fine.

Please could you guys, look at this issue ASAP, we are near to our production deployment.

test

My serverless.Yaml

`

service: did-mgmt

provider:
name: openwhisk
ignore_certs: true

resources:
triggers:
blk-refill-trigger:
feed: /whisk.system/alarms/alarm
namespace: 'whisk.system'
feed_parameters:
cron: '*/1 * * * *'
apihost: 10.16.206.34:31001

functions:
refill:
handler: actions/refill.main
name: did-mgmt/refill
namespace: 'whisk.system'
runtime: python:3
image: doc9600819523/custom_python_runtime
events:
- http:
method: POST
path: /api/lc/refill
resp: http
package:
include:
- /**

bulk-refill-invoker:
handler: actions/bulk_refill_invoker.main
name: did-mgmt/bulk-refill-invoker
namespace: 'whisk.system'
runtime: python:3
image: doc9600819523/custom_python_runtime
events:
- trigger: blk-refill-trigger
package:
include:
- /**

bulk-tn-search:
handler: actions/bulk_tn_search.main
name: did-mgmt/bulk-tn-search
namespace: 'whisk.system'
runtime: python:3
image: doc9600819523/custom_python_runtime
package:
include:
- /**

bulk-tn-order:
handler: actions/bulk_tn_order.main
name: did-mgmt/bulk-tn-order
namespace: 'whisk.system'
runtime: python:3
image: doc9600819523/custom_python_runtime
package:
include:
- /**

messenger:
handler: actions/messenger.main
name: did-mgmt/messenger
namespace: 'whisk.system'
runtime: nodejs:10
package:
include:
- node_modules/**

bulk-refill-seq:
name: did-mgmt/bulk-refill-seq
namespace: 'whisk.system'
sequence:
- bulk-tn-search
- bulk-tn-order
- messenger

assign-did:
handler: actions/assign_did.main
name: did-mgmt/assign-did
namespace: 'whisk.system'
runtime: python:3
image: doc9600819523/custom_python_runtime
events:
- http:
method: POST
path: /api/did/assign
resp: http
package:
include:
- /**

inventory-assign-lc:
handler: actions/inventory_assign.assign
name: did-mgmt/inventory-assign-lc
namespace: 'whisk.system'
runtime: nodejs:10
package:
include:
- node_modules/**
parameters:
isTollFree: false

inventory-assign-tf:
handler: actions/inventory_assign.assign
name: did-mgmt/inventory-assign-tf
namespace: 'whisk.system'
runtime: nodejs:10
package:
include:
- node_modules/**
parameters:
isTollFree: true

tasc-assign-lc:
handler: actions/tasc_assign.tascAssign
name: did-mgmt/tasc-assign-lc
namespace: 'whisk.system'
runtime: nodejs:10
package:
include:
- node_modules/**
parameters:
isTollFree: false

tasc-assign-tf:
handler: actions/tasc_assign.tascAssign
name: did-mgmt/tasc-assign-tf
namespace: 'whisk.system'
runtime: nodejs:10
package:
include:
- node_modules/**
parameters:
isTollFree: true

tf-refill:
handler: actions/toll_free_refill.main
name: did-mgmt/tf-refill
namespace: 'whisk.system'
runtime: python:3
image: doc9600819523/custom_python_runtime
events:
- http:
method: POST
path: /api/tf/refill
resp: http
package:
include:
- /**

refill-resp-handler:
handler: actions/refill_response_handler.main
name: did-mgmt/refill-resp-handler
namespace: 'whisk.system'
runtime: python:3
image: doc9600819523/custom_python_runtime
package:
include:
- /**

plugins:

  • serverless-openwhisk`

COULD YOU GUYS PLEASE RESOLVE THIS ASAP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

0 participants