我尝试使用node.js学习谷歌容器引擎的官方hello-world教程,它工作得很好。除了末尾,删除集群。如何添加这些权限?我可以找到一种方法来添加开发人员权限,但不能添加cloudservices权限。同样奇怪的是,我可以从cmdline创建集群,但不能删除它……我想我确实设法从计算引擎web控制台杀死了worker实例,但容器集群仍然可见。这是错误:
$ gcloud container clusters delete hello-world
The following clusters will be deleted.
- [hello-world] in [us-central1-f]
Do you want to continue (Y/n)?
Deleting cluster hello-world...done.
ERROR: (gcloud.container.clusters.delete) Some requests did not succeed:
- Operation [<Operation
name: u'operation-1443093077789-c0cb741d'
operationType: OperationTypeValueValuesEnum(DELETE_CLUSTER, 2)
selfLink: u'https://container.googleapis.com/v1/projects/28547436xxx/zones/us-central1-f/operations/operation-1443093077789-c0cb741d'
status: StatusValueValuesEnum(DONE, 3)
statusMessage: u'"28547436xxx@cloudservices.gserviceaccount.com" does not have edit permissions on project "mytest".'
targetLink: u'https://container.googleapis.com/v1/projects/28547436xxx/zones/us-central1-f/clusters/hello-world'
zone: u'us-central1-f'>] finished with error: "28547436xxx@cloudservices.gserviceaccount.com" does not have edit permissions on project "mytest".发布于 2015-09-25 01:50:42
消息"28547436xxx@cloudservices.gserviceaccount.com" does not have edit permissions on project "mytest"表明您已经修改了项目中的一个默认服务帐户--不幸的是,容器引擎使用该帐户对其他云平台服务进行身份验证,以便能够代表您执行诸如创建和删除VM之类的操作。
您应该能够从开发人员控制台的权限页面上重新添加对该服务帐户的权限。在此之后,删除集群应该会成功。
https://stackoverflow.com/questions/32760559
复制相似问题