You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by "jhawarchirag0 (via GitHub)" <gi...@apache.org> on 2024/01/03 09:22:42 UTC

Re: [I] Invoking whisk.system/alarms/alarm action gives error [openwhisk-deploy-kube]

jhawarchirag0 commented on issue #773:
URL: https://github.com/apache/openwhisk-deploy-kube/issues/773#issuecomment-1875061283

   While trying to do using the cli gives the same error
   ```
   wsk -vi trigger create once-per-min --feed /whisk.system/alarms/alarm --param cron "*/1 * * * *"
   REQUEST:
   [PUT]   https://localhost:4430/api/v1/namespaces/_/triggers/once-per-min?overwrite=false
   Req Headers
   {
     "Authorization": [
       "Basic MjNiYzQ2YjEtNzFmNi00ZWQ1LThjNTQtODE2YWE0ZjhjNTAyOjEyM3pPM3haQ0xyTU42djJCS0sxZFhZRnBYbFBrY2NPRnFtMTJDZEFzTWdSVTRWck5aOWx5R1ZDR3VNREdJd1A="
     ],
     "Content-Type": [
       "application/json"
     ],
     "User-Agent": [
       "OpenWhisk-CLI/1.0 (2019-08-10T00:47:48.313+0000) linux amd64"
     ]
   }
   Req Body
   {"name":"once-per-min","annotations":[{"key":"feed","value":"/whisk.system/alarms/alarm"}]}
   
   RESPONSE:Got response with code 200
   Resp Headers
   {
     "Access-Control-Allow-Headers": [
       "Authorization, Origin, X-Requested-With, Content-Type, Accept, User-Agent"
     ],
     "Access-Control-Allow-Methods": [
       "GET, DELETE, POST, PUT, HEAD"
     ],
     "Access-Control-Allow-Origin": [
       "*"
     ],
     "Connection": [
       "keep-alive"
     ],
     "Content-Length": [
       "197"
     ],
     "Content-Type": [
       "application/json"
     ],
     "Date": [
       "Wed, 03 Jan 2024 09:19:12 GMT"
     ],
     "Server": [
       "nginx/1.19.10"
     ],
     "X-Request-Id": [
       "Ik1S7JkY64aVOlRk6CWnSB3MWOdOFqxm"
     ]
   }
   Response body size is 197 bytes
   Response body received:
   {"annotations":[{"key":"feed","value":"/whisk.system/alarms/alarm"}],"limits":{},"name":"once-per-min","namespace":"guest","parameters":[],"publish":false,"updated":1704273552562,"version":"0.0.1"}
   REQUEST:
   [POST]  https://localhost:4430/api/v1/namespaces/whisk.system/actions/alarms/alarm?blocking=true&result=false
   Req Headers
   {
     "Authorization": [
       "Basic MjNiYzQ2YjEtNzFmNi00ZWQ1LThjNTQtODE2YWE0ZjhjNTAyOjEyM3pPM3haQ0xyTU42djJCS0sxZFhZRnBYbFBrY2NPRnFtMTJDZEFzTWdSVTRWck5aOWx5R1ZDR3VNREdJd1A="
     ],
     "Content-Type": [
       "application/json"
     ],
     "User-Agent": [
       "OpenWhisk-CLI/1.0 (2019-08-10T00:47:48.313+0000) linux amd64"
     ]
   }
   Req Body
   {"authKey":"23bc46b1-71f6-4ed5-8c54-816aa4f8c502:123zO3xZCLrMN6v2BKK1dXYFpXlPkccOFqm12CdAsMgRU4VrNZ9lyGVCGuMDGIwP","cron":"*/1 * * * *","lifecycleEvent":"CREATE","triggerName":"/_/once-per-min"}
   
   RESPONSE:Got response with code 502
   Resp Headers
   {
     "Access-Control-Allow-Headers": [
       "Authorization, Origin, X-Requested-With, Content-Type, Accept, User-Agent"
     ],
     "Access-Control-Allow-Methods": [
       "GET, DELETE, POST, PUT, HEAD"
     ],
     "Access-Control-Allow-Origin": [
       "*"
     ],
     "Connection": [
       "keep-alive"
     ],
     "Content-Length": [
       "601"
     ],
     "Content-Type": [
       "application/json"
     ],
     "Date": [
       "Wed, 03 Jan 2024 09:19:13 GMT"
     ],
     "Server": [
       "nginx/1.19.10"
     ],
     "X-Openwhisk-Activation-Id": [
       "c5b8d8ae32df4090b8d8ae32df3090e0"
     ],
     "X-Request-Id": [
       "hBLqNQrjuT0g7ziIkbyPZhaBYglfpnzz"
     ]
   }
   Response body size is 601 bytes
   Response body received:
   {"activationId":"c5b8d8ae32df4090b8d8ae32df3090e0","annotations":[{"key":"path","value":"whisk.system/alarms/alarm"},{"key":"waitTime","value":146},{"key":"kind","value":"nodejs:10"},{"key":"timeout","value":false},{"key":"limits","value":{"concurrency":1,"logs":10,"memory":256,"timeout":60000}},{"key":"initTime","value":60}],"duration":950,"end":1704273553672,"logs":[],"name":"alarm","namespace":"guest","publish":false,"response":{"result":{"error":"error creating alarm trigger."},"size":87,"status":"application error","success":false},"start":1704273552722,"subject":"guest","version":"0.0.1"}
   {
       "activationId": "c5b8d8ae32df4090b8d8ae32df3090e0",
       "annotations": [
           {
               "key": "path",
               "value": "whisk.system/alarms/alarm"
           },
           {
               "key": "waitTime",
               "value": 146
           },
           {
               "key": "kind",
               "value": "nodejs:10"
           },
           {
               "key": "timeout",
               "value": false
           },
           {
               "key": "limits",
               "value": {
                   "concurrency": 1,
                   "logs": 10,
                   "memory": 256,
                   "timeout": 60000
               }
           },
           {
               "key": "initTime",
               "value": 60
           }
       ],
       "duration": 950,
       "end": 1704273553672,
       "logs": [],
       "name": "alarm",
       "namespace": "guest",
       "publish": false,
       "response": {
           "result": {
               "error": "error creating alarm trigger."
           },
           "size": 87,
           "status": "application error",
           "success": false
       },
       "start": 1704273552722,
       "subject": "guest",
       "version": "0.0.1"
   }
   REQUEST:
   [GET]   https://localhost:4430/api/v1/namespaces/_/triggers/once-per-min
   Req Headers
   {
     "Authorization": [
       "Basic MjNiYzQ2YjEtNzFmNi00ZWQ1LThjNTQtODE2YWE0ZjhjNTAyOjEyM3pPM3haQ0xyTU42djJCS0sxZFhZRnBYbFBrY2NPRnFtMTJDZEFzTWdSVTRWck5aOWx5R1ZDR3VNREdJd1A="
     ],
     "User-Agent": [
       "OpenWhisk-CLI/1.0 (2019-08-10T00:47:48.313+0000) linux amd64"
     ]
   }
   RESPONSE:Got response with code 200
   Resp Headers
   {
     "Access-Control-Allow-Headers": [
       "Authorization, Origin, X-Requested-With, Content-Type, Accept, User-Agent"
     ],
     "Access-Control-Allow-Methods": [
       "GET, DELETE, POST, PUT, HEAD"
     ],
     "Access-Control-Allow-Origin": [
       "*"
     ],
     "Connection": [
       "keep-alive"
     ],
     "Content-Length": [
       "197"
     ],
     "Content-Type": [
       "application/json"
     ],
     "Date": [
       "Wed, 03 Jan 2024 09:19:13 GMT"
     ],
     "Server": [
       "nginx/1.19.10"
     ],
     "X-Request-Id": [
       "Iom2o7bwVm6uDAaVbLBFJU76ASVQ6ePv"
     ]
   }
   Response body size is 197 bytes
   Response body received:
   {"annotations":[{"key":"feed","value":"/whisk.system/alarms/alarm"}],"limits":{},"name":"once-per-min","namespace":"guest","parameters":[],"publish":false,"updated":1704273552562,"version":"0.0.1"}
   REQUEST:
   [POST]  https://localhost:4430/api/v1/namespaces/whisk.system/actions/alarms/alarm?blocking=true&result=false
   Req Headers
   {
     "Authorization": [
       "Basic MjNiYzQ2YjEtNzFmNi00ZWQ1LThjNTQtODE2YWE0ZjhjNTAyOjEyM3pPM3haQ0xyTU42djJCS0sxZFhZRnBYbFBrY2NPRnFtMTJDZEFzTWdSVTRWck5aOWx5R1ZDR3VNREdJd1A="
     ],
     "Content-Type": [
       "application/json"
     ],
     "User-Agent": [
       "OpenWhisk-CLI/1.0 (2019-08-10T00:47:48.313+0000) linux amd64"
     ]
   }
   Req Body
   {"authKey":"23bc46b1-71f6-4ed5-8c54-816aa4f8c502:123zO3xZCLrMN6v2BKK1dXYFpXlPkccOFqm12CdAsMgRU4VrNZ9lyGVCGuMDGIwP","cron":"*/1 * * * *","lifecycleEvent":"DELETE","triggerName":"/_/once-per-min"}
   
   RESPONSE:Got response with code 502
   Resp Headers
   {
     "Access-Control-Allow-Headers": [
       "Authorization, Origin, X-Requested-With, Content-Type, Accept, User-Agent"
     ],
     "Access-Control-Allow-Methods": [
       "GET, DELETE, POST, PUT, HEAD"
     ],
     "Access-Control-Allow-Origin": [
       "*"
     ],
     "Connection": [
       "keep-alive"
     ],
     "Content-Length": [
       "597"
     ],
     "Content-Type": [
       "application/json"
     ],
     "Date": [
       "Wed, 03 Jan 2024 09:19:13 GMT"
     ],
     "Server": [
       "nginx/1.19.10"
     ],
     "X-Openwhisk-Activation-Id": [
       "e10adf5b7535492e8adf5b7535292ea6"
     ],
     "X-Request-Id": [
       "RIO6j4UxWLNoqBBm7oY7PYUjiGkj1iKR"
     ]
   }
   Response body size is 597 bytes
   Response body received:
   {"activationId":"e10adf5b7535492e8adf5b7535292ea6","annotations":[{"key":"path","value":"whisk.system/alarms/alarm"},{"key":"waitTime","value":7},{"key":"kind","value":"nodejs:10"},{"key":"timeout","value":false},{"key":"limits","value":{"concurrency":1,"logs":10,"memory":256,"timeout":60000}}],"duration":45,"end":1704273553734,"logs":[],"name":"alarm","namespace":"guest","publish":false,"response":{"result":{"error":"could not find trigger /guest/once-per-min in the database"},"size":70,"status":"application error","success":false},"start":1704273553689,"subject":"guest","version":"0.0.1"}
   {
       "activationId": "e10adf5b7535492e8adf5b7535292ea6",
       "annotations": [
           {
               "key": "path",
               "value": "whisk.system/alarms/alarm"
           },
           {
               "key": "waitTime",
               "value": 7
           },
           {
               "key": "kind",
               "value": "nodejs:10"
           },
           {
               "key": "timeout",
               "value": false
           },
           {
               "key": "limits",
               "value": {
                   "concurrency": 1,
                   "logs": 10,
                   "memory": 256,
                   "timeout": 60000
               }
           }
       ],
       "duration": 45,
       "end": 1704273553734,
       "logs": [],
       "name": "alarm",
       "namespace": "guest",
       "publish": false,
       "response": {
           "result": {
               "error": "could not find trigger /guest/once-per-min in the database"
           },
           "size": 70,
           "status": "application error",
           "success": false
       },
       "start": 1704273553689,
       "subject": "guest",
       "version": "0.0.1"
   }
   REQUEST:
   [DELETE]        https://localhost:4430/api/v1/namespaces/_/triggers/once-per-min
   Req Headers
   {
     "Authorization": [
       "Basic MjNiYzQ2YjEtNzFmNi00ZWQ1LThjNTQtODE2YWE0ZjhjNTAyOjEyM3pPM3haQ0xyTU42djJCS0sxZFhZRnBYbFBrY2NPRnFtMTJDZEFzTWdSVTRWck5aOWx5R1ZDR3VNREdJd1A="
     ],
     "User-Agent": [
       "OpenWhisk-CLI/1.0 (2019-08-10T00:47:48.313+0000) linux amd64"
     ]
   }
   RESPONSE:Got response with code 200
   Resp Headers
   {
     "Access-Control-Allow-Headers": [
       "Authorization, Origin, X-Requested-With, Content-Type, Accept, User-Agent"
     ],
     "Access-Control-Allow-Methods": [
       "GET, DELETE, POST, PUT, HEAD"
     ],
     "Access-Control-Allow-Origin": [
       "*"
     ],
     "Connection": [
       "keep-alive"
     ],
     "Content-Length": [
       "197"
     ],
     "Content-Type": [
       "application/json"
     ],
     "Date": [
       "Wed, 03 Jan 2024 09:19:13 GMT"
     ],
     "Server": [
       "nginx/1.19.10"
     ],
     "X-Request-Id": [
       "AxELQktE5alYnEiwj9E8KK1OCxprXn8u"
     ]
   }
   Response body size is 197 bytes
   Response body received:
   {"annotations":[{"key":"feed","value":"/whisk.system/alarms/alarm"}],"limits":{},"name":"once-per-min","namespace":"guest","parameters":[],"publish":false,"updated":1704273552562,"version":"0.0.1"}
   ok: deleted trigger once-per-min
   ```


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@openwhisk.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org