Additional customer descriptions include:
This issue occurs due to a known limitation in the vSphere licensing management interface. When a vSAN license is applied to a cluster, it can create an entry in the LDAP directory service (vmdir) that cannot be removed through the standard vSphere Client interface, even if vSAN is not in use on that cluster.
The license information is stored in the VMware Directory Service (vmdir) database, and in some cases, the UI-based license management tools are unable to properly release or change the license assignment due to internal referential constraints.
During vSAN cluster decommissioning or Enhanced Linked Mode configuration changes, cluster-level license asset entities persist in the vCenter LDAP database after their associated cluster objects have been removed. These licensing footprint records maintain the asset-to-license relationship data in the LDAP licensing service, but become orphaned when the cluster they reference no longer exists. Standard license removal operations fail because the system cannot process removal requests for asset entities that reference non-existent cluster objects, resulting in invalid input errors when attempting MOB-based removal or missing UI removal options.
Note: Please use this procedure only if the license will not remove via the normal vCenter user interface, nor by the vCenter MOB.
To resolve this issue, you need to manually remove the license entry from the LDAP directory using the ldapdelete
command-line utility on the vCenter Server:
First, identify the license key that needs to be removed through the vSphere Client:
In the vSphere Client, navigate to Administration > Licensing > Assets
Locate the cluster with the problematic vSAN license
Note the license key and license ID (if visible) that needs to be removed
Create a powered-off snapshot of the vCenter Server VM before proceeding. If you have linked vCenters, create snapshots of them as well.
Connect to the vCenter Server VM using SSH and log in as the root user.
Use the ldapdelete
command to remove the license entry:
/opt/likewise/bin/ldapdelete -h localhost -D "cn=Administrator,cn=Users,dc=vsphere,dc=local" -W "cn=LicenseEntity_UUID,cn=LicenseService,cn=services,dc=vsphere,dc=local" -v
Note: Replace "UUID" with the actual license ID of the vSAN license. Do not remove the character string "LicenseEntity_". Also, The domain components (dc=vsphere,dc=local) might be different in your environment, so make sure to use the correct domain components as used in your Administrator account login (i.e., [email protected]).
Example:
/opt/likewise/bin/ldapdelete -h localhost -D "cn=Administrator,cn=Users,dc=mycompany,dc=local" -W "cn=LicenseEntity_abcdefg12345,cn=LicenseService,cn=services,dc=mycompany,dc=local" -v
When prompted, enter the [email protected] password.
Log out of the vSphere Client and log back in to see the changes reflected in the licensing section.
If you have linked vCenters, you only need to run the command on one vCenter. The changes will replicate to other linked vCenters within 2-3 minutes.
If the above steps are unsuccessful due to, for example, the cluster or license information being unavailable in the vSphere Client, the following method can be used to find the necessary information manually from an ldif export:
Prerequisites:
1. Create simultaneous offline (powered off) snapshots of all vCenter Servers in your Enhanced Linked Mode environment.
2. Verify you have administrator access to the vCenter Server.
Steps:
1. Log in to the vCenter Server Appliance shell as root.
2. Generate an LDAP export to identify the problematic entity:
/opt/likewise/bin/ldapsearch -b "dc=vsphere,dc=local" -s sub -D "cn=Administrator,cn=Users,dc=vsphere,dc=local" -W > /tmp/$(hostname)_"`date +"%d-%m-%Y"`".ldif
3. Search the .ldif file for licensing-related entries using identifiers from your error message (such as entity IDs, license keys, or cluster names).
4. Identify the full Distinguished Name (DN) of the problematic entity. Common patterns include:
- Asset entities: cn=AssetEntity_<identifier>,cn=LicenseService,cn=services,dc=vsphere,dc=local
- License entities: cn=<license-key>,cn=LicenseService,cn=services,dc=vsphere,dc=local
- Other licensing objects under the LicenseService branch
5. Remove the identified entity using ldapdelete with the exact DN found in step 4:
/opt/likewise/bin/ldapdelete -h localhost -D "cn=Administrator,cn=Users,dc=vsphere,dc=local" -W "<full-DN-from-step-4>" -v
6. If the command fails, try moving the -W
parameter to the end:
/opt/likewise/bin/ldapdelete -h localhost -D "cn=Administrator,cn=Users,dc=vsphere,dc=local" "<full-DN-from-step-4>" -v -W
7. Verify the entity has been removed by checking the vSphere Client licensing interface.
8. If successful, remove the snapshots created in the prerequisites.