Created attachment 834295 [details] engine.log Description of problem: When there's no available memory to satisfy configured value of prestarted VM of a pool, a java null pointer exception occurs. Surprisingly there is _NO_ info/error/event/msg in Admin Portal that such prestarted pooled VM cannot be started! # su - postgres -c "psql engine -c \"select * from job where status = 'STARTED';\"" job_id | action_type | description | status | owner_id | visible | start_ti me | end_time | last_update_time | correlation_id | is_external | is_auto_cleared --------------------------------------+-------------+-----------------------------+---------+--------------------------------------+---------+----------------- -----------+----------+----------------------------+----------------+-------------+----------------- 5919b037-ecf2-4fd6-94d7-487559798467 | RunVm | Launching VM prestarted-4-1 | STARTED | 00000000-0000-0000-0000-000000000000 | t | 2013-12-08 17:37 :54.998+01 | | 2013-12-08 17:38:01.407+01 | 7c5c247 | f | t 14ed653e-52e6-4aae-a5b0-4507eba77b01 | RunVm | Launching VM prestarted-4-2 | STARTED | 00000000-0000-0000-0000-000000000000 | t | 2013-12-08 17:37 :55.73+01 | | 2013-12-08 17:38:01.84+01 | 5afd1dc2 | f | t (2 rows) # egrep '(ERROR|WARN).*(7c5c247|5afd1dc2)' /var/log/ovirt-engine/engine.log 2013-12-08 17:38:01,384 WARN [org.ovirt.engine.core.bll.RunVmCommand] (pool-4-thread-50) [7c5c247] CanDoAction of action RunVm failed. Reasons:VAR__ACTION__RUN,VAR__TYPE__VM,ACTION_TYPE_FAILED_VDS_VM_MEMORY,SCHEDULING_ALL_HOSTS_FILTERED_OUT,VAR__FILTERTYPE__INTERNAL,$hostName dell-r210ii-03,$filterName Memory,SCHEDULING_HOST_FILTERED_REASON 2013-12-08 17:38:01,399 ERROR [org.ovirt.engine.core.bll.job.ExecutionHandler] (pool-4-thread-50) [7c5c247] java.lang.NullPointerException 2013-12-08 17:38:01,399 WARN [org.ovirt.engine.core.bll.RunVmCommand] (pool-4-thread-50) [7c5c247] Could not run the vm prestarted-4-1 on RunVm.EndSuccessfully 2013-12-08 17:38:01,747 WARN [org.ovirt.engine.core.bll.RunVmCommand] (pool-4-thread-48) [5afd1dc2] CanDoAction of action RunVm failed. Reasons:VAR__ACTION__RUN,VAR__TYPE__VM,ACTION_TYPE_FAILED_VDS_VM_MEMORY,SCHEDULING_ALL_HOSTS_FILTERED_OUT,VAR__FILTERTYPE__INTERNAL,$hostName dell-r210ii-03,$filterName Memory,SCHEDULING_HOST_FILTERED_REASON 2013-12-08 17:38:01,774 ERROR [org.ovirt.engine.core.bll.job.ExecutionHandler] (pool-4-thread-48) [5afd1dc2] java.lang.NullPointerException 2013-12-08 17:38:01,774 WARN [org.ovirt.engine.core.bll.RunVmCommand] (pool-4-thread-48) [5afd1dc2] Could not run the vm prestarted-4-2 on RunVm.EndSuccessfully Version-Release number of selected component (if applicable): is25 How reproducible: 100% Steps to Reproduce: 1. create a pool with 3 vms 2. have available memory which is lower that one needed to start all 3 pooled vms 3. define prestarted vms to be '3' Actual results: no error/msg/event in Admin Portal, tasks are indifinitive Expected results: something visible in Admin Portal Additional info:
http://gerrit.ovirt.org/gitweb?p=ovirt-engine.git;a=commit;h=2d54f0069c497db90bf54eae5e8c272c3cc0410f http://gerrit.ovirt.org/gitweb?p=ovirt-engine.git;a=commit;h=32976795aba2bd671f6a88d1d7f2a112c57dbf34
Verified on is28.1. Created vmpool with 3 vms 2048 M memory each, and updated vmpool with 3 prestarted VMs. As expected, 1 VM run, and the others failed to run with event error.
*** Bug 1046697 has been marked as a duplicate of this bug. ***
Closing - RHEV 3.3 Released