vCenter upgrade to 8 fails during Pre-Check with the below error.
"Error Failed to get server certificate for validation
Resolution Make sure that the sso service is reachable and started before continuing"
1. Ensure that the source vCenter being upgraded has a certificate subject with a CN value.
2. Repair port 7444
root@vcsa01 [ ~ ]# curl -vvv -k https://127.0.0.1:7444
* Trying 127.0.0.1:7444...
* Connected to 127.0.0.1 (127.0.0.1) port 7444 (#0)
* ALPN: offers http/1.1
If the above command fails to connect, it means that port 7444 is blocked on the vCenter.
iptables -L | grep -i 7444
DROP tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:7444
DROP tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:7444
In this case, we can see two drop rules for port 7444. To resolve, remove the rules in question.
1. Remove any firewall set for port 7444 on the vCenter.
2. To edit iptables and remove the firewall, follow below steps.
Export the firewall rule using: iptables-save > /var/tmp/iptables.rules.default
Edit the file, remove the entry, and save the file: vi /var/tmp/iptables.rules.default
cat or less the file again and make sure that the entry is gone.
Now restore the firewall rule by: iptables-restore < /var/tmp/ iptables.rules.default
Run iptables -L command again and make sure the rule is not there
3. Run the curl command and test the connection on port 7444.
curl -vvv -k https://127.0.0.1:7444
4. Retry the upgrade.
# netstat -anp | grep LISTEN | grep stsd
Healthy output should look like:
[email protected] [ ~ ]# netstat -anp | grep LISTEN | grep stsd
tcp 0 0 0.0.0.0:33501 0.0.0.0:* LISTEN 42060/vmware-stsd.l
tcp 0 0 0.0.0.0:41407 0.0.0.0:* LISTEN 42060/vmware-stsd.l
tcp 0 0 0.0.0.0:7080 0.0.0.0:* LISTEN 42060/vmware-stsd.l
[email protected] [ ~ ]# netstat -anp | grep 7444
tcp 0 0 127.0.0.1:57444 127.0.0.1:443 ESTABLISHED 48007/wcpsvc
tcp 0 0 127.0.0.1:443 127.0.0.1:57444 ESTABLISHED 41261/envoy
base.shutdown.port=-1
bio-custom.http.port=7080
bio-custom.https.port=8443
bio-ssl-clientauth.https.port=3128
bio-ssl-localhost.https.port=7444
base.shutdown.port=-1
bio-custom.http.port=7080
bio-custom.https.port=8443
bio-ssl-localhost.https.port=7444org.apache.catalina.startup.EXIT_ON_INIT_FAILURE=true
cp /usr/lib/vmware-sso/vmware-sts/conf/catalina.properties /usr/lib/vmware-sso/vmware-sts/conf/catalina.properties.bak
bio-ssl-localhost.https.port=7444
service-control --stop vmware-stsd
service-control --start vmware-stsd