In vCenter vSphere Client 7.0.x, viewing Licensing Assets does not show all hosts.
search cancel

In vCenter vSphere Client 7.0.x, viewing Licensing Assets does not show all hosts.

book

Article ID: 316464

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

Symptoms:

  • In vSphere Client > Administration > Licensing > Assets > Hosts, it does not show more than 100 hosts in the list. 
  • Filtering list for specific hosts does not show the host
  • Licenses appear fine when viewing license directly on the host.
  • Within /var/log/vmware/cis-license/license.log you see the following error(s):
YYYY-MM-DDTHH:MM:SS invocation-vmomi-executor-1 operationID=#  INFO  server.core.management.vmomi.SystemManagementServiceMoImpl searchAssets:
AssetSearchSpecByProductFamilyNamesImpl
productFamilyNames: [VMware ESX Server]
maxResults: 200
offset: 100
YYYY-MM-DDTHH:MM:SS invocation-vmomi-executor-1 operationID=#  WARN  license.common.ft.impl.RetryStrategyImpl Received error while executing operation Repository
-Search. Will attempt to retry it. The error:
java.lang.IndexOutOfBoundsException: toIndex = 100
YYYY-MM-DDTHH:MM:SS invocation-vmomi-executor-1 operationID=#  WARN  license.common.ft.impl.RetryStrategyImpl Retrying operation Repository-Search not appropriate, the error is considered unrecoverable or expected.
YYYY-MM-DDTHH:MM:SS invocation-vmomi-executor-1 operationID=#  WARN  license.common.ft.impl.RetryOperationImpl Failed to execute operation: Repository-Search, after 0 retry attempts.
YYYY-MM-DDTHH:MM:SS invocation-vmomi-executor-1 operationID=# ERROR vim.vmomi.server.impl.InvocationTask Method invocation threw unexpected exception!
java.lang.IndexOutOfBoundsException: toIndex = 100
  • In the vsphere_client_virgo.log you see errors such as:
    YYYY-MM-DDTHH:MM:SS [ERROR] data-service-pool-95  # c.vmware.license.client.cis.adapter.BaseDataProviderAdapterImpl  Unable to retrieve licensing data:  com.vmware.vim.binding.vmodl.fault.SystemError: java.lang.IndexOutOfBoundsException

Environment

VMware vCenter Server 7.0.x

Cause

The pagination of the Assets table only displays up to 100 hosts, so if there are more than 100, the Index is out of bounds and thus prevents any hosts from 100 from displaying.

Resolution

There is no resolution at this time.

Workaround:
Modifying the Items per page before any attempt at viewing the results should allow the full amount of assets to be seen.

1. Login to Web client.
2. Go to Admin > Licensing > Assets > Hosts.
3. Before doing anything, change the "Items per page" to 200 or greater (instead of 100).
4. Then click the > next page button or do a filter search.
5. All of the hosts should be visible now.


Additional Information

Impact/Risks:
Unable to view licensing data for host assets when the number of hosts is greater than 100.