Introduction
Recently, I worked on an issue where vCenter Server Appliance 6.0 U1 was rebuilt and was not able to assign vCenter Server license key with the following error message:
After a review, it was found out that the license key was not removed before decommissioning the old VC. As a result, old VC asset was registered with the license key and removing the asset thrown up an error:
License entity does not exist
Environment
The vSphere environment was set as the following:
- 1 x vCenter Server Appliance 6.0 U1
- 1 x Windows vCenter Server 6.0 U1
- 1 x Appliance External PSC 6.0 U1
- 1 x Windows External PSC 6.0 U1
- 1 x SSO domain
- 1 x SSO site
What Happened?
- Decommissioned VCSA 6.0 U1 without removing VC license key from the license page
- Rebuilt VCSA 6.0 U1 with external PSC with the same configuration as before
- Existing PSC thinks that the old asset still exists
Solution
Worked with VMware Support and they advised that the issue is due to the old entity still reamining in the VMware Directory Service database whereas the old asset was removed. The solution was simple enough, remove the old entity.
To do the work, JXplorer was required. Download it here.
- Install JXplorer and run it. On the left top corner, click Connect to a DSA
- Use the following to connect to VMware Directory Service database:
- Host: FQDN of the Host
- Protocol: LDAP v3
- Base DN: dc=vsphere,dc=local
- This is the default SSO domain, vSphere.local
- If it’s not default, change it accordingly
- Level: User + Password
- User DN: cn=administrator,cn=users,dc=vsphere,dc=local
- Again, this is the default SSO domain. If it’s not default, change it accordingly
- Password: password for administrator@vsphere.local
- Once connected, expand out like the following:
- Search for the LicenseEntity where:
- Before deleting the problematic LicenseEntity, take snapshot on:
- 2 x vCenter Servers
- 2 x external PSCs
- Delete the LicenseEntity
- Once deleted, SSH to PSC and restart the following services in order:
- VMware Security Token Service
- vmware-stsd
- VMware Identity Management Service
- vmware-sts-idmd
- VMware License Service
- vmware-cis-license
- The actual commands below:
- When services are restarted, ensure the Asset is gone from the licensing page
- Now, you will be able to remove the license key
- Then, add the license key back asssigning it to the new VC
- Delete the snapshots
Hope this was helpful and feel free to leave a comment for any clarifiations 😀
Nice work! Ran into this issue today. One tip, if you dont feel like downloading JXplorer which requires a seperate JRE installed, I recommend LDAP Admin. It runs as a portable app as a single binary executable, so nice and lightweight. I keep a copy on a pendrive. Check it out here http://www.ldapadmin.org/download/ldapadmin.html
Hey mate, thanks a lot for the suggestion – LADP Admin looks better!