Provision datastore task fails as Virtual Storage Console is unable to select a host
Applies to
Virtual Storage Console
Issue
When provisioning a datastore at the ESXi level using Virtual Storage Console (VSC), a pop up error is thrown (as seen in the vSphere WebClient):
"There are no hosts under the selected item. You must select a datacenter, cluster, or host for the provisioning operation to work successfully"
The error is generated when selecting the following in the vSphere WebClient: Host and Clusters > right-click on a ESXi host > click NetApp VSC > Provision Datastore
In VSC's kamino log, the following Null Pointer Exception (NPE) is seen:
2018-11-05 20:52:12,476 (pool-1207-thread-1) ERROR [EsxHostTaskManager] - Unable to get hostsystem info for: HostSystem:host-765 @ https://<vcentername>:443/sdk.
java.lang.NullPointerException
at com.netapp.kamino.server.duplicator.EsxHostTaskManager.getHostInfo(EsxHostTaskManager.java:1378)
at com.netapp.kamino.server.duplicator.EsxHostTaskManager$1.call(EsxHostTaskManager.java:1183)
at com.netapp.kamino.server.duplicator.EsxHostTaskManager$1.call(EsxHostTaskManager.java:1172)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)