删除默认服务帐号后无法在 Dataproc 上创建集群
Unable to create cluster on Dataproc after deleting default service account
我错误地删除了我项目的默认 "service account" - {project_id}-compute@developer.gserviceaccount.com
现在,每当我尝试在 Data proc 上创建集群时,我都会收到以下错误:
The resource '{project_id}-compute@developer.gserviceaccount.com' of type 'serviceAccount' was not found.
有没有一种简单的方法可以解决这个问题 - 而不会丢失项目的任何数据。
为了向遇到此问题的任何其他人澄清,此错误是由实际删除服务帐户引起的,而不是简单地将其从 IAM and Admin
选项下的 "project editors" 列表中删除;对于仅从项目编辑器列表中删除该帐户的任何人,您只需使用正常的 "Add Member".
将其添加回来
通常,服务帐户是在启用计算引擎 API 时创建的,因此目前可以通过禁用然后重新启用计算引擎来解决此问题 API 通过 API Manager.
如果您已经拥有生产能力所依赖的现有 Compute Engine VM 运行,这可能会导致问题,但如果您删除了服务帐户,那么这些 VM 可能会有些损坏。
在那里找到 Google Compute Engine API
并单击 "disable",并确保单击确认提示中的 Disable
按钮而不是 Cancel
按钮。
重新启用 Compute Engine API 时,您可能会遇到以下错误:
Update failed with following error(s) for project settings: -- Backend Provisioning Error: {compute_component FAILED_PRECONDITION: The service is currently being deactivated and deactivation must complete before activation can occur.};
但是如果您等几分钟再试,它应该可以工作(我等了大约 3 分钟再重试,但所需的等待时间可能会有所不同)。同样,首先在重新启用计算 API 并立即尝试创建新的 Dataproc 集群后,您可能会点击:
Failed to load networks
Access Not Configured. Compute Engine API has not been used in project <project-number> before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/compute_component/overview?project=<project-number> then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.
但正如它所提到的,再次等待几分钟让设置传播,它应该再次正常加载。
一旦计算引擎 API 充分重新启用,Dataproc 的 Create Cluster
页面可以在云控制台上运行,您还可以在 IAM and Admin
下再次验证默认计算服务帐户再次存在并且它也被自动添加为 Project editor
。
我错误地删除了我项目的默认 "service account" - {project_id}-compute@developer.gserviceaccount.com 现在,每当我尝试在 Data proc 上创建集群时,我都会收到以下错误:
The resource '{project_id}-compute@developer.gserviceaccount.com' of type 'serviceAccount' was not found.
有没有一种简单的方法可以解决这个问题 - 而不会丢失项目的任何数据。
为了向遇到此问题的任何其他人澄清,此错误是由实际删除服务帐户引起的,而不是简单地将其从 IAM and Admin
选项下的 "project editors" 列表中删除;对于仅从项目编辑器列表中删除该帐户的任何人,您只需使用正常的 "Add Member".
通常,服务帐户是在启用计算引擎 API 时创建的,因此目前可以通过禁用然后重新启用计算引擎来解决此问题 API 通过 API Manager.
如果您已经拥有生产能力所依赖的现有 Compute Engine VM 运行,这可能会导致问题,但如果您删除了服务帐户,那么这些 VM 可能会有些损坏。
在那里找到 Google Compute Engine API
并单击 "disable",并确保单击确认提示中的 Disable
按钮而不是 Cancel
按钮。
重新启用 Compute Engine API 时,您可能会遇到以下错误:
Update failed with following error(s) for project settings: -- Backend Provisioning Error: {compute_component FAILED_PRECONDITION: The service is currently being deactivated and deactivation must complete before activation can occur.};
但是如果您等几分钟再试,它应该可以工作(我等了大约 3 分钟再重试,但所需的等待时间可能会有所不同)。同样,首先在重新启用计算 API 并立即尝试创建新的 Dataproc 集群后,您可能会点击:
Failed to load networks
Access Not Configured. Compute Engine API has not been used in project <project-number> before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/compute_component/overview?project=<project-number> then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.
但正如它所提到的,再次等待几分钟让设置传播,它应该再次正常加载。
一旦计算引擎 API 充分重新启用,Dataproc 的 Create Cluster
页面可以在云控制台上运行,您还可以在 IAM and Admin
下再次验证默认计算服务帐户再次存在并且它也被自动添加为 Project editor
。