Since the Snapshot Appliance deployed successfully, the /storage/log/snapservice/snap-service.log on the appliance can be verified for cause of issue.
The appliance fails to register to the vCenter and deploy the plugin due to failure to verify the vCenter certificate which was used during deployment of the vSAN Snapshot Appliance:
{"level":"error","timestamp":"YYYY-MM-DDTHH:MM:SS.SSSZ","C":"auth/client.go:265","message":"Failed to initialize VC client","error":"Post \"https://<vCenter_FQDN>/sdk\": tls: failed to verify certificate: x509: certificate signed by unknown authority","S":"gitlab.eng.vmware.com/core-..To resolve this issue:
Validate that the certificate on the Snapshot Appliance at path /etc/ssl/certs/snapservice/vc_certs.pem is same as the one from step - "Requisites before deploying Step 2" of deployment KB - Deploying vSAN Snapshot Appliance.
If it is not the same, then replace the contents of this file /etc/ssl/certs/snapservice/vc_certs.pem with the contents of the certificate from 'Begin' to 'End'. Then skip to Step 4. If this does not work, then perform Step 3 as well.
If the contents of the file /etc/ssl/certs/snapservice/vc_certs.pem and the certificate are same:
In the SSH to the Snapshot Appliance run the command: openssl s_client -connect <vCenter_FQDN>:443
In the output of this command, copy the "Server Certificate" content from "Begin" to "End".
Take snapshot of the Snapshot Appliance.
Then in the SSH to this appliance, delete the /etc/ssl/certs/snapservice/vc_certs.pem file.
Create a /etc/ssl/certs/snapservice/leaf_cert.pem file and its content is the Server Certificate from the openssl command output (Step 3.2).
Change the permissions of this file using the commands:
chmod 644 /etc/ssl/certs/snapservice/leaf_cert.pem
chown snapservice:snapservice /etc/ssl/certs/snapservice/leaf_cert.pem
Then restart the snapservice on the appliance using the commands:
systemctl stop snapservice
systemctl start snapservice
Check the vSphere Client now, a webpage refresh might be needed, the Data Protection service should be deployed successfully and the plugin visible as well.
If the plugin does not deploy even after performing above steps, validate the /storage/log/snapservice/snap-service.log on the Snapshot Appliance, if the below entries are seen:"level":"error","timestamp":"YYYY-MM-DDTHH:MM:SS.SSSZ","C":"auth/client.go:213","message":"Failed to login to vc","error":"ServerFaultCode: Cannot complete login due to an incorrect user name or password."
Perform the below:
Update this file with the missing vCenter credentials (password & username) on the Snapshot Appliance - /opt/vmware/snapservice/app/deployment/compose_snapservice_config.yaml
Then restart the snapservice:
systemctl stop snapservice
systemctl start snapservice