banner



How To Update Service Control Manager

Recently we've had some weird problems on 1 of our customers vCenter Servers. For starters the vMotion and Storage vMotion features weren't working anymore considering of fourth dimension-outs. Which is weird and something I've never seen earlier. So nosotros started troubleshooting the VCSA server and noticed that it couldn't retrieve the installed licenses (VMware vSphere Enterprise Plus) from the production ESXi hosts anymore.

Going to the "Licensed Features" tab in the vSphere Client (VCSA version half-dozen.0 GA) usually gives you a nice overview of what vSphere license is installed, but this time it was just empty. Going to the ESXi host straight yous could yet meet that the license was present and activated. Nosotros besides noticed that the License module in the vSphere client was also providing us with a timeout.

Once nosotros pigeon into the log files from the license service in "/var/log/vmware/cis-license/license.log" we noticed some Security Token Service STS service, SSO service and web-client service issues in regards to certificates. Which got me thinking and looking at the certificates for this vCenter Server Appliance. Below you can find some snippets of logs which might be interesting for you lot to match your trouble to the one I was having:

You can use the following cli cmdlets to check your certificate stores and the certificates that are in them:

All certificates checked out simply guess what, the "MACHINE_SSL_CERT" didn't. Turns out information technology was expired. Funny affair though is that this particular vCenter Appliance should'nt even be working anymore because one time the certificate is expired, about of the fourth dimension it won't even start all of the vCenter services once you reboot information technology. In our example somehow it did.

So we went ahead and fired upwards the "certificate-manager" tool which can be found in "/usr/lib/vmware-vmca/bin/certificate-manager", picked option 3 to supervene upon the the Motorcar SSL with a VMCA certificate (which is a cocky-signed certificate only that's fine for this environment), entered the information which was present in the current document such as hostnames and IP-address information and accepted all changes.

Certificate-director tool on the vCenter Server Appliance

Once you lot accepted the change it is proposing it will update the certificates in the locations it is needed and finish and start all services. Easy. Our certificate-managing director nevertheless decided it was time to throw an error:

Once nosotros checked that log we saw that the certificate-managing director tooling couldn't start the "vmware-eam" service, see the below log snippet which can be constitute in "/var/log/vmware/vmcad/certificate-director.log":

Certain enough we were hitting a bug in our vCenter Server Appliance. This issues prevented the EAM service from starting after a vCenter reboot. This bug basically deletes the "eam.properties" file in the "/etc/vmware-eam/" directory. This file is crucial for the service to start and know what to practice. Since this file was missing in our environment, the "vmware-eam" service was broken. This VMware KB explains how to ready this. Which basically means that you have to download the attachment called "Recreate_eam.properties.sh" and run it. This script recreates the eam.properties file and so that your "vmware-eam" service tin can start again. Please not that you can only run this when you lot run the EAM service on the vCenter Server you are working on. The steps to run this script are described beneath:

In our state of affairs this most fixed our bug. We were forced to break the certificate-manager procedure in the middle where it starts starting the services over again after it updated the "MACHINE_SSL_CERT" in the places information technology has to. You can do this by just pressing CTRL+C on the right time in the procedure. To observe this correct time you can open up another putty session to the VMware vCenter server and using the following command:

Just press CTRL+C when the post-obit log entries pass past:

One time you are at this point just start the services yourself with:

This should start all the services nicely. After this signal we had our VMware vCenter Server Appliance working again with a new fresh "MACHINE_SSL_CERT" certificate. Every bit a final bank check you tin execute the following control and verify the expiration date:

There you have it. I figured it would exist like shooting fish in a barrel plenty and set this rapidly, turned out we were facing a bug in the "vmware-eam" service. I promise this mail service helps when you are finding the aforementioned issues we found.

Source: https://vcloudvision.com/2019/05/13/how-to-fix-an-expired-vcsa-machine-ssl-certificate-with-a-bugged-vmware-eam-service/

Posted by: cotnerfolearribled.blogspot.com

0 Response to "How To Update Service Control Manager"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel