无法从 google 云中删除部署

Cannot delete deployment from google cloud

我正在尝试为 GCP/Kubernetes 上的气流创建几个部署模板。在该部署中,我寻求部署所有相关的托管服务以及一些必需的用户和密码。

我已经能够部署服务,但它在创建两个用户时抱怨缺少 "host" 参数。这种类型记录在这里,不应该抱怨,因为主机被列为可选:

https://cloud.google.com/sql/docs/mysql/admin-api/v1beta4/users/insert

所以我试图删除部署,但它永远不会让我完成它,并且它阻止了它现在可能永远无法删除的两个资源。这是我在控制台中得到的:

$ gcloud deployment-manager deployments delete airflow-on-k8s
The following deployments will be deleted:
- airflow-on-k8s

Do you want to continue (y/N)?  y

Waiting for delete [operation-1502140582303-556305bcf9519-0af00aa8-d01c8bf6]...failed.                                                                                       

ERROR: (gcloud.deployment-manager.deployments.delete) Delete operation operation-1502140582303-556305bcf9519-0af00aa8-d01c8bf6 failed.
Error in Operation [operation-1502140582303-556305bcf9519-0af00aa8-d01c8bf6]: errors:
- code: RESOURCE_ERROR
location: /deployments/airflow-on-k8s/resources/root-user
message: '{"ResourceType":"sqladmin.v1beta4.user","ResourceErrorCode":"400","ResourceErrorMessage":{"code":400,"errors":[{"domain":"global","location":"host","locationType":"parameter","message":"Required
parameter: host","reason":"required"}],"message":"Required parameter: host","statusMessage":"Bad
Request","requestPath":"https://www.googleapis.com/sql/v1beta4/projects/<...>/instances/airflow-db-instance4/users"}}'
- code: RESOURCE_ERROR
location: /deployments/airflow-on-k8s/resources/regular-airflow-user
message: '{"ResourceType":"sqladmin.v1beta4.user","ResourceErrorCode":"400","ResourceErrorMessage":{"code":400,"errors":[{"domain":"global","location":"host","locationType":"parameter","message":"Required
parameter: host","reason":"required"}],"message":"Required parameter: host","statusMessage":"Bad
Request","requestPath":"https://www.googleapis.com/sql/v1beta4/projects/<...>/instances/airflow-db-instance4/users"}}'

可能是 API 中的错误,但如果有人知道方法,请告诉我。我还听说一些谷歌员工在 Whosebug 上闲逛,可能会将其转发给 API 开发人员。

我在删除我的部署时遇到了类似的问题。我最终手动删除了资源,并放弃了部署:

gcloud deployment-manager deployments delete <deployment name> --delete-policy=ABANDON

顺便说一下,我还没有看到关于此的任何错误报告:https://issuetracker.google.com/issues?q=sqladmin.v1beta4.user%20%22Required%20parameter:%20host%22 .