apache/openwhisk

Cannot update action kind if runtime is no longer supported

开放

#4,455 创建于 2019年4月24日

 (3 条评论) (2 个反应) (0 位负责人)Scala (1,177 个派生)batch import
controllerhelp wanted

仓库指标

星标
 (6,777 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

I tried to update the kind of an action that has an old runtime that has been removed, but this fails with the following error message:

$ wsk action update foo --kind nodejs:10
error: Unable to create action 'foo': The 'nodejs:10-fat' runtime is no longer supported. You may read and delete but not update or invoke this action. (code Jhgg2GzINamHp5yxACGBXjCbcViyU8bD)

The nodejs:10-fat is indeed an old runtime that has been removed. I found the error message at:

https://github.com/apache/incubator-openwhisk/blob/master/common/scala/src/main/scala/org/apache/openwhisk/http/ErrorResponse.scala#L56-L63

so it looks like a backend issue and not an issue from the wsk CLI.

I'd have expected that it is possible to update the kind in order to update all actions that use some deprecated runtime without having to redeploy the code.

cc: @csantanapr as discussed on Slack

贡献者指南