In VMware Cloud Foundation Operations (VCF Ops), assigning or replacing a vCenter Server license fails. The user interface displays the following error message: "Licenses could not be assigned to vCenters."
The vcf-licensing-plugin.log file records timeout and null pointer exceptions similar to the following:
ERROR [com.vmware.vrops.licensing.vcf.task.TaskExecutorBase.executeNMPAsyncTaskWithTimeout] - Timeout waiting for async NMP task <REDACTED_SECRETS> from adapter 68 ... after 290 SECONDS
ERROR [com.vmware.vrops.licensing.vcf.mapper.VcAssignEntitlementStatusMapper.fromAssignEntitlementSpec] - Failed to assign entitlement ... to vc ... (<REDACTED_HOSTNAME>): Timeout waiting for async NMP task ... after 290 SECONDS
ERROR [com.vmware.vrops.licensing.vcf.server.VcfLicensingServer.storeVcfVcAssetLicenseInfo] - Failed to update licensing info for vCenter ... java.lang.NullPointerException: productEditionKey is marked non-null but is nullVMware Cloud Foundation Operations 9.x
vCenter Server 9.x
The vCenter adapter collection fails because a Cloud Proxy (CP) failed its automatic upgrade process. This underlying communication breakdown causes the asynchronous NMP tasks responsible for license assignment to time out.
Identify the Cloud Proxy experiencing the automatic upgrade failure within the VCF Operations interface.
Perform a manual upgrade of the affected Cloud Proxy to bring it to the appropriate version matching the cluster.
Verify that the vCenter adapter status returns to a healthy state and collection completes successfully.
Retry the vCenter license assignment operation from the VCF Operations interface.