During creation of a VM placement policy, the UI fails to display the VM Groups within the datacenter hierarchy display menu.
"class java.lang.NullPointerException"
vApps/VMs display a "class java.lang.NullPointerException
" error when opening the their properties.
Within the log file /opt/vmware/vcloud-director/logs/vcloud-container-debug.log
you observe the following errors:
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)
Task fail with errors similar to the following:
The operation failed because no suitable resource was found. Out of 2 candidate hubs: 1 hubs eliminated because: Does not contain required storage container(s): [[moref://########-####-####-####-########/Datastore#datastore-####]] Rejected hubs: resgroup-#### 1 hubs eliminated because: Only contains rejected VM Groups(s): [[VM Group Name]] Rejected hubs: resgroup-####- PlacementException NO_FEASIBLE_PLACEMENT_SOLUTION
VMware Cloud Director 10.5.1.x
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
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