From ef5a52aa0c8caa6558c0a6e514654b51a72dc03b Mon Sep 17 00:00:00 2001 From: Md Irshad Sheikh Date: Thu, 25 May 2023 09:16:13 -0400 Subject: [PATCH] Update k8s_plugins config format MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previously default.yml file had key-value pairs for the enabled plugins, for example "intel-gpu-plugin: intelgpu=enabled". Now simplified to just add a plugins name as a list. Other related changes are done in below MR: https://review.opendev.org/c/starlingx/config/+/878509 TEST PLAN: PASS: bootstrap is success after enabling the k8s plugins (intelgpu) in default.yml PASS: verified “intelgpu: enabled" using "kubectl get nodes controller-0 --show-labels" command, after enabling the intelgpu k8s plugin in default.yml PASS: checked whether daemonset pods are running or not, using command "kubectl get ds -A | grep 'gpu-plugin'", after enabling the intelgpu k8s plugin in default.yml Note: No GPU hardware is available, so all testing is done using commands after bypassing the driver related checks in the code. Story: 2010604 Task: 48096 Signed-off-by: Md Irshad Sheikh Change-Id: I1b73dcb9c3b003da27b7389a104c905167830c42 --- .../src/playbooks/host_vars/bootstrap/default.yml | 6 +++--- .../plugins/tasks/{intel-gpu-plugin.yml => intelgpu.yml} | 0 .../plugins/tasks/{intel-qat-plugin.yml => intelqat.yml} | 0 3 files changed, 3 insertions(+), 3 deletions(-) rename playbookconfig/src/playbooks/roles/bootstrap/plugins/tasks/{intel-gpu-plugin.yml => intelgpu.yml} (100%) rename playbookconfig/src/playbooks/roles/bootstrap/plugins/tasks/{intel-qat-plugin.yml => intelqat.yml} (100%) diff --git a/playbookconfig/src/playbooks/host_vars/bootstrap/default.yml b/playbookconfig/src/playbooks/host_vars/bootstrap/default.yml index 4357b4033..bf0559542 100644 --- a/playbookconfig/src/playbooks/host_vars/bootstrap/default.yml +++ b/playbookconfig/src/playbooks/host_vars/bootstrap/default.yml @@ -449,13 +449,13 @@ enable_volume_snapshot_support: false # plugins are disabled. # # "k8s_plugins" is a list of selected vendor device plugins to be -# enabled as part of the bootstrap. When a device plugin is enabled, +# available as part of the bootstrap. When a device plugin is enabled, # its pods will be deployed when the plugin label (e.g. intelgpu=enabled) # is assigned to the hosts in the cluster as part of system bring-up. k8s_plugins: -# intel-gpu-plugin: intelgpu=enabled -# intel-qat-plugin: intelqat=enabled +# - intelgpu +# - intelqat # SYSTEM APPLICATIONS # =================== diff --git a/playbookconfig/src/playbooks/roles/bootstrap/plugins/tasks/intel-gpu-plugin.yml b/playbookconfig/src/playbooks/roles/bootstrap/plugins/tasks/intelgpu.yml similarity index 100% rename from playbookconfig/src/playbooks/roles/bootstrap/plugins/tasks/intel-gpu-plugin.yml rename to playbookconfig/src/playbooks/roles/bootstrap/plugins/tasks/intelgpu.yml diff --git a/playbookconfig/src/playbooks/roles/bootstrap/plugins/tasks/intel-qat-plugin.yml b/playbookconfig/src/playbooks/roles/bootstrap/plugins/tasks/intelqat.yml similarity index 100% rename from playbookconfig/src/playbooks/roles/bootstrap/plugins/tasks/intel-qat-plugin.yml rename to playbookconfig/src/playbooks/roles/bootstrap/plugins/tasks/intelqat.yml