Bug 1039507 - [Admin Portal] [java.lang.NullPointerException] No msg/event when prestarted pooled VM cannot be started because of low memory
Summary: [Admin Portal] [java.lang.NullPointerException] No msg/event when prestarted ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-webadmin-portal
Version: 3.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 3.3.0
Assignee: Arik
QA Contact: Ilanit Stein
URL:
Whiteboard: virt
: 1046697 (view as bug list)
Depends On:
Blocks: 3.3rc1
TreeView+ depends on / blocked
 
Reported: 2013-12-09 10:08 UTC by Jiri Belka
Modified: 2014-01-21 22:23 UTC (History)
9 users (show)

Fixed In Version: is28
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-21 22:17:17 UTC
oVirt Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
engine.log (625.83 KB, application/x-gzip)
2013-12-09 10:08 UTC, Jiri Belka
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 22390 0 None None None Never
oVirt gerrit 22392 0 None None None Never
oVirt gerrit 22450 0 None None None Never
oVirt gerrit 22451 0 None None None Never

Description Jiri Belka 2013-12-09 10:08:12 UTC
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:

Comment 2 Ilanit Stein 2013-12-25 10:41:26 UTC
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.

Comment 3 Arik 2014-01-01 15:19:29 UTC
*** Bug 1046697 has been marked as a duplicate of this bug. ***

Comment 4 Itamar Heim 2014-01-21 22:17:17 UTC
Closing - RHEV 3.3 Released

Comment 5 Itamar Heim 2014-01-21 22:23:57 UTC
Closing - RHEV 3.3 Released


Note You need to log in before you can comment on or make changes to this bug.