This article explains the procedure on how to install Certificate on Versa Analytics nodes, running in cluster configuration.
Prerequisite:
- Versa Director is running HA setup in this document and both the Versa Director nodes are up and running on 16.1R2S6.
- One of the Versa Director is MASTER, and the other one is SLAVE
- 4 nodes Versa Analytics cluster – 2 nodes with analytics personality and 2 nodes with search personality is considered in this example, all the nodes are up and running with 16.1R2S6.
- For Versa Director to talk to Versa Analytics, we need to register Versa Director in the Versa Analytics server.
- Login to Versa Director nodes and stop vsh process in both master and slave Versa Director to prevent failover.
- Navigate to the path /opt/versa/vnms/scripts in the MASTER Versa Director
- Regenerate the certificate on the Versa Director by executing the below script as a versa user ( su versa /versa123)
“./vnms-certgen.sh --cn <master director domain name> --san <slave director domain name > --overwrite --storepass <password> “ command as shown below.
Include the --storepass option to regenerate the cert.
- Start the vsh services (vsh start)
Please ensure that we execute this as admin user
- Replicate the certificate in the analytics nodes by executing the script “vnms-cert-sync.sh –sync”. This script will replicate the certificate in all the analytics node of the cluster and restart the nodes.
Please note: This will take 5-10 mins.
Versa Analytics cluster name should be whatever you have defined in Versa Director as the script will pull all the IP addresses of analytics cluster from here.
- Verify the certificates in the analytics node.
- In all 4 nodes of Versa Analytics add primary and secondary Versa Director hostname with northbound IP address as shown below (for Analytics node 1 as an example).
Please note: Without this step it will give error “unable to connect”, because it will not be able to resolve the hostname to IP address.
- Open the Versa Analytics UI and try to register the Versa Director nodes in the Versa Analytics. (This operation needs to be performed for all 4 Analytics nodes of cluster). Verify that Versa Director nodes are successfully registered in Versa Analytics.