2023-01-17T06:36:58.091+0000 ERROR [vcf_dm,d4f40a595d7f454d,c69f] [c.v.v.c.c.v1.ClusterController,http-nio-127.0.0.1-7200-exec-2] Failed to remove cluster
java.lang.NullPointerException: vSAN Cluster moid cannot be null or empty
at java.base/java.util.Objects.requireNonNull(Objects.java:347)
2023-01-17T06:36:58.095+0000 DEBUG [vcf_dm,d4f40a595d7f454d,c69f] [c.v.e.s.e.h.LocalizableRuntimeExceptionHandler,http-nio-127.0.0.1-7200-exec-2] Processing localizable exception InternalServerError
2023-01-17T06:36:58.096+0000 ERROR [vcf_dm,d4f40a595d7f454d,c69f] [c.v.e.s.e.h.LocalizableRuntimeExceptionHandler,http-nio-127.0.0.1-7200-exec-2] [LDUBNE] PUBLIC_INTERNAL_SERVER_ERROR InternalServerError
. . Caused by: java.lang.NullPointerException: vSAN Cluster moid cannot be null or empty at java.base/java.util.Objects.requireNonNull(Objects.java:347) at org.apache.commons.lang3.Validate.notBlank(Validate.java:439) at com.vmware.evo.sddc.common.client.vmware.vsan.VsanManagerBase.getVsanDatastores(VsanManagerBase.java:2784) at com.vmware.evo.sddc.common.client.vmware.vsan.VsanManagerBase.isHciMeshEnabled(VsanManagerBase.java:2628) at com.vmware.evo.sddc.common.services.InventoryUtil.isHciMeshEnabled(InventoryUtil.java:167)
To workaround the issue, please follow the below mentioned steps:
root@sddc-manager [ /home/vcf ]# psql -U postgres -h localhost psql (10.20) Type "help" for help.
postgres=# \c platform; You are now connected to database "platform" as user "postgres".
platform=# select name, id, source_id from cluster where name = 'Cluster-2'; name | id | source_id ---------------+--------------------------------------+-------------- SDDC-Cluster1 | b6b7f940-df92-4d44-8855-f256eb0d3c2c | (1 row)
The above records show us null entry for source_id.
platform=# update cluster set source_id='<mob-value>' where name = '<Errored cluster name>';
In our example, we are trying to update SDDC-Cluster1 with source_id as it was null mentioned in step 2 here.
platform=# update cluster set source_id='domain-c8' where name = 'SDDC-Cluster1';