Control Plane Bare Metal Node Maintenance - Planned
This section describes the procedures involved in replacing a working primary control plane Bare Metal node for maintenance. To replace a primary control plane Bare Metal node for maintenance, use the following:
-
Drain and remove the control plane node which is sent for maintenance, using the following command:
clusters cluster_name nodes controlplane1 actions sync drain remove-node true
Example:
SMI Cluster Deployer# clusters kali-stacked nodes controlplane1 actions sync drain remove-node true This will run drain on the node, disrupting pods running on the node. Are you sure? [no,yes] yes message accepted
-
Verify the status of the control plane node using the following command:
clusters cluster_name nodes controlplane1 actions sync logs
Example:
SMI Cluster Deployer# clusters kali-stacked nodes controlplane1 actions sync logs logs 2020-09-30 01:46:14.498 DEBUG cluster_sync.kali-stacked.controlplane1: Cluster name: kali-stacked 2020-09-30 01:46:14.498 DEBUG cluster_sync.kali-stacked.controlplane1: Node name: controlplane1 2020-09-30 01:46:14.499 DEBUG cluster_sync.kali-stacked.controlplane1: debug: false 2020-09-30 01:46:14.499 DEBUG cluster_sync.kali-stacked.controlplane1: remove_node: true . . . . 2020-09-30 01:46:53.028 DEBUG cluster_sync.kali-stacked.controlplane1: Cluster sync successful 2020-09-30 01:46:53.029 DEBUG cluster_sync.kali-stacked.controlplane1: Ansible sync done 2020-09-30 01:46:53.029 INFO cluster_sync.kali-stacked.controlplane1: _sync finished. Opening lock
-
Shutdown the node.
-
Assign the primary control plane Bare Metal node to maintenance mode in the cluster configuration using the following commands:
configure clusters cluster_name nodes controlplane1 maintenance true commit end
Example:
SMI Cluster Deployer(config)# clusters kali-stacked SMI Cluster Deployer(config-clusters-kali-stacked)# nodes controlplane1 SMI Cluster Deployer(config-nodes-controlplane1)# maintenance true SMI Cluster Deployer(config-nodes-controlplane1)# commit Commit complete. SMI Cluster Deployer(config-nodes-controlplane1)# end SMI Cluster Deployer#
-
The node is ready for the RMA process.
NoteIf the remaining nodes need to be upgraded or NFs need to be synchronized, run a cluster sync in this state. However, it's not a part of the RMA process.
-
Add the node back to the cluster when it is repaired or replaced and available.
NoteIf you add a node after it's repaired, ensure that the disks are clean by clearing the boot drive and virtual drive on the node. This step is to ensure that the virtual drive is in a clean state without the previous state before you add it back. However, removal of the virtual drive is not required for a new replacement node.
-
Attach the new primary control plane Bare Metal node and remove it from the maintenance mode in the cluster configuration using the following commands:
configure clusters cluster_name nodes controlplane1 maintenance false commit end
Example:
SMI Cluster Deployer(config)# clusters kali-stacked SMI Cluster Deployer(config-clusters-kali-stacked)# nodes controlplane1 SMI Cluster Deployer(config-nodes-controlplane1)# maintenance false SMI Cluster Deployer(config-nodes-controlplane1)# commit Commit complete. SMI Cluster Deployer(config-nodes-controlplane1)# end SMI Cluster Deployer#
-
Run the cluster synchronization using the following command:
clusters cluster_name actions sync run debug true
Example:
SMI Cluster Deployer# clusters kali-stacked actions sync run debug true This will run sync. Are you sure? [no,yes] yes message accepted
NOTES:
-
clusters cluster_name - Specifies the K8s cluster.
-
nodes controlplane1 - Specifies primary control plane 1 Bare Metal node.
-
maintenance true/false - Assigns or removes the primary control plane 1 Bare Metal mode to maintenance mode
-
actions sync run debug true - Synchronizes the cluster configuration.
-
actions k8s cluster-status - Displays the status of the cluster.