尝试删除后,Google Cloud 中的托管实例组陷入失败状态

问题描述 投票:0回答:4

几天前,我尝试从 Google Cloud 控制台/在线界面删除一个过时的实例组,从那时起,它就永久地显示带有感叹号的红色圆圈(而不是带有复选标记的绿色圆圈) ,并在鼠标悬停时提供以下错误:

Operation type [compute.instanceGroupManagers.insert] failed with message "Invalid value for field 'resource.instanceTemplate': 'https://www.googleapis.com/compute/v1/projects/slope-social-deploy/global/instanceTemplates/slope-server-template'. InstanceTemplate should be usable in all selected zones."

我也尝试使用 gcloud 命令删除它,但似乎由于它不再与任何区域关联,因此无法完全删除。当我使用 gcloud 命令检查托管实例组 (MIG) 列表时,它不会显示在托管实例组 (MIG) 列表中,但它仍然可见,并且在在线控制台的“实例组”选项卡中失败。

我也清除了浏览器缓存,但没有效果。

很遗憾,我无法通过当前的 Google Cloud 计划获得技术支持。有什么办法可以解决这个问题吗

screenshot of issue and error

google-cloud-platform google-compute-engine gcloud gce-instance-group google-cloud-compute-engine
4个回答
1
投票

尝试检查您的实例模板是否仍然存在并与 MIG 关联。检查设置,或者尝试重新创建模板(如果不再存在)。


1
投票

对于这个问题,就像我在评论中提到的那样,最好检查管理实例组是否仍然与您的负载均衡器或实例模板关联。

如果碰巧该实例组不再与其他资源关联,最好向此链接

提出问题

0
投票

结束这个问题,因为 Google Cloud Console / gcloud 差异设法自行解决。再次感谢所有回答的人。


0
投票
    I was creating instance group with below command and t was failing with Error :
    - invalid value for field 'resource.instancetemplate': 'https://www.googleapis.com/compute/v1/projects/unique-voice-424110-u2/global/instancetemplates/auto-scaling-instance-template'. instance template was not found.
command:
    
gcloud compute instance-groups managed create mig --template=projects/unique-voice-424110-u2/global/instanceTemplates/mit

    
And its because for my instance template firewall request was not enable for HTTPS.
    so it could be one possible solution for you as well.
© www.soinside.com 2019 - 2024. All rights reserved.