Google cloud platform 谷歌云:can';t禁用notebooks.googleapis.com

Google cloud platform 谷歌云:can';t禁用notebooks.googleapis.com,google-cloud-platform,gcp-ai-platform-notebook,Google Cloud Platform,Gcp Ai Platform Notebook,我试图用命令行和开发者界面禁用Notebook.googleapis.com,但失败了。 当我尝试时从命令行 gcloud services disable notebooks.googleapis.com --force 我收到错误消息: The operation "operations/acf.p17-742562465356-a48e3333-4d5a-4d82-344e-3d7c345f0c89" resulted in a failure "[Hook

我试图用命令行和开发者界面禁用Notebook.googleapis.com,但失败了。 当我尝试时从命令行

gcloud services disable notebooks.googleapis.com --force
我收到错误消息:

The operation "operations/acf.p17-742562465356-a48e3333-4d5a-4d82-344e-3d7c345f0c89" resulted in a failure "[Hook call/poll resulted in failed op for service 'notebooks.googleapis.com': Not ready to deactivate the service on this project; ensure there are no more resources managed by this service.] with failed services [notebooks.googleapis.com]".
Details: "[<DetailsValueListEntry
 additionalProperties: [<AdditionalProperty
 key: '@type'
 value: <JsonValue
 string_value: 'type.googleapis.com/google.rpc.PreconditionFailure'>>, <AdditionalProperty
 key: 'violations'
 value: <JsonValue
 array_value: <JsonArray
 entries: [<JsonValue
 object_value: <JsonObject
 properties: [<Property
 key: 'type'
 value: <JsonValue
 string_value: 'googleapis.com'>>, <Property
 key: 'subject'
 value: <JsonValue
 string_value: '160008'>>]>>]>>>]>]".
操作“operations/acf.p17-742562465356-a48e3333-4d5a-4d82-344e-3d7c345f0c89”导致失败“[Hook call/poll导致服务“notebooks.googleapis.com”的op失败:未准备好停用此项目上的服务;确保此服务管理的资源不再存在。]服务失败[notebooks.googleapis.com]”。
详情:“[]”。

是否有人知道发生了什么以及如何解决此问题?

笔记本电脑基于计算实例。如果您激活笔记本电脑API并从笔记本电脑UI创建新笔记本电脑,您将在笔记本电脑UI和计算引擎页面中看到相应的虚拟机。如果要禁用笔记本电脑API,您需要:

  • 备份记事本信息
  • 从笔记本用户界面页面删除笔记本。 这将删除笔记本记录和虚拟机
  • 停用笔记本API
  • 转到笔记本用户界面并重新创建笔记本(这将使用计算引擎API) 当笔记本API未启用时,我们使用计算引擎API。目前不鼓励使用此选项,但您有此选项。(您将错过自动升级、运行状况端点、实例监视等功能)

  • 好奇:为什么要禁用笔记本API?

    您有一个需要(正在使用)的服务/资源笔记本API。查找并删除这些资源。如果你去谷歌云控制台>AI平台>笔记本,你在那里看到任何资源吗?@gogasca我列出了两个计算引擎。实际上我继承了一个GCP项目,其中默认的计算引擎服务帐户很久以前就被删除了。没有默认的服务帐户是错误的痛苦。为了重新创建默认的计算引擎服务帐户,我读到我应该尝试停用和重新激活计算引擎API。停用计算引擎API显然也需要停用笔记本API。这就是为什么我最终尝试禁用笔记本API