Internal Server Error for VM when Modifying NIC, Description, or Compute
search cancel

Internal Server Error for VM when Modifying NIC, Description, or Compute

book

Article ID: 376547

calendar_today

Updated On:

Products

VMware

Issue/Introduction

  • Cannot add a hard disk in Cloud Director
  • Internal Server Error seen on VM page when changing VM
  • Errors in log vcloud-container-info.log

2024-08-29 13:56:25,352 | ERROR    | task-service-activity-pool-752 | FutureUtil                     | Failed to relocate VM to a Hub | requestId=<Request ID>,request=PUT https://[VCD URL]/api/vApp/vm-xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx/networkConnectionSection/,requestTime=xxxxxxxxxxxx,remoteAddress=xx.xxx.xxx.xxx,userAgent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 ...,accept=application/*+xml;version 38.0.0-alpha vcd=xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx,task=<Task ID> activity=(com.vmware.vcloud.backendbase.management.system.TaskActivity,urn:uuid:xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx)
java.lang.NullPointerException
        at com.vmware.ssdc.backend.services.impl.RelocateVmActivity$SaveVmGroupInfoPhase.findSourceVrpIdOfVm(RelocateVmActivity.java:519)
        at com.vmware.ssdc.backend.services.impl.RelocateVmActivity$SaveVmGroupInfoPhase.invoke(RelocateVmActivity.java:433)
        at com.vmware.vcloud.activity.executors.ActivityRunner.runPhase(ActivityRunner.java:175)
        at com.vmware.vcloud.activity.executors.ActivityRunner.run(ActivityRunner.java:112)
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:829)

 

Environment

Cloud Director 10.5.x

Cause

This issue occurs when Cloud Director performs a Resource Pool lookup for the VM attempting to be edited.

If the VM Resource Pool in vCenter does not match the OrgVDC Resource Pool in Cloud Director, you will get the error above.

Resolution

Move the VM in vCenter to the correct Resource Pool to match the Name of the VM's OrgVDC.