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 2019/12/12 15:47:10 UTC

[GitHub] [openwhisk-package-alarms] pankaj-dahiya commented on issue #51: how to get this into my current install of openwhisk

pankaj-dahiya commented on issue #51: how to get this into my current install of openwhisk
URL: https://github.com/apache/openwhisk-package-alarms/issues/51#issuecomment-565063164
 
 
   I am also facing the same issue. Seems like it is openend since long!!!
   
   I am using docker-compose environment and running my complete system in single ubuntu:16.04 machine
   
    Sharing relative logs : 
   =====================================================
   ubuntu@ip-172-31-90-113:~$ docker logs openwhisk_alarmsprovider_1 
   [2019-12-12T14:30:34.248Z] [INFO] [??] [alarmsTrigger] [createDatabase] creating the trigger database
   [2019-12-12T14:30:34.279Z] [INFO] [??] [alarmsTrigger] [server.listen] Express server listening on port 8080
   [2019-12-12T14:30:34.321Z] [INFO] [??] [alarmsTrigger] [createDatabase] created trigger database: local_alarmservice
   [2019-12-12T14:30:34.499Z] [INFO] [??] [alarmsTrigger] [initActiveHost] redis hset local_alarmservice_worker0 active host0
   [2019-12-12T14:30:34.504Z] [INFO] [??] [alarmsTrigger] [initAllTriggers] resetting system from last state
   
   =====================================================
   ubuntu@ip-172-31-90-113:~$ wsk -i action get /whisk.system/alarms/alarm
   ok: got action alarms/alarm
   {
       "namespace": "whisk.system/alarms",
       "name": "alarm",
       "version": "0.0.1",
       "exec": {
           "kind": "nodejs:6",
           "binary": true
       },
       "annotations": [
           {
               "key": "description",
               "value": "Fire trigger when alarm occurs"
           },
           {
               "key": "provide-api-key",
               "value": false
           },
           {
               "key": "feed",
               "value": true
           },
           {
               "key": "exec",
               "value": "nodejs:6"
           },
           {
               "key": "parameters",
               "value": [
                   {
                       "name": "cron",
                       "required": true
                   },
                   {
                       "name": "timezone",
                       "required": false
                   },
                   {
                       "name": "startDate",
                       "required": false
                   },
                   {
                       "name": "stopDate",
                       "required": false
                   }
               ]
           }
       ],
       "parameters": [
           {
               "key": "apihost",
               "value": "172.31.90.113:4430"
           },
           {
               "key": "trigger_payload",
               "value": ""
           }
       ],
       "limits": {
           "timeout": 60000,
           "memory": 256,
           "logs": 10,
           "concurrency": 1
       },
       "publish": false
   }
   ubuntu@ip-172-31-90-113:~$ 
   
   ==========================================================
   
   ubuntu@ip-172-31-90-113:~$ wsk -i trigger create five-mins-data --feed /whisk.system/alarms/alarm --param cron "*/5 * * * *" --param trigger_payload "{\"tags\": [\"test_key\",\"test_value\"]}"
   {
       "activationId": "29e02ef0767e412ba02ef0767e512b68",
       "annotations": [
           {
               "key": "path",
               "value": "whisk.system/alarms/alarm"
           },
           {
               "key": "waitTime",
               "value": 139
           },
           {
               "key": "kind",
               "value": "nodejs:6"
           },
           {
               "key": "timeout",
               "value": false
           },
           {
               "key": "limits",
               "value": {
                   "concurrency": 1,
                   "logs": 10,
                   "memory": 256,
                   "timeout": 60000
               }
           }
       ],
       "duration": 283,
       "end": 1576164982516,
       "logs": [],
       "name": "alarm",
       "namespace": "guest",
       "publish": false,
       "response": {
           "result": {
               "error": {
                   "error": "Trigger authentication request failed."
               }
           },
           "status": "application error",
           "success": false
       },
       "start": 1576164982233,
       "subject": "guest",
       "version": "0.0.1"
   }
   {
       "activationId": "f538f3e5bf504924b8f3e5bf509924d6",
       "annotations": [
           {
               "key": "path",
               "value": "whisk.system/alarms/alarm"
           },
           {
               "key": "waitTime",
               "value": 27
           },
           {
               "key": "kind",
               "value": "nodejs:6"
           },
           {
               "key": "timeout",
               "value": false
           },
           {
               "key": "limits",
               "value": {
                   "concurrency": 1,
                   "logs": 10,
                   "memory": 256,
                   "timeout": 60000
               }
           }
       ],
       "duration": 506,
       "end": 1576164983067,
       "logs": [],
       "name": "alarm",
       "namespace": "guest",
       "publish": false,
       "response": {
           "result": {
               "error": {
                   "error": "Trigger authentication request failed."
               }
           },
           "status": "application error",
           "success": false
       },
       "start": 1576164982561,
       "subject": "guest",
       "version": "0.0.1"
   }
   ok: deleted trigger five-mins-data
   ======================================================
   
   ubuntu@ip-172-31-90-113:~$ wsk trigger create interval   --feed /whisk.system/alarms/interval   --param minutes 2   --param trigger_payload "{\"name\":\"Odin\",\"place\":\"Asgard\"}"   --param stopDate "2020-01-31T23:59:00.000Z" -i
   {
       "activationId": "5b9097c002724a609097c002722a60d8",
       "annotations": [
           {
               "key": "path",
               "value": "whisk.system/alarms/interval"
           },
           {
               "key": "waitTime",
               "value": 149
           },
           {
               "key": "kind",
               "value": "nodejs:6"
           },
           {
               "key": "timeout",
               "value": false
           },
           {
               "key": "limits",
               "value": {
                   "concurrency": 1,
                   "logs": 10,
                   "memory": 256,
                   "timeout": 60000
               }
           }
       ],
       "duration": 183,
       "end": 1576164853752,
       "logs": [],
       "name": "interval",
       "namespace": "guest",
       "publish": false,
       "response": {
           "result": {
               "error": {
                   "error": "Trigger authentication request failed."
               }
           },
           "status": "application error",
           "success": false
       },
       "start": 1576164853569,
       "subject": "guest",
       "version": "0.0.1"
   }
   {
       "activationId": "c81a6c8395a5464c9a6c8395a5664cb1",
       "annotations": [
           {
               "key": "path",
               "value": "whisk.system/alarms/interval"
           },
           {
               "key": "waitTime",
               "value": 15
           },
           {
               "key": "kind",
               "value": "nodejs:6"
           },
           {
               "key": "timeout",
               "value": false
           },
           {
               "key": "limits",
               "value": {
                   "concurrency": 1,
                   "logs": 10,
                   "memory": 256,
                   "timeout": 60000
               }
           }
       ],
       "duration": 64,
       "end": 1576164853848,
       "logs": [],
       "name": "interval",
       "namespace": "guest",
       "publish": false,
       "response": {
           "result": {
               "error": {
                   "error": "Trigger authentication request failed."
               }
           },
           "status": "application error",
           "success": false
       },
       "start": 1576164853784,
       "subject": "guest",
       "version": "0.0.1"
   }
   ok: deleted trigger interval
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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