我无法停止并因此删除应用引擎版本。目前我有3个不同的版本,在相同的默认服务下:
gappa-v1
,目前正在提供100%的流量mg-v1
,目前已停止20170223t163224
我能够停止,重启和删除除20170223t163224
版本之外的所有版本。
我已尝试过所有内容,包括Google云端控制台和gcloud
命令行工具。
从Google云端控制台进行互动是没有用的,因为它没有给我任何关于错误的反馈,但只是一个通用的在停止尝试时无法停止版本或该版本无法删除关于删除尝试。
在与gcloud
命令行工具交互时,我尝试过:
$> gcloud app versions stop `20170223t163224`
$> ERROR: (gcloud.app.versions.stop) INTERNAL: This flexible version cannot be modified, it can only be deleted.
然后,如果我尝试删除它:
$> gcloud app versions delete `20170223t163224`
$> [default/20170223t163224]: Error Response: [13] Deployment Manager operation failed, name: operation-1488895382516-54a247861f121-d456a139-0b1e3fc6, error: [{"code":"RESOURCE_ERROR","locati
on":"/deployments/aef-default-20170223t163224/resources/aef-default-20170223t163224-00","message":"{\"ResourceType\":\"compute.beta.regionInstanceGroupManager\",\"ResourceErrorCode\":\"400
\",\"ResourceErrorMessage\":{\"code\":400,\"errors\":[{\"domain\":\"global\",\"message\":\"The instance_group_manager resource 'aef-default-20170223t163224-00' is already being used by 'ae
f-default-20170223t163224'\",\"reason\":\"resourceInUseByAnotherResource\"}],\"message\":\"The instance_group_manager resource 'aef-default-20170223t163224-00' is already being used by 'ae
f-default-20170223t163224'\",\"statusMessage\":\"Bad Request\",\"requestPath\":\"https://www.googleapis.com/compute/beta/projects/MYAPPID/regions/us-central1/instanceGroupMana
gers/aef-default-20170223t163224-00\"}}"}]
某处(我现在无法找到),文档说我不能删除版本,直到分配流量为止。所以,我确保版本没有分配流量。实际上,应用引擎控制台显示以下内容:
我还尝试使用`gcloud app instances delete删除INSTANCE_ID --service = default --version = 20170223t163224删除单个版本实例。此命令没有返回任何错误,但没有效果,仍有2个实例。
我还尝试覆盖部署一个新的,基本上是空的应用程序的版本(hello world,来自the google tutorial),但它不允许我部署它。
最大的问题是我仍在为此版本收费,因为它仍在那里,服务并且有2个实例。
我目前正在使用Google App Engine Flexible Environment和NodeJS。