Use this procedure to gracefully shut down your solution cluster.
Warning:
If you shut down your cluster using a different method than what is described in this procedure, file corruption can occur.
Before you begin
You must plan a maintenance window to perform this task.
Stop call events across the solution.
To stop all Avaya Oceana® traffic for an Avaya Analytics™ cluster, run the kubectl scale deployment orca-ref-input-adaptor --replicas=0 command using an account with root privileges.
Back up Common Services using the ccm backup command. If you do not perform a backup, you risk a full reinstallation of the solution.
Back up product application data as described in your solution documentation.
Procedure
Log into Cluster Control Manager.
Check the health of the pods:
Enter k get pods -A
If any pod is listed as other than Running or Completed, do not proceed any further. Contact Avaya Support.
Wait for the command to complete before continuing.
Verify that the new backup file exists on the external backup server.
Identify which node runs the registry-pod:
Enter kubectl get pods -n image-registry -o wide
Note which master node has the registry-pod.
Stop the data flow to the cluster:
Enter kubectlscale --replicas=0 deployment orca-ref-input-adaptor
Verify that the input ref-adaptor pod has stopped by entering kubectl get pods | grep orca-ref-input-adaptor until no orca-ref-input-adaptor pods are shown.
Create a CCM backup:
Enter ccm backup
Wait for the command to complete before continuing.
Verify that the new backup file exists on the external backup server.
Stop the authorization database:
Gracefully shutdown the Common Services database by entering pre-infra-upgrade
Wait for the command to complete before continuing.
Determine the node roles:
Enter ccm version -k
Determine role of each node (worker or controller-worker).
Make a note of the node roles as you need them during later procedures.
Determine which nodes contain a second disk and which are diskless.
Note the disk status of each node. Determine which node is not listed. That node is the diskless node.
As root user, enter kubectl get pods -n image-registry -o wide
Make a note of the cluster node hosting the image registry.
Log in to vCenter as an administrator or with the account used to deploy the cluster.
Click on the VMs and Templates tab.
Power off the worker nodes:
Right-click on the first worker node and click Power > Shut Down Guest OS.
Check the VM status in vCenter. Wait until the node has powered down before continuing to the next node.
Repeat these steps for the next worker node until all worker nodes are powered off.
Power off the controller-worker node without a second disk:
Right-click on the controller-worker node without a second disk and click Power > Shut Down Guest OS.
Check the VM status in vCenter. Wait until the node has powered down.
Power off the controller-worker nodes with second disks:
Right-click on each controller-worker node containing a second disk and click Power > Shut Down Guest OS. You can power these off together, no wait time is needed between nodes.
Power off Cluster Control Manager:
Click on the VMs and Templates tab.
Locate and click on Cluster Control Manager in the folder you designated for the cluster.
Right-click Cluster Control Manager and then click Power > Shut Down Guest OS.