skypilot-users

Why can't my GCP custom VPC find the subnet even though it exists in the region?

I'm using a custom VPC in GCP and when I try to launch a task with sky, it fails with an error stating that no subnet for the region us-west1 was found for the specified VPC 'skypilot', even though I have confirmed that the subnets do exist in that region. Here's the command I used and the error message I received:

(sky) [kenady@192 ~]$ gcloud compute networks subnets list --project=mindful-rhythm-407109 --network=skypilot

NAME           REGION    NETWORK   RANGE          STACK_TYPE  IPV6_ACCESS_TYPE  INTERNAL_IPV6_PREFIX  EXTERNAL_IPV6_PREFIX
priv-subnet-1  us-west1  skypilot  10.10.72.0/22  IPV4_ONLY
pub-subnet-1   us-west1  skypilot  10.10.68.0/22  IPV4_ONLY
(sky) [kenady@192 ~]$ sky launch -c sky-gcp skypilot_gcp.yaml
... [error output] ...
RuntimeError: SKYPILOT_ERROR_NO_NODES_LAUNCHED: No subnet for region us-west1 found for specified VPC 'skypilot'.

Am I missing something in my configuration or is this a bug?

Ke

Kenady Inampudi

Asked on Dec 08, 2023

This issue turned out to be a bug in SkyPilot, which was fixed in a subsequent update. After applying the fix, the problem was resolved and the custom VPC was able to find the subnet correctly.

Dec 15, 2023Edited by