google-cloud-platform - 谷歌云 : can't disable notebooks. googleapis.com

标签 google-cloud-platform gcp-ai-platform-notebook

我尝试使用命令行和开发人员界面禁用notebooks.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'>>]>>]>>>]>]".

请问有人知道发生了什么事以及如何解决这个问题吗?

最佳答案

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

  • 备份笔记本信息
  • 从笔记本 UI 页面删除笔记本。 这将删除笔记本记录和虚拟机
  • 停用 Notebooks API
  • 转到笔记本 UI 并重新创建笔记本(这将改用 Compute Engine API) 当笔记本 API 未启用时,我们使用 Compute Engine API。目前不鼓励这样做,但您可以选择。 (您将错过自动升级、运行状况端点、实例监控等功能)
  • 好奇:为什么要禁用 Notebooks API?

    关于google-cloud-platform - 谷歌云 : can't disable notebooks. googleapis.com,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67587173/

    相关文章:

    google-cloud-platform - GCP 从另一个帐户访问一个帐户的快照以创建虚拟机实例

    google-cloud-platform - GCP Dataproc 已推出 Druid alpha 版。如何加载段?

    ios - 如何在 Swift 5 中将文档转换为自定义对象?

    google-cloud-platform - 以编程方式启用 Vertex AI Managed Notebook 实例中已安装的扩展

    tensorflow - 哪种 Google Cloud Platform 服务最容易运行 Tensorflow?

    r - 谷歌云AI平台jupyter notebook实例重启后也打不开,正在运行

    google-app-engine - 为什么我的第一次部署可以工作,但所有后续部署都无法获取实例?

    hadoop - 如何在浏览器中 GCP 实例之外的 hadoop 中访问我的 Namenode GUI

    google-cloud-platform - GCP 中的 AI Notebook 和 Cloud Datalab 有什么区别?

    machine-learning - AI Platform(ML Engine)如何为作业分配资源?