[
https://issues.apache.org/jira/browse/CLOUDSTACK-1868?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13622585#comment-13622585
]
Francois Gaudreault commented on CLOUDSTACK-1868:
-------------------------------------------------
Looking at the logs today, I saw a stacktrace, VmwareResource.java line 4601.
ERROR [vmware.resource.VmwareResource] (DirectAgent-424:yul01vi13.ops.dot)
Unable to execute GetVmStatsCommand due to : Exception:
java.lang.NullPointerException
Message: null
java.lang.NullPointerException
at
com.cloud.hypervisor.vmware.resource.VmwareResource.getVmStats(VmwareResource.java:4601)
at
com.cloud.hypervisor.vmware.resource.VmwareResource.execute(VmwareResource.java:2741)
at
com.cloud.hypervisor.vmware.resource.VmwareResource.executeRequest(VmwareResource.java:355)
at
com.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgentAttache.java:186)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:165)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:266)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:679)
WARN [cloud.vm.UserVmManagerImpl] (StatsCollector-3:) Unable to obtain VM
statistics.
ERROR [vmware.resource.VmwareResource] (DirectAgent-388:yul01vi12.ops.dot)
Unable to execute GetVmStatsCommand due to : Exception:
java.lang.NullPointerException
Message: null
Let me enable TRACE, and see if we get something else.
> GetVmStatsCommand throws NullPointerException with VMWare
> ---------------------------------------------------------
>
> Key: CLOUDSTACK-1868
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-1868
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Affects Versions: 4.1.0
> Reporter: Francois Gaudreault
> Assignee: Sateesh Chodapuneedi
> Priority: Critical
> Fix For: 4.1.0
>
>
> We see bunch of these in the log files of CloudStack. Looks like the
> GetVmStatsCommand crash with a Null pointer exception. We don't think it's
> permission related since our CS user on vSphere can see all performance and
> VM statistics using the vSphere client.
> INFO [agent.manager.AgentManagerImpl] (AgentTaskPool-6:) Agent is determined
> to be up and running
> ERROR [vmware.resource.VmwareResource] (DirectAgent-383:yul01vi13.ops.dot)
> Unable to execute GetVmStatsCommand due to : Exception:
> java.lang.NullPointerException
> Message: null
> java.lang.NullPointerException
> WARN [cloud.vm.UserVmManagerImpl] (StatsCollector-2:) Unable to obtain VM
> statistics.
> ERROR [vmware.resource.VmwareResource] (DirectAgent-67:yul01vi12.ops.dot)
> Unable to execute GetVmStatsCommand due to : Exception:
> java.lang.NullPointerException
> Message: null
> java.lang.NullPointerException
> WARN [cloud.vm.UserVmManagerImpl] (StatsCollector-2:) Unable to obtain VM
> statistics.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira