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
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.
This is fixed in vRNI version 6.8 and above.