Unable to delete instance group

131 views
Skip to first unread message

ChiaHow Ng

unread,
Nov 12, 2020, 9:01:51 PM11/12/20
to Google Cloud SQL discuss
I tried to delete and instance group from console and it stuck and shows that i have a backend service still using that.
I have then removed the backend service from loadbalancer but the delete of instance group keep spinning there forever.

i tried to do the following from gcloud

 gcloud compute instance-groups managed delete group-xxxxx

and i got this 
- The resource 'projects/xxxxx/zones/asia-east1-a/instanceGroupManagers/group-xxxxx' was not found

when i do gcloud compute instance-groups list, the group is still there

then i tried
gcloud compute instance-groups managed create group-xxxxx --zone asia-east1-a --template web-e2-standard-4 --size 1

i got 
- The resource 'projects/xxxxx/zones/asia-east1-a/instanceGroupManagers/group-xxxxx' already exists

Any idea how i can get rid of this instance group?


saigeethas

unread,
Dec 2, 2020, 9:58:37 AM12/2/20
to Google Cloud SQL discuss
Hi,

Could you please use the below command to delete the managed instance groups. When you do “gcloud compute instance-groups listcould you please use the zone listed with the command to run the below statement:

gcloud compute instance-groups managed delete group-xxxxx  --zone [use the zone listed].

Regards,
Sai

Reply all
Reply to author
Forward
0 new messages