Error: "LCMVSPHERECONFIG100002" when upgrading VCF Operations or Aria Operations for Logs at Stage 1
search cancel

Error: "LCMVSPHERECONFIG100002" when upgrading VCF Operations or Aria Operations for Logs at Stage 1

book

Article ID: 437727

calendar_today

Updated On:

Products

VCF Operations

Issue/Introduction

  1. After successful inventory sync of VCF Operations and VCF Operations for Logs, the upgrade of  VCF Operations for Logs from 9.0.0 to 9.0.2 fails at stage 1 in Lifecycle/Fleet Management with the following error:

         Error Code: LCMVSPHERECONFIG100002
 
         The host name or host url provided is wrong.
 
         Invalid vCenter Details: vCenter Host not found. Trigger Inventory Sync and try again.

     2. On the Fleet Manager appliance, in the /var/log/vrlcm/vmware_vrlcm-*.log, you see the following log entries

   "messageId" : "LCMVSPHERECONFIG100002",
  "message" : "The host name or host url provided is wrong.",
  "eventId" : “EVENTIID”,
  "retry" : true,
  "exceptionMessage" : "Invalid vCenter Details: vCenter Host not found. Trigger Inventory Sync and try again",
  "exceptionStackTrace" : "com.vmware.vrealize.lcm.common.exception.EngineException: Invalid vCenter Details: vCenter Host not found. Trigger Inventory Sync and try again\n\tat com.vmware.vrealize.lcm.plugin.core.vsphere.tasks.ShutdownGuestOSTask.execute(ShutdownGuestOSTask.java:79)\n\tat com.vmware.vrealize.lcm.platform.automata.service.Task.retry(Task.java:158)\n\tat com.vmware.vrealize.lcm.automata.core.TaskThread.run(TaskThread.java:60)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)\n\tat java.base/java.lang.Thread.run(Unknown Source)\n",
  "localizedMessageId" : "VSPHERE_INVALIDVC_ERROR", 

Environment

VCF Operations 9.x

VCF Operations for Logs 9.x

Cause

When the upgrade is going through the workflow of ShutdownGuestOSTask.java script, the VSphereConstants.VC_HOST_NAME parameter is null at line 77, causing the upgrade workflow to fail at "com.vmware.vrealize.lcm.plugin.core.vsphere.tasks.ShutdownGuestOSTask.execute(ShutdownGuestOSTask.java:79)".  

Resolution

Follow these steps to resolve or work around the issue:

1. Make sure DNS settings are configured properly for VCF Operations for Logs, VCF Operations, and Fleet Manager by referring to DNS configuration requirements for VCF Operations or Aria Operations for Logs.

2. If the upgrade still fails after the above step. Proceed with canceling the failed task by following Cancel long-running Fleet Management lifecycle tasks.

3. Retry the upgrade.