Unable to add License key for vRNI in vRSLCM
search cancel

Unable to add License key for vRNI in vRSLCM

book

Article ID: 322691

calendar_today

Updated On:

Products

VMware Aria Suite

Issue/Introduction

Symptoms:

When trying to add the licenses to vRNI from the vRSLCM fails with the error "UNKNOWN_SYSTEM_ERROR" . When trying to add from vRNI UI it did work.

The error details as seen vRSLCM log -

 

2023-03-27 10:40:21.321 INFO [pool-3-thread-14] c.v.v.l.p.c.v.d.h.VRNIUtils - -- VRNI REST call status code:200 output message :OK output:{"status":true,"statusCode":{"code":0,"codeStr":"OK"},"message":"L

icense Key is OK","data":{"productName": "VMware vRealize Network Insight","evaluation": false,"licenseKey": "XXXX-XXXX-XXXX-XXXX","numberOfSockets": 176,"serviceTag": "CXXXXXXXXXX","expired": false,"d

eploymentType": "onprem","capacityType": "CPU","edition": "ENTERPRISE","suspended": false,"deleted": false,"invalid": false,"entitlements": [{"capacityType": "CPU","count": 176},{"capacityType": "DEVICE","c

ount": 176}]}}

2023-03-27 10:40:21.327 INFO [pool-3-thread-14] c.v.v.l.p.c.v.d.h.VRNIUtils - -- Licensing validation successfully.

2023-03-27 10:40:21.327 INFO [pool-3-thread-14] c.v.v.l.p.c.v.t.r.vRNILicenseReplaceTask - -- License validation successfully.com.vmware.vrealize.lcm.plugin.core.vrni.common.model.VRNILicenseResponse$Data

@732d0d16

2023-03-27 10:40:21.328 ERROR [pool-3-thread-14] c.v.v.l.a.c.TaskThread - -- Exception while running task : Exception while running task :

java.lang.NullPointerException: null

        at com.vmware.vrealize.lcm.plugin.core.vrni.task.replacelicense.VrniChangeLicenseTask.execute(VrniChangeLicenseTask.java:158) ~[vmlcm-vrniplugin-core-8.10.0-SNAPSHOT.jar!/:?]

        at com.vmware.vrealize.lcm.automata.core.TaskThread.run(TaskThread.java:63) [vmlcm-engineservice-core-8.10.0-SNAPSHOT.jar!/:?]

        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:?]

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:?]

        at java.lang.Thread.run(Unknown Source) [?:?]

2023-03-27 10:40:21.328 INFO [pool-3-thread-14] c.v.v.l.p.a.s.Task - -- Injecting task failure event. Error Code : 'UNKNOWN_SYSTEM_ERROR', Retry : 'true', Causing Properties : '{ CAUSE :: }'

java.lang.NullPointerException: null

        at com.vmware.vrealize.lcm.plugin.core.vrni.task.replacelicense.VrniChangeLicenseTask.execute(VrniChangeLicenseTask.java:158) ~[vmlcm-vrniplugin-core-8.10.0-SNAPSHOT.jar!/:?]

        at com.vmware.vrealize.lcm.automata.core.TaskThread.run(TaskThread.java:63) [vmlcm-engineservice-core-8.10.0-SNAPSHOT.jar!/:?]

        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:?]

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:?]

        at java.lang.Thread.run(Unknown Source) [?:?]

2023-03-27 10:40:21.904 INFO [scheduling-1] c.v.v.l.r.c.RequestProcessor - -- Updating the Environment request status to FAILED for request ID : b034xxxx-xxxx-xxxx-0000-yyyyyyyyyyyy with request type : REPLACE_PRODUCT_LICENSE.

2023-03-27 10:40:36.757 INFO [http-nio-8080-exec-8] c.v.v.l.s.n.s.NotificationServiceImpl - -- Authentication object is not null


Environment

VMware vRealize Suite Lifecycle Manager 8.x

Cause

Reason for Failure is that vRSLCM expects license data which does not existing in the response coming from vRNI.There's a change made to vRSLCM 8.10 to support both core and cpu based licenses. Version above vRNI 6.8 return the response in expected format, but the versions below 6.7 does not. Hence the exception is seen in the logs.

Resolution

This is fixed in vRNI version 6.8 and above.


Workaround:
  • Replace the license from vRNI UI and then perform inventory sync in vRSLCM. 
Replace License in vRealize Network Insight:
  • You can follow below steps mentioned in the vRealize network Insight document
    • https://docs.vmware.com/en/VMware-vRealize-Network-Insight/6.9/com.vmware.vrni.using.doc/GUID-D3D38F55-D369-4AEF-B0F1-D888847D2803.html
Performing Inventory Sync in vRSLCM:
  1. Log in to vRealize Suite Lifecycle Manager.
  2. Click on the environments tab.
  3. You can sync your inventories for each product and for all the products across all environments.
  4. Select the vRealize Suite component you want to synchronize.
  5. You can click the View Details of the product and then click the Trigger Inventory Sync. This would trigger the inventory sync for the required product alone.