Symptoms:
- VMware Identity manager is deployed in a cluster. Attempts to leverage the Aria Suite Lifecyle onboard api call fail if the primary Identity manager node has been changed since initial deployment.
- The /var/log/vrlcm/vmware_vrlcm.log file contains an error similar to:
2022-10-20 10:12:20.103 INFO [pool-3-thread-33] c.v.v.l.v.c.t.t.VidmOnboardTenantTask - -- Starting :: vIDM Add tenant Task
2022-10-20 10:12:20.108 INFO [scheduling-1] c.v.v.l.c.u.EventExecutionTelemetryUtil - -- Stop Instrumenting EventMetadata.
2022-10-20 10:12:20.152 ERROR [pool-3-thread-33] c.v.v.l.v.c.t.t.VidmOnboardTenantTask - -- Failed to login to vIDM vIDMServer{host=<FQDN>, tenant=null}.
com.vmware.vrealize.lcm.common.exception.LcmException: Failed to get admin token: Tenant does not exist.
at com.vmware.vrealize.lcm.vidm.driver.rest.util.VidmServerRestUtil.loginLocalAdmin(VidmServerRestUtil.java:237) ~[vmlcm-vidmplugin-driver-8.10.0-SNAPSHOT.jar!/:?]
at com.vmware.vrealize.lcm.vidm.core.task.tenant.VidmOnboardTenantTask.execute(VidmOnboardTenantTask.java:129) [vmlcm-vidmplugin-core-8.10.0-SNAPSHOT.jar!/:?]
at com.vmware.vrealize.lcm.automata.core.TaskThread.run(TaskThread.java:63) [vmlcm-engineservice-core-8.10.0-SNAPSHOT.jar!/:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:?]
at java.lang.Thread.run(Unknown Source) [?:?]
2022-10-20 10:12:20.154 INFO [pool-3-thread-33] c.v.v.l.p.a.s.Task - -- Injecting task failure event. Error Code : 'LCMVIDM70000', Retry : 'true', Causing Properties : '{ CAUSE :: hostName === vidmTenant === vidmAdminUser === vidmAdminPassword YXYXYXYX }'
com.vmware.vrealize.lcm.common.exception.LcmException: Failed to get admin token: Tenant does not exist.
at com.vmware.vrealize.lcm.vidm.driver.rest.util.VidmServerRestUtil.loginLocalAdmin(VidmServerRestUtil.java:237) ~[vmlcm-vidmplugin-driver-8.10.0-SNAPSHOT.jar!/:?]
at com.vmware.vrealize.lcm.vidm.core.task.tenant.VidmOnboardTenantTask.execute(VidmOnboardTenantTask.java:129) [vmlcm-vidmplugin-core-8.10.0-SNAPSHOT.jar!/:?]
at com.vmware.vrealize.lcm.automata.core.TaskThread.run(TaskThread.java:63) [vmlcm-engineservice-core-8.10.0-SNAPSHOT.jar!/:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:?]
at java.lang.Thread.run(Unknown Source) [?:?]