cloud-ops-sandbox icon indicating copy to clipboard operation
cloud-ops-sandbox copied to clipboard

default VPC Requirement

Open hasibeg opened this issue 1 year ago • 6 comments

Thanks for stopping by to let us know something could be better!

Is your feature request related to a problem? Please describe. Sometimes the new projects don't have the default VPC network by default and the create script fails because GCE instances cannot be created.

Describe the solution you'd like It might be good to mention that "default" auto VPC is a pre-req for the script to create the sandbox environment

Describe alternatives you've considered Another alternative could be creating it as part of the terraform script if it doesn't exist.

Additional context

hasibeg avatar Aug 22 '23 11:08 hasibeg

@hasibeg hello, thank you for your suggestion. we will add support for the custom network and subnetwork arguments in CLI (sandboxctl) in the next minor version (0.10).

minherz avatar Aug 25 '23 16:08 minherz

@hasibeg I am in the same case, with an Org Policy removing the default VPC network from new projects. I have to create it manually, either from the console or with a gcloud command, then request a new provisioning.

@minherz These two options would definitely be good additions. I am not sure they solve the initial problem though. Delegating the creation of the default network to Terraform seems like a better, more seamless option.

lvaylet avatar Oct 02 '23 09:10 lvaylet

@minherz @hasibeg I pushed #1052 to create the default network if it does not exist already, to ensure backward compatibility with a non-breaking change.

lvaylet avatar Oct 11 '23 07:10 lvaylet

Thank you @lvaylet and the team for the update !

hasibeg avatar Oct 13 '23 08:10 hasibeg

Fixed by #1052

lvaylet avatar Oct 20 '23 08:10 lvaylet

It seems that when auto_create_subnetworks is omitted, the network is created without subnetworks. As a result, GKE cluster cannot be created because subnetworks are missing.

minherz avatar Nov 20 '23 18:11 minherz