googlecompute创建实例时出错:等待实例创建时超时

时间:2019-09-18 08:16:29

标签: google-cloud-platform packer

我尝试使用打包程序来构建映像,但它没有按计划进行,从一开始,我在创建映像时就超时了,我找不到任何帮助,有人已经遇到了这个问题?谢谢

==> googlecompute: Checking image does not exist...
==> googlecompute: Creating temporary SSH key for instance...
==> googlecompute: Using image: debian-9-stretch-v20180105
==> googlecompute: Creating instance...
    googlecompute: Loading zone: europe-west1-d
    googlecompute: Loading machine type: n1-standard-1
    googlecompute: Requesting instance creation...
    googlecompute: Waiting for creation operation to complete...
==> googlecompute: Error creating instance: time out while waiting for instance to create
Build 'googlecompute' errored: Error creating instance: time out while waiting for instance to create

1 个答案:

答案 0 :(得分:1)

我有类似的超时错误。

解决方案是将正确的角色分配给服务用户。 至少应将Compute Engine实例管理员(v1)和``服务帐户用户''角色访问权限分配给尝试运行打包程序的服务用户。