NCN image customization refers to the process of CFS applying a configuration directly to an NCN image. During CSM installs and upgrades1, NCN image customization must be performed on the NCN worker node image, and the worker NCNs must then be configured to boot from the customized image. The purpose is to ensure that the appropriate CFS layers are applied to the NCN worker image before the workers are booted.
All of the following are prerequisites on the node where this procedure is being performed.
(ncn-m#
) Back up the current CFS state.
For the CSM 1.3 release, the NCN image customization configuration is named ncn-image-customization
.
If a CFS configuration with this name already exists, the procedure on this page will overwrite it.
Because this procedure will create/update a CFS configuration, take a snapshot of the current state of CFS.
/usr/share/doc/csm/scripts/operations/configuration/backup_cfs_config_comp.sh --configs-only
Gather a copy of the sat bootprep
files.
This procedure uses the default sat bootprep
files from the hpc-csm-software-recipe
repository in VCS.
(ncn-m#
) Create a local copy of the management-bootprep.yaml
file.
cp management-bootprep.yaml management-bootprep-image-customization.yaml
(ncn-m#
) Delete the ncn-personalization
configuration in the management-bootprep-image-customization.yaml
file.
After editing, the ncn-image-customization
configuration should be the only entry remaining in the file, and
the file should begin with the following lines:
# (C) Copyright 2022 Hewlett Packard Enterprise Development LP
---
schema_version: 1.0.2
configurations:
- name: ncn-image-customization
(ncn-m#
) Create the ncn-image-customization
CFS configuration.
Run sat bootprep
against the management-bootprep-image-customization.yaml
file to create the CFS configuration that will be used for image customization on the worker NCN image.
sat bootprep run management-bootprep-image-customization.yaml
Customize the worker NCN image and update BSS to use the new image.
Perform the steps in Management Node Image Customization, with the following notes:
(ncn-m001#
) If doing this as part of a CSM upgrade, then use the following command to set the ARTIFACT_VERSION
variable.
ARTIFACT_VERSION=$(grep "^export KUBERNETES_VERSION=" /etc/cray/upgrade/csm/myenv | tail -1 | cut -d= -f2)
echo "${ARTIFACT_VERSION}"
Otherwise, follow the instructions in the linked procedure to identify the currently booted image for one of the worker NCNs.
ncn-image-customization
CFS configuration created earlier in this procedure.(ncn-m#
) Optionally, delete management-bootprep-image-customization.yaml
, which is no longer needed.
rm management-bootprep-image-customization.yaml
Except for CSM-only installs and upgrades, which are very rare in production environments. If CSM is the only product on the system, then this procedure is not performed. ↩︎