Triggering an inventory sync or patching results in error code LCMVIDMIMPORT0019.
This may follow a change in the default domain tenant address of vIDM.
Logs in /var/log/vrlcm/vmware_vrlcm.log show:
com.vmware.vrealize.lcm.common.exception.LcmException: Failed to get admin token:
at com.vmware.vrealize.lcm.vidm.driver.rest.util.VidmServerRestUtil.loginLocalAdmin(VidmServerRestUtil.java:240)
at com.vmware.vrealize.lcm.vidm.driver.helpers.VidmImportUtil.getPostInstallDetails(VidmImportUtil.java:271)
at com.vmware.vrealize.lcm.vidm.core.task.VidmPostImportEnvironmentTask.execute(VidmPostImportEnvironmentTask.java:101)
at com.vmware.vrealize.lcm.automata.core.TaskThread.run(TaskThread.java:62)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
Manual attempts to reset the vIDM admin password via CLI fail with
Exception encountered during context initialization - canceling refresh attempt:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liquibase' defined in class path resource [com/vmware/vidm/accesscontrol/db/DbDataStoreAutoConfiguration.class]:
Invocation of init method failed; nested exception is liquibase.exception.LockException: Could not acquire change log lock.
A stale Liquibase lock exists on the vIDM database, specifically within the saas.DATABASECHANGELOGLOCK table. This prevents the Lifecycle Manager from obtaining the necessary admin token to complete synchronization or patching tasks.
In order to resolve this follow the below steps :
runtime-config.properties (located in /usr/local/horizon/conf).gateway.hostname and configurator.hostname match.gateway.hostname to the Load Balancer FQDN and configurator.hostname to the individual node FQDN.saas.DATABASECHANGELOGLOCK table as detailed in .