Close

VCF license check

In this article, I will guide you through how to resolve the License check: There are no assigned licenses found for this product in VCF

after some digging and reviewing logs I came across following error messages in SDDC

there are such errors in /log/vmware/vcf/operationsmanager/operationsmanager.log,

2024-04-22T06:03:05.608+0000 ERROR [vcf_om,3f929f1ad5984d9e,1dcf] [c.v.v.l.s.u.ResourceLicensingPopulator,om-exec-3] License assignment not found for resource Hostname.local

Issue Clarification:

 License warning present in SDDC manager

Issue Verification:

 ‘There are no assigned licenses found for this product’

Cause Identification:

 Output from command

grep -i "License assignment not found for resource" operationsmanager.log | awk '{print $11}' | sort | uniq -c | less -iN

FQDN of hosts in SDDC are Uppercase

      1       HOSTName1.ad
      2       HOSTName2.ad
      3       HOSTName3.ad
      4       HOSTName4.ad
      5       HOSTName5.ad
      6       HOSTName6.ad

FQDN of hosts in vCenter are lowercase

Cause Justification:

 VCF does not differentiate between uppercase and lowercase letters in the name. Consequently, if there is a case difference between the hostnames in VCF and those in vCenter, the license status for the hosts may not be fetched.
See KB https://knowledge.broadcom.com/external/article/375501
 

Solution Recommendation:

Rename the hosts in SDDC manager to match those in vCenter

How to:

SSH to SDDC/VCF manager and connect to database and become root

psql -U postgres -h localhost -d platform
update host set hostname='lowercasehostname.ad' where hostname='UPERCASEHOSTNAME.ad';

Repeat for remaining hosts.

Solution Justification:

 License warning no longer observed

You have to update hostname to lowercase in the following files as well

/root/.ssh/known_hosts

/home/vcf/.ssh/known_hosts

/etc/vmware/vcf/commonsvcs/known_hosts

Note: This command will restart all SDDC Manager services:

/opt/vmware/vcf/operationsmanager/scripts/cli/sddcmanager_restart_services.sh

I hope this article has been informative. thank you for reading.