Unable to delete a VPC

Hi there,

Right now, I’m facing an issue with the delete function of a VPC network.
I’ve removed every services connected to this VPC and an error is displayed when I try to reach my action:

Operation type [delete] failed with message “The network resource ‘projects/glb-sesame-prod/global/networks/sesame-vpc’ is already being used by ‘projects/glb-sesame-prod/global/networkInstances/v1471235711-b4cd9303-9544-489e-baa6-e013a87b7321’”

Could you please remove it?

Thanks for your feedback.
Achraf

1 Like

Guys,

Exactly the same error when deleting another VPC:

Operation type [delete] failed with message “The network resource ‘projects/glb-sesame-prod/global/networks/vpc-sesame’ is already being used by ‘projects/glb-sesame-prod/global/networkInstances/v1471235711-8529d84c-85a3-4f3b-aaad-6969b448c7ae’”

There is a problem somewhere but I cannot define it.

Please help.

Thanks a lot
Achraf

1 Like

Hi Achraf,
I have the same issue, how did you resolve it?

Bye
Jaromir

@Achraf This seems like a bug to me. I have opened an internal bug with our networking team to look into

So, those resources as given below have been deleted. You should now be able to delete the VPC

Operation type [delete] failed with message "The network resource ‘projects/glb-sesame-prod/global/networks/sesame-vpc’ is already being used by 'projects/glb-sesame-prod/global/networkInstances/v1471235711-b4cd9303-9544-489e-baa6-e013a87b7321

1 Like

Hi @munish1 ,
that is great you helped to @Achraf . Could you help me too? I have the similar problem.

Failed to delete the network. Error: Operation type [delete] failed with message "The network resource ‘projects/[PROJECT_NAME]/global/networks/default’ is already being used by 'projects/[PROJECT_NAME]/global/networkInstances/v35412604-6dc52cac-1778-…

I will be grateful for you help.
Jaromir

@Jaromir Sure, I have opened a similar bug. I will make another update here after I get a response from our engineering team

1 Like

@Jaromir I have confirmation from the engg team that they have removed the blockers. Could you pls try deleting the VPC again and confirm?

1 Like

Hi @munish1 ,
thanks a lot. I tried to delete default VPC again and I can confirm it was successful.
Thank you for your support !
Have a nice day,
Jaromir

Thanks, awesome. Could you hit the like button if you like my response and also accept it as a solution.

1 Like

Hi @munish1 ,

Is your bug fix permanent or I have to ask you in the future?
Right, everything works well but I cannot know why now it works :confused:

Thanks for your feedback

1 Like

Hi @munish1 ,

Has the fix to this rolled out globally? Currently encountering the same error when deleting a vpc:

Operation type [delete] failed with message "The network resource 'projects/***/global/networks/test-vpc' is already being used by 'projects/***/global/networkInstances/v-2125180076-71684ba6-1a70-4626-886d-21f29ecd55fc'"

Thanks!

Hi @munish1 ,

I have same problems about deleting VPC network via gcloud

ERROR: (gcloud.compute.networks.delete) Could not fetch resource:

The network resource ‘projects//global/networks/dev-vpc-infra’ is already being used by 'projects//global/networkInstances/v-1227917471-6e599fcf-85e5-4941-8dd5-a87f582e1c78’

I think that My GAE default service using that VPC network. Should I fix it?

1 Like

Hello,

  • The workaround for this issue is discussed in [1] under references.

  • The progress on this issue can be tracked via public tracker at [2] under references.

References:

[1] https://cloud.google.com/knowledge/kb/vpc-network-deletion-fails-because-the-network-resource-is-already-being-used-by-an-instance-000004733

[2] https://issuetracker.google.com/issues/186792016

2 Likes

Hello, @moe54

I could fix this problem via changing references of app engine config.

Thank you for your kindly answer.

1 Like

Hi @munish1 ,
Please help resolve:

Operation type [delete] failed with message “The network resource ‘/global/networks/prod-vpc-network’ is already being used by '************/global/firewalls/aet-uscentral1-prod–vpc–connector-tagfw’”

1 Like

@munish1 Sorry need your helo with something else now…
Getting this error when trying to delete a VPC:

│ Error: Unable to remove Service Networking Connection, err: Error waiting for Delete Service Networking Connection: Error code 9, message: Failed to delete connection; Producer services (e.g. CloudSQL, Cloud Memstore, etc.) are still using this connection.
│ Help Token: ARZIt87560G2fJyUrHMvRxD7WDz2MJQsBneDmXXYOZO-6GQHpZcD3xq6SQzDfJDksJ-hjg_t0nEHWOoFPVjb7IV7KP-aqARVUdD33H4AB6qM9ZOM

1 Like

@munish1 Sorry need your helo with something else now…

@munish1  Sorry need your helo with something else now...
Getting this error when trying to delete a VPC:

│ Error: Unable to remove Service Networking Connection, err: Error waiting for Delete Service Networking Connection: Error code 9, message: Failed to delete connection; Producer services (e.g. CloudSQL, Cloud Memstore, etc.) are still using this connection.
│ Help Token: ARZIt87560G2fJyUrHMvRxD7WDz2MJQsBneDmXXYOZO-6GQHpZcD3xq6SQzDfJDksJ-hjg_t0nEHWOoFPVjb7IV7KP-aqARVUdD33H4AB6qM9ZOM
1 Like

Staff

I am unable to delete the VPC at https://console.cloud.google.com/networking/networks/details/keycloak?project=website-232106&hl=zh-tw&pageTab=OVERVIEW due to the error message:
“The network resource ‘projects/website-232106/global/networks/keycloak’ is already being used by ‘projects/website-232106/global/networkInstances/v106699695-17ba9419-f6a5-424e-8771-6fbc862229d4’.”
However, I can’t find any instance with the ID ‘projects/website-232106/global/networkInstances/v106699695-17ba9419-f6a5-424e-8771-6fbc862229d4’. Could you please help me with this?

1 Like

Have you checked for serverless VPC Access? You need to delete it beforehand. Refer to this documentation for any other resources that needs to be deleted before deleting VPC

https://cloud.google.com/knowledge/kb/vpc-network-deletion-fails-because-the-network-resource-is-already-being-used-by-an-instance-000004733

1 Like