Deployments from a vCenter Content Library that take longer than 80 minutes fail
search cancel

Deployments from a vCenter Content Library that take longer than 80 minutes fail

book

Article ID: 314821

calendar_today

Updated On:

Products

VMware Aria Suite

Issue/Introduction

Symptoms:
The vSphere environment may be under contention and running slowly.
The request operation is sent to the vSphere adapter and fails more than 80 minutes later with an error similar to:
 
YYYY-MM-DDTHH:MM:SS.SSSZ [priority='WARN' thread='thread-io' user='' org='' context='' parent='' token=''] c.v.p.c.model.adapters.util.TaskManager.log:448 - Patching task http://provisioning-service.<HOSTNAME>:8282/provisioning/requests/counter-subtasks/id1did1d-1did-id1d-1did-ididid1d1d1d to FAILURE: Provisioning operation failed. java.lang.NullPointerException. FAILED ERROR RESPONSE: {
   "stage": "FAILED",
   "isDirect": false,
   "failure": {
     "message": "Provisioning operation failed. java.lang.NullPointerException",
     "stackTrace": [
       "com.vmware.photon.controller.model.adapters.vsphere.InstanceClient.getFirstPciController(InstanceClient.java:2733)",
       "com.vmware.photon.controller.model.adapters.vsphere.InstanceClient.configureCloneNics(InstanceClient.java:2165)",
       "com.vmware.photon.controller.model.adapters.vsphere.InstanceClient.customizeAfterClone(InstanceClient.java:902)",
       "com.vmware.photon.controller.model.adapters.vsphere.InstanceClient.createInstanceFromLibraryItem(InstanceClient.java:3668)",
       "com.vmware.photon.controller.model.adapters.vsphere.VSphereAdapterInstanceService.lambda$handleCreateInstance$2(VSphereAdapterInstanceService.java:163)",
       "com.vmware.photon.controller.model.adapters.vsphere.VSphereIOThreadPool.lambda$executeCallback$1(VSphereIOThreadPool.java:182)",
       "java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)",
       "java.util.concurrent.FutureTask.run(FutureTask.java:266)",
       "java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)",
       "java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)",
       "java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)",
       "java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)",
       "java.lang.Thread.run(Thread.java:748)"
     ],
     "statusCode": 400,
     "errorCode": 400015,
     "serverErrorId": "id1did1d-1did-id1d-1did-ididid1d1d1d",
     "documentKind": "com:vmware:xenon:common:ServiceErrorResponse"
   }
 }


Environment

VMware vRealize Automation 8.0.x

Cause

This is caused by the API session on vCenter expiring prior to the completion of the deployment operation.

Resolution

This is a known issue that is resolved in vRealize Automation 8.1 and later.