Created attachment 786926 [details] logs Description of problem: I have a scenario in which engine reports about a running vm that does not exist in DB. It causes to engine to enter to a loop with ClassCastException: 2013-08-15 11:09:04,923 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.FullListVdsCommand] (DefaultQuartzScheduler_Worker-4) START, FullListVdsCommand(HostName = nott-vds2, HostId = 5d7ce646-22c0-45e7-af68-e6120 c97d94f, vds=Host[nott-vds2], vmIds=[94cbd866-b5b8-4e85-bde7-079bc1acedb3]), log id: 30403e8 2013-08-15 11:09:05,060 INFO [org.ovirt.engine.core.vdsbroker.VdsManager] (DefaultQuartzScheduler_Worker-6) Initializing Host: green-vdsa 2013-08-15 11:09:05,074 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.FullListVdsCommand] (DefaultQuartzScheduler_Worker-4) FINISH, FullListVdsCommand, return: [Ljava.util.HashMap;@4431cc7f, log id: 30403e8 2013-08-15 11:09:05,129 WARN [org.ovirt.engine.core.vdsbroker.VdsManager] (DefaultQuartzScheduler_Worker-4) Failed to refresh VDS , vds = 5d7ce646-22c0-45e7-af68-e6120c97d94f : nott-vds2, error = java.lang.ClassC astException: java.lang.Integer cannot be cast to java.lang.String, continuing.: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String at org.ovirt.engine.core.vdsbroker.VdsUpdateRunTimeInfo.processExternallyManagedVms(VdsUpdateRunTimeInfo.java:1626) [vdsbroker.jar:] at org.ovirt.engine.core.vdsbroker.VdsUpdateRunTimeInfo.refreshVmStats(VdsUpdateRunTimeInfo.java:982) [vdsbroker.jar:] at org.ovirt.engine.core.vdsbroker.VdsUpdateRunTimeInfo.refreshVdsRunTimeInfo(VdsUpdateRunTimeInfo.java:552) [vdsbroker.jar:] at org.ovirt.engine.core.vdsbroker.VdsUpdateRunTimeInfo.Refresh(VdsUpdateRunTimeInfo.java:393) [vdsbroker.jar:] at org.ovirt.engine.core.vdsbroker.VdsManager.OnTimer(VdsManager.java:237) [vdsbroker.jar:] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_25] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_25] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_25] at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_25] at org.ovirt.engine.core.utils.timer.JobWrapper.execute(JobWrapper.java:60) [scheduler.jar:] at org.quartz.core.JobRunShell.run(JobRunShell.java:213) [quartz.jar:] at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557) [quartz.jar:] Version-Release number of selected component (if applicable): rhevm-3.3.0-0.15.master.el6ev.noarch How reproducible: need to get to the mentioned scenario Steps to Reproduce: Have a VM that was ran manually on host. Additional info: logs
This issue causes to engine to fail in detection of running vms. Engine reports running vms (which properly running on hosts) as paused.
Please describe more explicit steps for reproducing the bug. Thanks
- (In reply to Artyom from comment #2) > Please describe more explicit steps for reproducing the bug. > Thanks You need to create and run a vm locally on host (not via rhevm)
Verified on is12, adding external vm via vdsClient. Receive error message about that vm not managed by rhevm No any class exception in engine log
Closing - RHEV 3.3 Released