From da94553a79c49849986784391eb6595418adb5aa Mon Sep 17 00:00:00 2001 From: Punith Kenchappa Date: Thu, 20 Jun 2024 14:17:55 +0530 Subject: [PATCH 1/2] Update README.md --- tf/add-powervm-workers/README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tf/add-powervm-workers/README.md b/tf/add-powervm-workers/README.md index 996c081..1faa633 100644 --- a/tf/add-powervm-workers/README.md +++ b/tf/add-powervm-workers/README.md @@ -1,6 +1,6 @@ # Add PowerVM workers to Intel cluster -User need to uopdate required vales in data/vars.tfvars file such as username and password of IBM intranet credentials to get access to the PowerVC. +User need to update required vales in powervm.tfvars file such as username and password of IBM intranet credentials to get access to the PowerVC. ``` auth_url = "https://host.net:5000/v3/" user_name = "***@us.ibm.com" @@ -12,11 +12,11 @@ If you are using a selinux enabled bastion, please set `chcon -R -t httpd_sys_co ### Use Terraform command to plan and apply . ``` - terraform plan -var-file=data/powervm.tfvars + terraform plan -var-file=powervm.tfvars ``` ``` - terraform apply -var-file=data/powervm.tfvars + terraform apply -var-file=powervm.tfvars ``` ### Configure the DHCP and restart the dhcpd service. @@ -42,6 +42,7 @@ Get the MAC Address and IP Address of the VM created on PowerVC. Update /etc/dhc ``` ## Troubleshooting + ### Ignition failed. * If ignition failed, Once you have the VM console, run the following commands: @@ -61,6 +62,7 @@ ignition --platform openstack -stage fetch -log-to-stdout sudo journalctl -u kubelet ``` * Ignition file properties should has `/etc/hostname` , `/etc/resolv.conf`, `passwd` section with proper values. + ### Ignition successful, CSR does not show * If you see the error with `no such host` error in the `sudo journalctl -u kubelet` add the DNS service points to the right host/ip of the ignition IP. From 5048f1b9012646ef4d9df21f3fd481d1fc1c664b Mon Sep 17 00:00:00 2001 From: Paul Bastide Date: Thu, 20 Jun 2024 07:47:53 -0400 Subject: [PATCH 2/2] Apply suggestions from code review Signed-off-by: Paul Bastide --- tf/add-powervm-workers/README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tf/add-powervm-workers/README.md b/tf/add-powervm-workers/README.md index 1faa633..20caa43 100644 --- a/tf/add-powervm-workers/README.md +++ b/tf/add-powervm-workers/README.md @@ -1,6 +1,8 @@ # Add PowerVM workers to Intel cluster User need to update required vales in powervm.tfvars file such as username and password of IBM intranet credentials to get access to the PowerVC. + +*Note* It is recommended to copy the powervm.tfvars into data/ and use the data/powervm.tfvars with your terraform commands. ``` auth_url = "https://host.net:5000/v3/" user_name = "***@us.ibm.com" @@ -12,11 +14,11 @@ If you are using a selinux enabled bastion, please set `chcon -R -t httpd_sys_co ### Use Terraform command to plan and apply . ``` - terraform plan -var-file=powervm.tfvars + terraform plan -var-file=data/powervm.tfvars ``` ``` - terraform apply -var-file=powervm.tfvars + terraform apply -var-file=data/powervm.tfvars ``` ### Configure the DHCP and restart the dhcpd service.