"vRLCM some request is in progress. wait for the request to get completed. Progress of request can be tracked in request page"
Error Code: LCMCOMMON800020 VMware Aria Suite Lifecycle upgrade pre-validation failed. VMware Aria Suite Lifecycle upgrade pre-validation failed. Check logs for more details. com.vmware.vrealize.lcm.common.exception.LcmException: VMware Aria Suite Lifecycle upgrade pre-validation failed. Check logs for more details. at com.vmware.vrealize.lcm.drivers.commonplugin.task.LcmUpgradePrecheckTask.execute(LcmUpgradePrecheckTask.java:82) at com.vmware.vrealize.lcm.automata.core.TaskThread.run(TaskThread.java:63) 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)
The issue can occur when Aria Suite lifecycle Manager has difficulties communicating with a managed environment which can result in requests becoming stuck in progress indefinitely.
To resolve the issue perform the steps:
1. Snapshot the Aria Suite lifecycle Manager appliance as a best practice precaution.
2. SSH to the Aria Suite lifecycle Manager appliance as the root user
3.Connect to the postgres database:
su - postgres
cd /opt/vmware/vpostgres/11/bin/
./psql -d vrlcm
4. To clear the stuck requests execute the commands:
delete from vm_rs_request where requestname=‘lcmgenricsetting’;
delete from vm_engine_execution_request where enginestatus=‘INITIATED’;
delete from vm_engine_statemachine_instance where status=‘CREATED’;
delete from vm_engine_event where status=‘IN_PROGRESS’;
delete from vm_rs_request where state = 'INPROGRESS';
VACUUM FULL verbose analyze vm_rs_request;
5. Restart the lifecycle Manager services:
systemctl restart vrlcm-server.service
6. Run the upgrade Prechecker again