gce-deploy-action icon indicating copy to clipboard operation
gce-deploy-action copied to clipboard

Rolling updates return 404 instance group not found

Open kokteyldev opened this issue 4 years ago • 2 comments

Hi,

I am trying to get the rolling update feature working, however I keep getting 404 the instance group not found error like below: get instance group 'dynamic-mystery-285413/rtb-backend': googleapi: Error 404: The resource 'projects/dynamic-mystery-285413/regions/europe-west1/instanceGroupManagers/rtb-backend' was not found, notFound

I checked the my service account roles and the name of the instanceGroup a multiple times and everything seems to be correct. When I looked at the code I saw that it is using a beta version of the google cloud sdk, is it possible Google broke something since your last commit?

Thanks in advance

kokteyldev avatar Jun 08 '21 22:06 kokteyldev

I'd be surprised if the beta version changed, but it's a possibility. Can you try to use the SDK to list your instance groups?

gcloud beta compute instance-groups managed list --project xxxx

What's the output? Please note that currently only regional instance groups are supported.

mattes avatar Jun 10 '21 18:06 mattes

Both the beta and the production gcloud commands return the correct instance groups.

NAME         LOCATION        SCOPE  BASE_INSTANCE_NAME  SIZE  TARGET_SIZE  INSTANCE_TEMPLATE  AUTOSCALED
rtb-backend  europe-west1-b  zone   rtb-backend         1     1            rtb-template       yes

I've checked the instance group settings again and can confirm that its region is set.

Hope this helps

kokteyldev avatar Jun 11 '21 11:06 kokteyldev