【问题标题】:Unable to start/stop an AI Platform Notebook Instance in AI Platform but Able to in Compute Engine无法在 AI Platform 中启动/停止 AI Platform Notebook 实例,但能够在 Compute Engine 中启动/停止
【发布时间】:2020-10-07 17:48:12
【问题描述】:

我正在为用户设置使用 GCP AI Platform 中预先创建的 AI Platform VM 实例的权限。我创建了一个具有权限的自定义角色

compute.acceleratorTypes.list
compute.diskTypes.list
compute.instances.list
compute.instances.start
compute.instances.stop
compute.machineTypes.list
compute.subnetworks.list
iam.serviceAccounts.actAs
notebooks.environments.get
notebooks.environments.getIamPolicy
notebooks.environments.list
notebooks.instances.get
notebooks.instances.getIamPolicy
notebooks.instances.list
notebooks.locations.get
notebooks.locations.list
notebooks.operations.get
notebooks.operations.list
resourcemanager.projects.get

用户可以从 GCP 控制台的 Compute Engine 部分启动和停止实例,但不能从 AI Platform 部分启动和停止。当我尝试后者时,我得到了错误:

sample-ai-platform-vm: Permission 'notebooks.instances.start' denied on 'projects/test-project/locations/us-east1-b/instances/sample-ai-platform-vm'

知道发生了什么吗?

【问题讨论】:

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


    【解决方案1】:

    您需要添加以下权限:

    notebooks.instances.start
    notebooks.instances.stop
    

    您可以查看 Notebooks Admin 角色以供参考:

    https://cloud.google.com/ai-platform/notebooks/docs/iam

    【讨论】:

    • 谢谢。昨天想通了。没有意识到新的 Notebooks API 会改变权限要求。
    猜你喜欢
    • 2020-12-19
    • 2020-10-27
    • 1970-01-01
    • 2019-10-12
    • 1970-01-01
    • 2020-11-17
    • 2011-10-29
    • 2020-08-10
    • 1970-01-01
    相关资源
    最近更新 更多