equinix / terraform-equinix-metal-anthos-on-baremetal

Terraform module for quick deployment of baremetal Anthos on Equinix Metal
https://registry.terraform.io/modules/equinix/anthos-on-baremetal
Apache License 2.0
26 stars 24 forks source link

Terraform script does not create the logical volume for PX KVDB #57

Open bikashrc25 opened 3 years ago

bikashrc25 commented 3 years ago

I used the following steps to setup the Google Anthos on Equinix Metal with PX.

gcloud init
gcloud auth application-default login
mkdir -p equinix-px
cd equinix-px/
 export TF_VAR_metal_auth_token=...
export TF_VAR_metal_project_id=...
export TF_VAR_gcp_project_id=...

terraform init
# variables.tf
variable "metal_auth_token" {}
variable "metal_project_id" {}
variable "gcp_project_id" {}

# main.tf
module "anthos-on-baremetal" {
  source  = "equinix/anthos-on-baremetal/metal" 
  version = "0.5.1"

  gcp_project_id = var.gcp_project_id
  metal_auth_token = var.metal_auth_token
  metal_project_id = var.metal_project_id
  metal_create_project = false
  ha_control_plane = false
  facility = "da11"
  cp_plan = "c3.medium.x86"
  worker_plan = "c3.medium.x86"
  worker_count = 3
  storage_module = "portworx"
  storage_options = {}
}
terraform apply

After the cluster is up and running with PX, I notice that the separate LV for PX KVDB is missing in all the three worker nodes. We definitely need to fix this problem ASAP as this prolongs the PX setup in the cluster.

root@eqnx-metal-gke-ww35x-worker-03:~# lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 447.1G  0 disk 
sdb      8:16   0 447.1G  0 disk 
sdc      8:32   0 223.6G  0 disk 
sdd      8:48   0 223.6G  0 disk 
├─sdd1   8:49   0     2M  0 part 
├─sdd2   8:50   0   1.9G  0 part 
└─sdd3   8:51   0 221.7G  0 part /
root@eqnx-metal-gke-ww35x-worker-03:~# 
Collapse
displague commented 3 years ago

This may be #45