Use the following guidelines and suggested steps to help resolve issues with the vLCM UI not displaying UCP Advisor firmware bundles because the SSL certificate cannot be verified.
- Condition:
- The vLCM UI does not display the UCP Advisor firmware bundle.
- What it Means:
- vCenter is unable to verify the UCP Advisor SSL certificate. See the vCenter HSM logs:
root@VCSA-111 [ ~ ]# cat /storage/log/vmware/vmware-updatemgr/vum-server/hsm-service.log SSL certificate verify failed: HTTPSConnectionPool(host='<HOST_IP>', port=443): Max retries exceeded with url: /hsm/vsphere-lcm/hw-support/v1/packages (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate (_ssl.c:1076)')))
- Corrective Action:
-
Note: If you have a three-node cluster, you must perform steps 1 to 4 on Worker Node1 VM and steps 5 to 12 on the Master Node VM. Verify that the label app is set to ucp on the Worker Node1 VM by running the following command:
kubectl get nodes -l app=ucp
- Using SSH, log on to the UCP Advisor VM.
- Generate a self-signed SSL key pair. Enter:
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -sha256 -days 364 -nodes -subj "/C=<Country Name>/ST=<State Name>/L=<City Name>/O=<Organization/Company name>/OU=<Organization Unit Name>/CN=<hostname for the UCP Advisor VM>"For example:openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -sha256 -days 364 -nodes -subj "/C=US/ST=California/L=Santa Clara/O=Hitachi Vantara/OU=SIE/CN=example.domain.com"
- Copy the certificate key pair to the /var/ucpadvisor/logs directory. Enter:
cp -r cert.pem key.pem /var/ucpadvisor/logs
- Grant execute permissions to the certificate. Enter:
chmod 555 /var/ucpadvisor/logs/*.pem
- Edit the Kong pod deployment. Enter:
kubectl edit deploy ucpadvisor-kong -n ucp
This opens the vi editor. Add the following lines above the - name: KONG_LUA_PACKAGE_PATH line.
- name: KONG_SSL_CERT value: /var/ucpadvisor/logs/cert.pem - name: KONG_SSL_CERT_KEY value: /var/ucpadvisor/logs/key.pem
Note: Verify that the formatting is retained. - Save the file. Enter:
:wq
- Exit the vi editor. Press the Esc key.
This restarts the Kong pod.
- Monitor the status of the Kong pod. Enter:
kubectl get pods -n ucp
- After the Kong pod is restarted, log on to UCP Advisor, and verify the certificate in the browser.
- Unregister the UCP Advisor plugin. See Unregistering a UCP Advisor plugin.
- Register the UCP Advisor plugin. See Registering the UCP Advisor plugin.
- In a new browser, log on to vCenter and verify that the vLCM UI lists the firmware bundle.