OCI Hyper-V datasource Inventory Failed with error "0 out of 1 devices acquired successfully."
Applies to
Oncommand Insight 7.3.x (OCI)
Microsoft Hyper-V
Issue
Inventory monitoring of Microsoft Hyper-V fails with below error as per log_sample.log,
2020-09-03 14:43:38,971 WARN [com.onaro.sanscreen.acquisition.datasource.microsoft_hyperv.builders.AbstractBuilder] No clustering, error code = , error description = Invalid namespace
2020-09-03 14:43:43,111 ERROR [com.onaro.sanscreen.acquisition.framework.datasource.BaseDataSource] Error 1 out of 1: Datasource name [Internal error] - General Error (General Error)
com.onaro.sanscreen.acquisition.framework.datasource.DataSourceErrorException: General Error
at com.onaro.sanscreen.acquisition.datasource.microsoft_hyperv.builders.HostBuilder.build(HostBuilder.java:113) ~[microsoft_hyperv.jar:?]
at com.onaro.sanscreen.acquisition.datasource.microsoft_hyperv.builders.ClusterBuilder.buildStandaloneHost(ClusterBuilder.java:119) ~[microsoft_hyperv.jar:?]
at com.onaro.sanscreen.acquisition.datasource.microsoft_hyperv.builders.ClusterBuilder.build(ClusterBuilder.java:94) ~[microsoft_hyperv.jar:?]
at com.onaro.sanscreen.acquisition.datasource.microsoft_hyperv.builders.ClusterCenterBuilder.build
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_231]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_231]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_231]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_231]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_231]
Caused by: java.lang.NullPointerException