There are several operations which configure administrative access to different parts of the system.
Ensuring that the cray
CLI can be used with administrative credentials enables use of many
management services via commands. The management nodes can be locked from accidental manipulation by
the cray power
and cray fas
commands when the intent is to work on the entire system except the
management nodes. The cray scsd
command can change the SSH keys, NTP server, syslog
server, and
BMC/controller passwords.
Management
role on the BMCs of management nodes
NOTE
The procedures in this section of installation documentation are intended to be done in order, even though the topics are administrative or operational procedures. The topics themselves do not have navigational links to the next topic in the sequence.
The cray
command line interface (CLI) is a framework created to integrate all of the system management REST
APIs into easily usable commands.
Later procedures in the installation workflow use the cray
command to interact with multiple services.
The cray
CLI configuration needs to be initialized for the Linux account. The Keycloak user who initializes the
CLI configuration needs to be authorized for administrative actions.
There are two options to proceed with cray
CLI authentication:
Configure all NCNs with a temporary Keycloak account for the duration of the install.
See Configure All NCNs With Temporary Keycloak User.
Manually configure the cray
CLI with a valid Keycloak account using the following steps:
Configure Keycloak account
Upcoming steps in the installation workflow require an account to be configured in Keycloak for
authentication. This can be either a local Keycloak account or an external Identity Provider (IdP),
such as LDAP. Having an account in Keycloak with administrative credentials enables the use of many
management services via the cray
command.
Initialize and authorize the cray
CLI on each NCN being used.
Management
role on the BMCs of management nodesThe BMCs that control management nodes will not have been marked with the Management
role in HSM. It is important
to mark them with the Management
role so that they can be easily included in the locking/unlocking operations required
as protections for FAS and PCS actions.
Set BMC Management
roles now!
The management nodes are unlocked at this point in the installation. Locking the management nodes and their BMCs will prevent actions from FAS to update their firmware or PCS to power off or do a power reset. Doing any of these by accident will take down a management node. If the management node is a Kubernetes master or worker node, this can have serious negative effects on system operation.
If a single node is taken down by mistake, it is possible that things will recover. However, if all management nodes are taken down, or all Kubernetes worker nodes are taken down by mistake, the system is dead and has to be completely restarted.
Lock the management nodes now!
(ncn-mw#
) Run the lock_management_nodes.py
script to lock all management nodes and their BMCs that are not already locked:
/opt/cray/csm/scripts/admin_access/lock_management_nodes.py
The return value of the script is 0 if locking was successful. Otherwise, a non-zero return means that manual intervention may be needed to lock the nodes and their BMCs.
For more information about locking and unlocking nodes, see Lock and Unlock Nodes.
NOTE
If there are no liquid-cooled cabinets present in the HPE Cray EX system, then this step can be skipped.
The System Configuration Service (SCSD) allows administrators to set various BMC and controller parameters for components in liquid-cooled cabinets. At this point in the install, SCSD should be used to set the SSH key in the node controllers (BMCs) to enable troubleshooting. If any of the nodes fail to power down or power up as part of the compute node booting process, it may be necessary to look at the logs on the BMC for node power down or node power up.
See Configure BMC and Controller Parameters with SCSD.
See Set up passwordless SSH for the procedure to configure passwordless SSH between management nodes and from management nodes to managed nodes.
This procedure sets up resources in Kubernetes (a Kubernetes Secret and ConfigMap) which are later applied to the management nodes using CFS node personalization in section 7. Configure management nodes with CFS below.
See Configure the root
password and SSH keys in Vault
for the procedure to configure the root
password and SSH keys in Vault.
This procedure writes the root
password hash and SSH keys to Vault which are later
applied to the management nodes using CFS node personalization in section
7. Configure management nodes with CFS below.
Management nodes need to be configured after booting for administrative access, security, and other purposes. The Configuration Framework Service (CFS) is used to apply post-boot configuration in a decoupled, layered manner. Individual software products provide one or more layers included in a CFS configuration. The CFS configuration is applied to components, including management nodes, during post-boot node personalization.
The procedure here creates a CFS configuration that contains only the layer provided by the CSM product and then applies that configuration to the management nodes.
(ncn-m001#
) Set the variable CSM_RELEASE
to the CSM release version.
For example:
CSM_RELEASE="1.5.0"
(ncn-m001#
) Run the apply_csm_configuration.sh
script.
This script creates a new CFS configuration named management-csm-${CSM_RELEASE}
and applies it to the management node components in CFS, enables them,
and clears their state and error count. It then waits for all the management nodes
to complete their configuration.
/usr/share/doc/csm/scripts/operations/configuration/apply_csm_configuration.sh \
--config-name "management-csm-${CSM_RELEASE}" --clear-state
Successful output will end with a message similar to the following:
Configuration complete. 9 component(s) completed successfully. 0 component(s) failed.
The number reported should match the number of management nodes in the system. If there are failures, see Troubleshoot CFS Issues.
After completing the operational procedures above which configure administrative access, the next step is to validate the health of management nodes and CSM services.
See Validate CSM Health.