VMware Cloud Community
SimonRutherford
Contributor
Contributor

vSphere 6 Licensing Error

Hi

I'm not sure if this is the right place for this, but I'm drawing a blank as to how to fix an issue I've got in our vSphere 6u2 environment.

I tried to add a host into our existing deployment, whether I try and add it under an evaluation license or using one of our existing licenses I get the error in the c# client that:

Can not assign a license to Host <hostname>. Make sure the License Service is available.

If I repeat the same action in the webclient I get an error that simply states "Storage Error".

I've had a look in the logs under cis-license on the PSC and get the error:

com.vmware.cis.license.vpx.server.core.oldmanagement.LicenseAssignmentManagerException$StorageException: Unable to store license entity

...

Caused by: com.vmware.cis.license.vpx.server.core.oldmanagement.dao.licstorage.LicenseStorageException: com.vmware.cis.license.embedded.server.core.management.exception.StorageException: Unable to add asset: host-10202-516f80b0-a3dd-11e5-971a-0050568e7aae

I fired up JExplorer to have a look at the license table in the database and I can browse it, however, whenever I attempt to do anything to the data, I get an error saying that "MDB_MAP_FULL: Environment Mapsize Limit Reached".

A google search shows up next to nothing about the data.mdb in vSphere 6, other than how to back it up.  The general consensus in other LDAP deployments is that the mdb_env_set_mapsize needs to be amended to a larger size in order to rectify the error, however, I can find no information on how to proceed with doing that. 

Has anyone experienced this before?  If so, how was it resolved?  Or did you end up just having to recreate the SSO database (which seems a bit extreme!)

Thanks

Simon

0 Kudos
6 Replies
abhilashhb
VMware Employee
VMware Employee

I assume you are trying to assign license to the host from the vCenter server.

Are you using the embedded DB?

Abhilash B
LinkedIn : https://www.linkedin.com/in/abhilashhb/

0 Kudos
SimonRutherford
Contributor
Contributor

This actually occurs when I attempt to add a new host into vCenter.  Since posting, I have begun experiencing additional SSO related issues - when attempting to load the webclient, I am now getting an error saying:

A server error occurred.

[500] SSO error: Failed to import TenantConfiguration for [vsphere.local]: Failed to remove existing service provider registration.

0 Kudos
SimonRutherford
Contributor
Contributor

Looks a lot like what happened in this thread; unfortunately it doesn't look as though it was resolved.

https://communities.vmware.com/thread/535049?start=0&tstart=0

0 Kudos
TimaDPP
Contributor
Contributor

Hi Simon,

Did you manage to fix this? I'm having the same issue. No SSO issues yet but I'm hesitant to reboot the vCenter service... Can you tell me if and how you fixed it?

I'm going to log a ticket at VMware support for this.

Regards,

Tim

0 Kudos
ggtselingas
Contributor
Contributor

Same Problem. Been waiting for VM support for a week now. Does anyone have a clue what the problem is?

0 Kudos
ikiris
Enthusiast
Enthusiast

Check this KB, you may need to in crease the vmdir size from the default of 1GB

Logging in to vSphere Web Client fails with the error: Failed to remove existing service provider re...

I also wrote up a blog vCenter 6 – Create new licenses operation failed for the entity with the following error messages: s...

-Chris- http://www.twitter.com/ikiris http://blog.chrischua.net
0 Kudos