C3W3 Creating clusters error out

Hello,

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)

Any help is appreciated. Thank you.

Please do the following:

  1. Try a different zone
  2. If you want to try on the set zone, try again later.
  3. Report to qwiklabs via their help menu for further assistance.
1 Like

Thanks for the quick reply.

  1. I tried 5 different zones, as mentioned.
  2. I tried over 3 days. I will try again tomorrow, but I don’t know if that will work.
  3. I tried to reach out for help but they cannot be reached. I think this course doesn’t have the help support from them.

Same issue here. Have been waiting twice but cluster does not finish being created even after 40 minutes

Same issue here. Have been waiting twice for half an hour for the cluster to be deployed - without success.

Do reach out to coursera help if qwiklabs help doesn’t respond:

Here’s how you can reach qwiklabs help from googlecoursera.qwiklabs.com
image

I’m having the same issue, gke cluster is not being created. I’ve tried 4 times in the last 2 days.

I reached out to Qwiklabs: Submit a Support Request - Qwiklabs Help
Let’s see if they provide a solution.

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

gcloud container clusters create $CLUSTER_NAME
–project=$PROJECT_ID
–cluster-version=1.21
–machine-type=n1-standard-4
–scopes compute-rw,gke-default,storage-rw
–num-nodes=3

4 Likes

Thanks @luettringhaus-demos . That worked for me. Everyone make sure to set the compute zone based on your region.

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…

Great thanks. :smile:

Cluster can be created this way but I am not able to check-my-progress successfully:
"Please create the GKE cluster with given configuration.’

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 Demo,

I am in London and should I use same region or different one ??

Hello i solved this usign the following code

gcloud config set compute/zone us-central1-f
PROJECT_ID=$(gcloud config get-value project)
CLUSTER_NAME=cluster-1
gcloud container clusters create $CLUSTER_NAME \
  --project=$PROJECT_ID \
  --release-channel=refular \
  --cluster-version=1.23.12-gke.100	 \
  --machine-type=n1-standard-4 \
  --scopes compute-rw,gke-default,storage-rw \
  --num-nodes=3

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!

able to run the latest version of the lab without any modification

hi Chris,

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.

Hi Suparna! Thank you for bringing this up. We’ll take a look at this and update this thread asap.