Error: Incomplete Collection due to failure at stage:SRM
search cancel

Error: Incomplete Collection due to failure at stage:SRM

book

Article ID: 401629

calendar_today

Updated On:

Products

VMware Usage Meter

Issue/Introduction

  • After upgrading Usage Meter to version 9.0, you see 'Incomplete Collection due to failure at stage:SRM'. 
  • On the Notifications page on the UI, you see:

Partial VC collection failure at stage: SRM. Duplicate key xxx-vcenter-fqdn (attempted merging values com.vmware.vimxx.LicenseAssignmentManagerLicenseAssignment@xxxxx and com.vmware.vimxx.LicenseAssignmentManagerLicenseAssignment@xxxxx)

  • In the vcenter-collection-error.log, you see:

ERROR --- [collector-main-thread] c.vmware.um.collector.CollectionHelper   : Status (COLLECT_API_ERR) for vCenter server : Partial collection failure: SRM.
ERROR --- [collector-main-thread] com.vmware.um.vccollector.VCCollector    : SRM stage raised exception java.lang.IllegalStateException: Duplicate key <vcenter-fqdn> (attempted merging values com.vmware.vimxx.LicenseAssignmentManagerLicenseAssignment@xxxxx and com.vmware.vimxx.LicenseAssignmentManagerLicenseAssignment@xxxx)
java.lang.IllegalStateException: Duplicate key <vcenter fqdn> (attempted merging values com.vmware.vimxx.LicenseAssignmentManagerLicenseAssignment@xxxxx and com.vmware.vimxx.LicenseAssignmentManagerLicenseAssignment@xxxxx)
        at java.base/java.util.stream.Collectors.duplicateKeyException(Unknown Source)
        at java.base/java.util.stream.Collectors.lambda$uniqKeysMapAccumulator$1(Unknown Source)
        at java.base/java.util.stream.ReduceOps$3ReducingSink.accept(Unknown Source)

Environment

VCF Usage Meter 9.x 

Cause

In VCF Usage Meter 9.x, the assets name under the  Administration > Licensing > Licenses has to be unique.

Resolution

To resolve the issue please follow the below steps:

1.    Login to the vCenter 
2.    Under the Administration > Licensing > Licenses please check the Assets TABLE
3.    Ensure all the Registered Assets have unique name
4.    If the existing license settings are not unique, please refer to the How to Configure License Settings for Your vCenter Server' guide for instructions on modification