I am doing C3 Week 3’s lab. I am struggling to create a cluster in the first part. It takes more than an hour, and I get timed out.
I tried 5 different zones including US East 1 A:
gcloud config set compute/zone us-east1-a
PROJECT_ID=$(gcloud config get-value project)
CLUSTER_NAME=cluster-1
I always get the region is full and errors out:
ERROR: (gcloud.container.clusters.create) Operation [<Operation
clusterConditions: [<StatusCondition
canonicalCode: CanonicalCodeValueValuesEnum(UNAVAILABLE, 15)
code: CodeValueValuesEnum(GCE_STOCKOUT, 1)
message: “Instance ‘gke-cluster-1-default-pool-9f063bff-bw66’ creation failed: The zone ‘projects/qwiklabs-gcp-01-7858f512788e/zones/us-east1-d’ does not have enough resources available to fulfill the request. Try a differentzone, or try again later.”>, <StatusCondition
canonicalCode: CanonicalCodeValueValuesEnum(UNAVAILABLE, 15)
code: CodeValueValuesEnum(GCE_STOCKOUT, 1)
I got a reply from Qwiklabs and was asked to try a different compute-zone.
Since I’m in Europe, I just tried europe-west1-d and the cluster got created after 5 to 10 minutes.
Here are the updated instructions:
gcloud config set compute/zone europe-west1-d
PROJECT_ID=$(gcloud config get-value project)
CLUSTER_NAME=cluster-1
It’s weird that the “europe-west3-a” is supposed to be the closest compute-zone to me (Germany), but the console kept saying “being deployed” forever. Until I used the your suggested value “europe-west1-d” (St. Ghislain, Belgium, Europe), it finallt worked!
Without your comment, I would have had to try many other zones and wasted a lot of time…
Hi everyone! Thank you for bringing this to our attention. We’ve reported this issue to our partners and are waiting for a resolution. In the meantime, kindly try the marked solution (Thanks, Alexander for sharing!). We’ve modified the passing threshold to account for any point deduction that this command causes. Will update this thread asap when we get more info. Thank you and sorry for the inconvenience!
Hi everyone! I just ran the lab without any modification (i.e. used us-central1-f) and everything ran as expected. Looks like the bug is now fixed. Hope it also works for you!
The first two command do not run successfully. Pl see the screenshots attached I tried everything possible I could get from the google. May it is because the commands are not give as per version 2.1
I ended up finding the commands for each of these lab activity from the starting, still it is not working. Previous Assignements I hardly got struck, but there even the first command itself is not working correctly.
Is it possible to update the correct commands or is it possible to make this Assignment optional , so that we can proceed with the rest of the course.
gcloud config set compute/zone us-central1-f
PROJECT_ID=$(gcloud config get-value project)
CLUSTER_NAME=cluster-1
and this one gcloud container clusters create both do not run, pl see the errors and help me to proceed.
I tried toady also and the given commands for set config and create cluster do not work as is.
The command that worked for me are as follows:
gcloud config set compute/zone us-central1-f
gcloud config set project PROJECT_ID=$(gcloud config get-value project)
gcloud config set container/cluster $CLUSTER_NAME=cluster-1
further I also got error and warning that PROJECT ID is null string, so I used directly quicklabs… project id instead of $PROJECT_ID in all the commands then only I was able to create the cluster and proceed further.
Further in the TF_JOB I got the 3 workers created and were listed, but one of them was running and other 2 error initially. After waiting for sometime all three were giving error, not sure why.