| Summary: | [Admin Portal] [java.lang.NullPointerException] No msg/event when prestarted pooled VM cannot be started because of low memory | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Jiri Belka <jbelka> | ||||
| Component: | ovirt-engine-webadmin-portal | Assignee: | Arik <ahadas> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Ilanit Stein <istein> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 3.3.0 | CC: | acathrow, ecohen, iheim, mavital, michal.skrivanek, mlipchuk, Rhev-m-bugs, sherold, yeylon | ||||
| Target Milestone: | --- | ||||||
| Target Release: | 3.3.0 | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | virt | ||||||
| Fixed In Version: | is28 | Doc Type: | Bug Fix | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2014-01-21 22:17:17 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Bug Depends On: | |||||||
| Bug Blocks: | 1049022 | ||||||
| Attachments: |
|
||||||
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 Closing - RHEV 3.3 Released |
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: