【发布时间】:2020-07-18 07:09:54
【问题描述】:
我正在尝试在 Google Cloud Platform (GCP) 和 Kubernetes Engine (GKE) 上安装 Kubeflow,遵循 GCP deployment guide。
我创建了一个我是所有者的 GCP 项目,我启用了计费功能,设置了 OAuth 凭据并启用了以下 API:
- 计算引擎 API
- Kubernetes 引擎 API
- 身份和访问管理 (IAM) API
- 部署管理器 API
- 云资源管理器 API
- 云文件存储 API
- AI 平台训练和预测 API
但是,当我想deploy Kubeflow using the UI 时,我收到以下错误:
所以我仔细检查了这些 API 已经启用:
屏幕底部的日志消息是:
2020-03-0614:14:04.629: Getting enabled services for project <projectname>..
2020-03-0614:14:16.909: Could not configure communication with GCP, exiting
Could not configure communication with GCP, exiting 在_enableGcpServices() 失败时触发。
Getting enabled services for project ... 行被打印但Proceeding with project number: ... 行未打印,因此错误必须在the block of code between those lines 中的某处触发。
对Gapi.cloudresourcemanager.getProjectNumber(project) 的调用有自己的try/catch,错误消息和标题略有不同(只讨论云资源管理器API,而不是IAM API),所以我假设它是对Gapi.getSignedInEmail() 的调用失败了??
【问题讨论】:
-
请查看您尝试部署的用户在 IAM 中的权限,并确保该用户拥有
Project Owner权限。请告诉我。 -
@KoopaKiller 是的,我创建了 GCP 项目并拥有该项目的项目所有者权限。
-
这实际上可能在 Kubeflow 中。但是,我想回到第一个方面: 1. 这是一个私有集群吗? 2. 这是一个付费的 GCP 帐户吗?
-
@yyyyahir 我已为该帐户启用计费。我不确定您所说的“它是私有集群”是什么意思?
-
只是这样它对面临这个问题的任何人都有用,谷歌搜索错误消息我发现 OP reported it on Github 并找到了 solution。也许@BioGeek 想添加这个作为答案?
标签: kubernetes google-cloud-platform kubeflow