启用 Google Container Engine API 不会自动启用 Google Compute Engine API

Enabling Google Container Engine API don't automatically enable Google Compute Engine API

最近我发现通过 Web 控制台或 gcloud 命令启用 "Google Container Engine API" 不会在新的 GCP 项目上自动启用 "Google Compute Engine API"。结果,当我尝试通过 API 创建容器集群时,我 运行 出错了。响应中的错误消息如下所示。 当然,手动启用 "Google Compute Engine API" 可以缓解错误。

Google Compute Engine: Access Not Configured. Compute Engine API has not been used in project 123456789012 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/compute-component.googleapis.com/overview?project=123456789012 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.

当我在 2017 年 2 月 24 日执行相同的操作而没有明确启用 "Google Compute Engine API" 时,它工作正常。 我想知道这是有意更改还是 API 依赖项管理中的一些错误。

此致,

It was work fine when I did the same operations at 2017-02-24 without enable "Google Compute Engine API" explicitly. I wonder if this was intended change or some bugs on API dependencies management.

最近已修复此问题(巧合的是在您发布问题后的几个小时内)。我只是通过创建一个新项目手动验证,验证 Google 容器引擎 API 和 Google 计算引擎 API 都被禁用,启用 Google 容器引擎 API,然后验证 Google 容器引擎 API 和 Google 计算引擎 API 现已启用。