无法使用/whisk.system/alarms/alarm提要在ubuntu本地计算机上创建openwhisk触发器

时间:2017-10-26 02:33:06

标签: openwhisk serverless

我能够成功安装警报系统包,主要是在链接https://github.com/apache/incubator-openwhisk-package-alarms/issues/51#issuecomment-294010619

之后

所以,我得到以下内容: bin / wsk package get --summary /whisk.system/alarms --insecure package /whisk.system/alarms:警报和周期性实用程序    (参数:* apihost,* cron,* trigger_payload)  feed /whisk.system/alarms/alarm:发生警报时触发触发    (参数:无定义)

操作,触发器,规则等功能正在我的本地openwhisk安装上运行。

我正在运行命令来创建一个触发器,如下所示: bin / wsk触发器创建convertTriggerPeriodic --feed /whisk.system/alarms/alarm -p cron“* / 9 * * * * *” - p trigger_payload“{\”name \“:\”Odin \“,\”place \“:\”Asgard \“}” - p maxTriggers 6 --insecure

ok: invoked /whisk.system/alarms/alarm with id d5879ab1c97745c9879ab1c977c5c967
{
    "activationId": "d5879ab1c97745c9879ab1c977c5c967",
    "annotations": [
        {
            "key": "limits",
            "value": {
                "logs": 10,
                "memory": 256,
                "timeout": 60000
            }
        },
        {
            "key": "path",
            "value": "whisk.system/alarms/alarm"
        }
    ],
    "duration": 6402,
    "end": 1508984964595,
    "logs": [],
    "name": "alarm",
    "namespace": "guest",
    "publish": false,
    "response": {
        "result": {
            "error": {
                "code": 30810,
                "error": "There was an error processing your request."
            }
        },
        "status": "application error",
        "success": false
    },
    "start": 1508984958193,
    "subject": "guest",
    "version": "0.0.2"
}
ok: invoked /whisk.system/alarms/alarm with id 4fd67308821e4e0b967308821e4e0bdb
{
    "activationId": "4fd67308821e4e0b967308821e4e0bdb",
    "annotations": [
        {
            "key": "limits",
            "value": {
                "logs": 10,
                "memory": 256,
                "timeout": 60000
            }
        },
        {
            "key": "path",
            "value": "whisk.system/alarms/alarm"
        }
    ],
    "duration": 4432,
    "end": 1508984969257,
    "logs": [],
    "name": "alarm",
    "namespace": "guest",
    "publish": false,
    "response": {
        "result": {
            "error": {
                "code": 30822,
                "error": "There was an error processing your request."
            }
        },
        "status": "application error",
        "success": false
    },
    "start": 1508984964825,
    "subject": "guest",
    "version": "0.0.2"
}
ok: deleted trigger convertTriggerPeriodic
Run 'wsk --help' for usage.

它正在运行两次触发器。每次都报告错误:“错误”:“处理您的请求时出错。”然后它正在删除触发器。

所以我无法将规则/动作与触发器相关联。

1 个答案:

答案 0 :(得分:0)

看起来警报操作未正确安装。 https://github.com/apache/incubator-openwhisk-package-alarms/issues/51中列出的指示仍然适用于运行警报泊坞程序容器,但是安装操作的时间已过时。请参阅本期7月21日(https://github.com/apache/incubator-openwhisk-package-alarms/issues/51#issuecomment-317007147)发表的评论。 installCatalog.sh的参数已更改。如果您在执行本期中的安装步骤时遇到问题,也可以查看我在8月9日留下的评论(https://github.com/apache/incubator-openwhisk-package-alarms/issues/51#issuecomment-321320242)。它包含一些链接,指向我为处理安装而编写的一些ansible代码。