License check: failed to fetch licenses from vCenter xxxxxxxxxx.xxxxxxxx.in as its license service may be down
search cancel

License check: failed to fetch licenses from vCenter xxxxxxxxxx.xxxxxxxx.in as its license service may be down

book

Article ID: 397294

calendar_today

Updated On:

Products

VMware SDDC Manager

Issue/Introduction

#Issue with the Licensing tab, where error/alarm is continuously popping as-
License check: failed to fetch licenses from vCenter xxxxxxxxxx.xxxxxxxx.in as its license service may be down

 

....

#Error will trigger within seconds but will not impact any other operations on the SDDC Manager 

Environment

VMware SDDC Manager 5.2.x

Cause

The domainId used in the API is of domain xxxxxxxx from the above screenshot, but the API is returning a wrong PSC xxxxxxxx.xxxxxxxx.in. The right psc for xxxxxxxx is xxxxxxxx.xxxxxxxx.in. Since it is picking a wrong PSC to connect to fetch licenses, the authentication is failing.

The issue occurs, when there are ELM+isolated WLD and having same sso domain name.

Resolution

Issue is addressed and resolved in SDDC 9.0.0.0

For lower versions (5.x), please try the below workaround so the master PSC (xxxxxxx) in the ELM ring comes in the top of the list and issue may resolve-

1. SSH to sddc manager
2. Login to postgres(psql -U postgres -h localhost)
3. Connect to platform database (\c platform;)
4. Update modification time for AxxxxxxA.xxxxxxxx.in (update psc set modification_time='17389xxxx8303' where id='b2xxx45f-xxxx-xxxx-xxxx-920xxxx47fb3';)
5. Update modification time for AxxxxxB.xxxxxxxx.in (update psc set modification_time='17390xxxx4335' where id='cexxx751-xxxx-xxxx-xxxx-02e4xxxx91cc';)
6. select * from psc; -> Ensure the xxxxxxxx entry is listed on top and reload the UI to see if the issue disappears.