Unable to mount datastores to additional ESXi hosts
search cancel

Unable to mount datastores to additional ESXi hosts

book

Article ID: 410570

calendar_today

Updated On:

Products

VMware Cloud Foundation VMware vCenter Server

Issue/Introduction

  • The datastores cannot be mounted to additional ESXi hosts
  • In VCF environment ,the list of hosts in "Hosts accessibility" remains empty when trying to mount datastore on multiple hosts.
  • in vCenter, new datastore creation at datacenter level displays "No items found"
  • The dataservice.log in the vCenter contains output similar to the following.

/var/log/vmware/vsphere-ui/logs/dataservice.log
YYYY-MM-DDTHH:MM:SS] [ERROR] data-service-pool-786 70184556 108332 200298 ServicePropertyProviderAdapter [queryId: q-352362:h5ui-getProperties:urn:vmomi:Datacenter:datacenter-2]Error when fetching property   {storage:availableHostsForCreateDatastore} from property provider {class com.vmware.vsphere.client.h5.storage.impl.StoragePropertyProvider} java.lang.NullPointerException: null
 at com.vmware.vsphere.client.h5.storage.util.H5StorageUtil.filterDefaultTcpipStackVirtualNics(H5StorageUtil.java:601)
 at com.vmware.vsphere.client.h5.storage.data.host.HostData.newInstance(HostData.java:110)
 at com.vmware.vsphere.client.h5.storage.impl.StoragePropertyProvider.getAvailableHostsForCreateDatastore(StoragePropertyProvider.java:180)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:498)
 at com.vmware.vise.data.query.impl.ServicePropertyProviderAdapter.invokeMethod(ServicePropertyProviderAdapter.java:285)
 at com.vmware.vise.data.query.impl.ServicePropertyProviderAdapter.getProperties(ServicePropertyProviderAdapter.java:127)
 at com.vmware.vise.data.query.impl.DataManager.getDataFromPropertyProvider(DataManager.java:1208)
 at com.vmware.vise.data.query.impl.DataManager.getResultFromPropertyProvider(DataManager.java:1169)
 at com.vmware.vise.data.query.impl.DataManager.access$000(DataManager.java:81)
 at com.vmware.vise.data.query.impl.DataManager$1.call(DataManager.java:933)
 at com.vmware.vise.data.query.impl.DataManager$1.call(DataManager.java:929)
 at com.vmware.vise.util.concurrent.ExecutorUtil$2.call(ExecutorUtil.java:826)
 at com.vmware.vise.util.concurrent.ExecutorUtil$ThreadContextPropagatingTask.call(ExecutorUtil.java:1240)
 at com.vmware.vise.data.query.impl.DataServiceThreadPoolDecorator$1.call(DataServiceThreadPoolDecorator.java:192)
 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
 at java.lang.Thread.run(Thread.java:750)

Environment

  • VCF 4.x
  • VCF 5.x
  • vCenter 7.x
  • vCenter 8.x

Cause

Null object is being returned by vSphere Client.

Resolution

This issue is resolved in vCenter Server release 8.0 U3. Log in to the Broadcom Support Portal to download this patch

To workaround this issue create new datastore at the cluster level or on individual ESXi host.