Lab 4.1 - terraform apply fails without exception
Been trying to get through this lab for a couple of days now, following the steps to the letter. It might be me or it might just be poorly written. Did anyone else have the same experience with this?

Comments
-
I have the same issues and no clue how to fix it... yet
0 -
Anyone?
If LF368 is blocked at the beginning while creating the setup it is useless.0 -
I can't continue....help
│ Error: Error creating service account: googleapi: Error 403: Request had insufficient authentication scopes. │ Details: │ [ │ { │ "@type": "type.googleapis.com/google.rpc.ErrorInfo", │ "domain": "googleapis.com", │ "metadata": { │ "method": "google.iam.admin.v1.IAM.CreateServiceAccount", │ "service": "iam.googleapis.com" │ }, │ "reason": "ACCESS_TOKEN_SCOPE_INSUFFICIENT" │ } │ ] │ │ More details: │ Reason: insufficientPermissions, Message: Insufficient Permission │ │ │ with module.jx.module.gsm[0].google_service_account.gsm_sa, │ on .terraform/modules/jx/modules/gsm/main.tf line 25, in resource "google_service_account" "gsm_sa": │ 25: resource "google_service_account" "gsm_sa" {0 -
I am experiencing the same Error with the IAM policy.
0 -
I'm also looking at the following guides from the official Jenkins-X doc for ideas: https://jenkins-x.io/v3/admin/platforms/google/ and https://jenkins-x.io/v3/admin/platforms/minikube/.
0 -
I also see the Enable Registry API section in the lab 4.1 PDF which mentions IAM roles.
0 -
I just got this step of the lab to work for me. I'm running Debian 12 on my laptop. I originally installed the gcloud command line tool via the google-cloud-sdk snap package. I researched it a bit, and the google-cloud-cli snap package is actually more up to date than the google-cloud-sdk package. I eventually ended up installing the gcloud cli tool via the official Google tar package for it. Everything at this step worked fine after that for me. The google-cloud-cli snap package might still work but I couldn't use
gcloud components install gke-gcloud-auth-pluginto install the gke auth plugin. There's probably a way to still do that with snap I don't know.0 -
I think also the Enable Registry API section helps too with the IAM role messages. I restarted the lab from scratch, and got the same IAM error warnings. Everything seems to work fine for this lab for me after I have gcloud setup and the Enable Registry API.
0 -
I'm officially stuck at page 10 of lab 4.1. After running Terraform apply I always get the following error message:
│ Error: googleapi: Error 403: Insufficient regional quota to satisfy request: resource "SSD_TOTAL_GB": request requires '300.0' and is short '50.0'. project
has a quota of '250.0' with '250.0' available. View and manage quotas at https://console.cloud.google.com/iam-admin/quotas?usage=USED&project=lab-jenkinsx.
│ Details:
│ [
│ {
│ "@type": "type.googleapis.com/google.rpc.RequestInfo",
│ "requestId": "0xd67ee50a9f1aee93"
│ },
│ {
│ "@type": "type.googleapis.com/google.rpc.ErrorInfo",
│ "domain": "container.googleapis.com",
│ "reason": "INSUFFICIENT_QUOTA_REGIONAL"
│ }
│ ]
│ , forbidden
│
│ with module.jx.module.cluster.google_container_cluster.jx_cluster,
│ on .terraform/modules/jx/modules/cluster/main.tf line 24, in resource "google_container_cluster" "jx_cluster":
│ 24: resource "google_container_cluster" "jx_cluster" {
│I have checked all the terraform configuration files to make sure there are is no SSD storage declared. I am not able to request more SSD storage. Any help with this issue will be greatly appreciated.
0 -
I was finally able to finish this lab without errors by doing the following:
Reducing to 2 the number of cluster nodes in the variables.tf file:
variable "initial_cluster_node_count" {
description = "initial number of cluster nodes"
type = number
default = 2
}variable "initial_primary_node_pool_node_count" {
description = "initial number of pool nodes"
type = number
default = 1
}variable "autoscaler_min_node_count" {
description = "Minimum number of cluster nodes"
type = number
default = 2
}variable "autoscaler_max_node_count" {
description = "Maximum number of cluster nodes"
type = number
default = 4Running the following additional commands on the gcloud CLI, before running "terraform init":
gcloud services enable iam.googleapis.com \
iamcredentials.googleapis.com \
cloudresourcemanager.googleapis.com \
--project=lab-jenkinsx
1 -
hi, did anybody had an issue with terraform plan indicating
~~~sh
│ Error: Unsupported block type
│
│ on .terraform/modules/jx/main.tf line 42, in provider "helm":
│ 42: kubernetes {
│
│ Blocks of type "kubernetes" are not expected here. Did you mean to define argument
│ "kubernetes"? If so, use the equals sign to assign it a value.
╵~~~i dont' understand it, also following every step and that file particularly (.terraform/modules/jx/main.tf ) is not even touched or mentioned during previous steps.
thanks
0
Categories
- All Categories
- 176 LFX Mentorship
- 176 LFX Mentorship: Linux Kernel
- 750 Linux Foundation IT Professional Programs
- 373 Cloud Engineer IT Professional Program
- 169 Advanced Cloud Engineer IT Professional Program
- 74 DevOps IT Professional Program - Discontinued
- 4 DevOps & GitOps IT Professional Program
- 99 Cloud Native Developer IT Professional Program
- 7.6K Training Courses & Learning Paths
- 1 AI & ML Training
- 1 Blockchain & Decentralized Identity Training
- 3 Cloud & Containers Training
- 1 Cybersecurity Training
- 1 DevOps & Site-Reliability Training
- 1 Linux Kernel Development Training
- 1 Networking Training
- 1 Open Source Best Practice Training
- 1 System Administration Training
- 1 System Engineering Training
- 1 Web & Application Development Training
- 792 Hardware
- 202 Drivers
- 68 I/O Devices
- 37 Monitors
- 95 Multimedia
- 173 Networking
- 91 Printers & Scanners
- 87 Storage
- 768 Linux Distributions
- 81 Debian
- 67 Fedora
- 22 Linux Mint
- 13 Mageia
- 24 openSUSE
- 150 Red Hat Enterprise
- 31 Slackware
- 13 SUSE Enterprise
- 356 Ubuntu
- 465 Linux System Administration
- 31 Cloud Computing
- 73 Command Line/Scripting
- Github systems admin projects
- 98 Linux Security
- 78 Network Management
- 101 System Management
- 46 Web Management
- 106 Mobile Computing
- 18 Android
- 73 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 392 Off Topic
- 121 Introductions
- 181 Small Talk
- 29 Study Material
- 949 Programming and Development
- 310 Kernel Development
- 621 Software Development
- 982 Software
- 374 Applications
- 182 Command Line
- 5 Compiling/Installing
- 68 Games
- 317 Installation
- Archived
- 2 LFD140 Class Forum
Upcoming Training
-
August 20, 2018
Kubernetes Administration (LFS458)
-
August 20, 2018
Linux System Administration (LFS301)
-
August 27, 2018
Open Source Virtualization (LFS462)
-
August 27, 2018
Linux Kernel Debugging and Security (LFD440)

