Issue: vCenter 7 and vSAN – Unable to Extract Requested Data (Trust Anchor Errors)

Issue and Background

After a failed attempt to rename ESXi hostnames and regenerate certificates, the same variation of vSAN errors occurs, denying access to all monitoring and other interactions via the vSphere Web Client. The available KBs on this topic (KB55092, KB2148196) only provide a glimpse of hope that this issue was once known and could have been resolved by a simple update in vCenter v6.x, and yet the early adopter’s life in vCenter 7 does not yet provide any such support.

Below are two symptoms of the issue in terms of error messages, as found when navigating the vSphere Web Client on vCenter.

vmware_vsan_unable_to_query_capacity_overview_data vmware_vsan_unable_to_extract_requested_data

vSAN diagnostics claim that the cluster is healthy (via the command line) and the VMs are working. Unfortunately, the vSAN cluster cannot otherwise be managed, and we were blocked from adding additional capacity disks to the cluster, creating a real issue.

This article will walk through resolving the issue (which ultimately was caused by certificate problems). This walkthrough will require administrative access to the VCSA appliance via SSH.

Disclaimer: Follow these instructions at your own risk, they are provided without warranty. Ferroque Systems nor its affiliates will be held liable for unanticipated impacts in your environment from running its commands. We strongly recommend taking a snapshot, clone, or VM backup of the VCSA prior to executing these commands.

Resolution

For this tutorial, I’ll be using vCenter 7 with an embedded PSC (Platform Services Contoller), and as shown below none of the vSAN monitors are displaying as expected. We’ll need to check in the vSphere client logs to try and pinpoint the cause of this problem.

Step 1

SSH into VCSA via the root account and enter shell mode.

set –enabled true

The status of shell can be viewed with:

shell.get

vmware_vcenter7_cli_ssh

Confirm in the  previously mentioned Sphere client logs that there is a thumbprint issue with certificates.

vim +/thumbprint /var/log/vmware/vsphere-ui/logs/vsphere_client_virgo.log

This command opens vim and searches for the first occurrence of “thumbprint” in the vsphere_client_virgo.log file. Press “n” to go forwards and “N” to search backward, and press the keystroke sequence of “Esc” and “:q!” to exit vim by quitting without saving. Note the failed errors in the screenshot below as evidence.

vmware_vsan_vcenter7_thumbprint_error_output

Step 2

To remedy those two errors and get vSAN working again, download this script:

https://web.vmware-labs.com/scripts/check-trust-anchors

This script makes use of the built-in VMware Python scripts lstool.py and ls_update_certs.py.

Copy and paste the script from the site into a filename of your choice, then give the file executable permissions via chmod.

chmod u+x check-trust-anchors
./check-trust-anchors -cml 

Run the script with options -cml to colorize the output, display information about the machine SSL certificate, and check the current machine SSL certificates. The cause of this issue is that the endpoint certificate fingerprint doesn’t match the machine SSL certificate. To view all the endpoint URIs associated with the mismatched certificate, run the script with the -e switch appended.

vmware_vcenter7_trust_anchors_certificates_vsan

Step 3

VCSA 7 moved two important files for this script into a different directory. Locating these files are important as the script won’t be able to fix the certificate issues if these two flies aren’t able to be referenced by the executable, nor will it provide any error message.

If you copy and pasted the script, run this sed command to view the locations of those two files based upon the version of VCSA.

sed -n ‘150,158p’ check-trust-anchor.sh

If you are unsure which version you’re running, this command will output the exact version.

grep CLOUDVM_VERSION /etc/vmware/.buildinfo

vmware_vcenter7_trust_anchors_script_certificates_vsan.png

In my instance, I have VCSA 7.0.0.10300 running, so I’ll need to check the locations in the first block of the subsection outputted.

ls -l /usr/lib/vmware-lookupsvc/tools/

50% of the files needed are executable, so finish off the rest with chmod u+x. This action can be reversed with chmod u-x or chmod 544.

chmod u+x /usr/lib/vmware-lookupsvc/tools/ls*

Step 4

Now that the prerequisites are completed, run the command again with the –fix  or -f option appended to fix the certificate mismatch and regain control of the vSAN.

./check-trust-anchor -cml –fix

When prompted, click ‘Y’ to update the trust anchors.

The default SSO admin is fine; press enter to continue.

The fingerprint that needs to be changed is the endpoint; copy and paste that in.

Enter the FQDN of the same endpoint; in this case it is FS.systems.com.

vmware_vcenter7_trust_anchors_script_certificates_vsan_fixing1

The script will finish once the available services are updated.

vmware_vcenter7_trust_anchors_script_certificates_vsan_fixing2

Re-run the check-trust-anchor script to confirm that both fingerprints match with the -e switch appended to confirm all endpoint URIs have successfully added.

./check-trust-anchor -cmle

Now, return to the web browser and regain control of vSAN.

vmware_vsan_vcenter7_restored

vmware_vsan_vcenter7_restored2

Conclusion

As you can see, knowledge of certain specific scripts and command-line utilities can be used to resolve this issue, which can otherwise be fairly complex to troubleshoot and resolve. For this reason, it is important for VMware administrators to not only be familiar with using the traditional GUI-based vSphere console, but to also be comfortable using command-line utilities to help troubleshoot and resolve certain issues that can sometimes occur. At Ferroque Systems, along with other solutions, we specialize in designing and implementing virtualization solutions (for example, using Citrix, VMware, and/or Microsoft), and our knowledge and field experience enables us to bring such expertise to bear for the benefit of our customers.

0 0 vote
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x