Unable to create a VM placement policy on Cloud Director
search cancel

Unable to create a VM placement policy on Cloud Director

book

Article ID: 325691

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

Symptoms:

  • During creation of a VM placement policy, the UI fails to display the VM Groups within the datacenter hierarchy display menu.
  • vApps display a "class java.lang.NullPointerException" error when opening the vApp.
  • Within the log file /opt/vmware/vcloud-director/logs/vcloud-container-debug.log you observe the following error:
2024-02-01 18:47:52,319 | ERROR    | pc-activity-pool-6        | EventManagerImpl               | Listener failed to process event=VimUpdateEvent(modify,VirtualMachine,[vcId=1161a211-####-####-####-##########, moref=vm-123456]) | activity=(com.vmware.vcloud.vimproxy.internal.impl.PCEventProcessingActivity,urn:uuid:03f75f03-####-####-####-##########)
java.lang.NullPointerException
at com.vmware.vcloud.api.presentation.entity.rcl.VmPvdcComputePolicySpec.equals(VmPvdcComputePolicySpec.java:113)
at com.google.common.base.Objects.equal(Objects.java:52)

Environment

VMware Cloud Director 10.5.1.x

Cause

This issue can occur if a policy in the pvdc_compute_policy table of the database has incomplete information within the policy_detail column.

This has been observed in Cloud Director 10.5.1.x

Resolution

For assistance, contact technical support and note this Knowledge Article ID (325691) in the problem description. For more information, see How to Submit a Support Request