"Failed to add license key. Unable to determine if functionality is allowed/blocked."
[vcf_om,XXXXXXXXX,0f9e] [c.v.v.l.s.LicenseManagerServiceImpl,http-nio-127.0.0.1-7300-exec-5] LicenseKey XXXXX-XXXXX-XXXXX-XXXXX-XXXXX with productType ESXI validated successfully
[vcf_om,XXXXXXXXX,0f9e] [c.v.v.l.s.u.VsphereLicenseKeyUsagePopulator,http-nio-127.0.0.1-7300-exec-5] About to populate license usage from Psc Populator...
INFO [vcf_om,XXXXXXXXX,0f9e] [c.v.v.l.s.client.InventoryClient,http-nio-127.0.0.1-7300-exec-5] Getting Pscs from inventory.
ERROR [vcf_om,XXXXXXXXX,9efa] [c.v.v.f.t.i.FunctionalityToggleApiFilter,http-nio-127.0.0.1-7300-exec-7] Functionality blocked:
com.vmware.vcf.functionality.toggle.error.FunctionalityToggleException: Unable to determine if functionality is allowed/blocked.
at com.vmware.vcf.functionality.toggle.adapter.FunctionalityToggleAdapterImpl.isUnknownFunctionalitySupported(FunctionalityToggleAdapterImpl.java:108)
INFO [common,XXXXXXXXX,462a] [c.v.e.s.i.s.DomainInventoryServiceImpl,http-nio-127.0.0.1-7100-exec-82378] Get all Domains
ERROR [common,XXXXXXXXX,77b7] [c.v.v.r.s.util.LicensingStateUtil,http-nio-127.0.0.1-7100-exec-82373] Failed to get licensing state. Response code 0
null
ERROR [common,XXXXXXXXX,77b7] [c.v.v.r.r.a.c.v.ResourceFunctionalitiesController,http-nio-127.0.0.1-7100-exec-82373] Exception occurred when retrieving the resource functionalities.
com.vmware.evo.sddc.common.core.error.InvalidStateException: Error encountered while fetching system licensing state.
VMware Cloud Foundation 5.1.1
This is due to a timeout issue within the commonsvcs application within SDDC manager.
mkdir /home/vcf/csbackup
cp /etc/vmware/vcf/commonsvcs/application.properties /home/vcf/csbackup/
echo "license.service.api.client.timeout.millis=60000" >> /etc/vmware/vcf/commonsvcs/application.properties
systemctl restart commonsvcs