我想删除旧版本的GAE应用程序,但是从5个月前开始删除操作总是失败。
错误消息是“此应用程序有一个待处理的操作。请等待,然后重试。”
我认为对不必要的实例收费是我们的不当行为,我们无法删除这些实例。
屏幕截图:https://gyazo.com/edcb1968944867c2a6a029efa7bf5bb5
从该页面删除版本失败。
错误消息是“此应用程序有一个待处理的操作。请等待,然后重试。”
从该页面停止版本也失败。
错误消息是“此灵活版本无法修改,只能删除。请重新部署该版本。'
从CLI删除版本时的结果。 (发生内部错误)
# https://cloud.google.com/sdk/gcloud/reference/app/versions/delete
$ gcloud app versions delete 20191028t001234
Deleting the following versions:
- my-project/default/20191028t001234
Do you want to continue (Y/n)? Y
Deleting [default/20191028t001234]...failed.
ERROR: (gcloud.app.versions.delete) Issue deleting version: [default/20191028t001234]
[default/20191028t001234]: Error Response: [13] Flex operation projects/my-project/regions/asia-northeast1/operations/aab27279-89bf-4deb-aecd-d25352977d11 error [INTERNAL]: An internal error occurred while processing task /appengine-flex-v1/delete_flex_deployment/flex_delete_resources>2020-01-06T11:26:23.364Z38645.oj.0: Deployment Manager operation my-project/operation-1578309983602-59b76edeb0758-e471c6e1-71f4fbeb errors: [code: "RESOURCE_ERROR"
location: "/deployments/aef-default-20191028t001234/resources/aef-default-20191028t001234-hcs"
message: "{\"ResourceType\":\"compute.v1.httpsHealthCheck\",\"ResourceErrorCode\":\"400\",\"ResourceErrorMessage\":{\"code\":400,\"errors\":[{\"domain\":\"global\",\"message\":\"The https_health_check resource \'projects/my-project/global/httpsHealthChecks/aef-default-20191028t001234-hcs\' is already being used by \'projects/my-project/global/backendServices/aef-default-20191028t001234-bs\'\",\"reason\":\"resourceInUseByAnotherResource\"}],\"message\":\"The https_health_check resource \'projects/my-project/global/httpsHealthChecks/aef-default-20191028t001234-hcs\' is already being used by \'projects/my-project/global/backendServices/aef-default-20191028t001234-bs\'\",\"statusMessage\":\"Bad Request\",\"requestPath\":\"https://compute.googleapis.com/compute/v1/projects/my-project/global/httpsHealthChecks/aef-default-20191028t001234-hcs\",\"httpMethod\":\"DELETE\"}}"
, code: "RESOURCE_ERROR"
location: "/deployments/aef-default-20191028t001234/resources/aef-default-20191028t001234-00"
message: "{\"ResourceType\":\"compute.beta.regionInstanceGroupManager\",\"ResourceErrorCode\":\"400\",\"ResourceErrorMessage\":{\"code\":400,\"errors\":[{\"domain\":\"global\",\"message\":\"The instance_group_manager resource \'projects/my-project/regions/asia-northeast1/instanceGroupManagers/aef-default-20191028t001234-00\' is already being used by \'projects/my-project/global/backendServices/aef-default-20191028t001234-bs\'\",\"reason\":\"resourceInUseByAnotherResource\"}],\"message\":\"The instance_group_manager resource \'projects/my-project/regions/asia-northeast1/instanceGroupManagers/aef-default-20191028t001234-00\' is already being used by \'projects/my-project/global/backendServices/aef-default-20191028t001234-bs\'\",\"statusMessage\":\"Bad Request\",\"requestPath\":\"https://compute.googleapis.com/compute/beta/projects/my-project/regions/asia-northeast1/instanceGroupManagers/aef-default-20191028t001234-00\",\"httpMethod\":\"DELETE\"}}"
]