Bug 1582356
| Summary: | UI hangs with NPE while trying to migrate VM in Powering Up status | ||
|---|---|---|---|
| Product: | [oVirt] ovirt-engine | Reporter: | Germano Veit Michel <gveitmic> |
| Component: | BLL.Infra | Assignee: | Andrej Krejcir <akrejcir> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Lucie Leistnerova <lleistne> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 4.2.3.5 | CC: | akrejcir, bugs, lleistne, lsvaty, lveyde, michal.skrivanek |
| Target Milestone: | ovirt-4.2.4 | Flags: | rule-engine:
ovirt-4.2?
gveitmic: planning_ack? rule-engine: devel_ack+ lsvaty: testing_ack+ |
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | ovirt-engine-4.2.4.1 | Doc Type: | No Doc Update |
| Doc Text: |
undefined
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-06-26 08:43:04 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | SLA | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
seems to be introduced recently in I71569b6e26283da346092e5d4f8a2b17b4183d55 by SLA - reassigning for further investigation Yes, it was introduced by the patch. Both hosts need to have newest vdsm version. Then the migration dialog doesn't get stuck. verified in ovirt-engine-4.2.4.1-0.1.el7.noarch on hosts vdsm-4.20.29-1.el7ev.x86_64 This bugzilla is included in oVirt 4.2.4 release, published on June 26th 2018. Since the problem described in this bug report should be resolved in oVirt 4.2.4 release, it has been closed with a resolution of CURRENT RELEASE. If the solution does not work for you, please open a new bug report. |
Description of problem: Via Admin Portal, start a VM and shortly after (5-10seconds) try to migrate it. A NPE is hit in the engine and the UI hangs (cant close dialog, OK/CANCEL buttons are not showing, need to close the browser tab). Looks like it is due to not being able to find the hosts to populate the dialog. 1. RUN: 2018-05-25 10:23:09,906+10 INFO [org.ovirt.engine.core.vdsbroker.CreateVDSCommand] (EE-ManagedThreadFactory-engine-Thread-256295) [c7be7ae4-04af-4c07-a838-a13f8fd74951] FINISH, CreateVDSCommand, return: WaitForLaunch, log id: 394193bd 2018-05-25 10:23:09,998+10 INFO [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (EE-ManagedThreadFactory-engine-Thread-256295) [c7be7ae4-04af-4c07-a838-a13f8fd74951] EVENT_ID: USER_STARTED_VM(153), VM VM1 was started by admin@internal-authz (Host: ovirt-h2). 2. 8 seconds later click in migrate: 2018-05-25 10:23:17,086+10 ERROR [org.ovirt.engine.core.bll.GetValidHostsForVmsQuery] (default task-32) [fdeb9b90-6f09-40b4-baf0-1fbceca32ccf] Query 'GetValidHostsForVmsQuery' failed: null 2018-05-25 10:23:17,086+10 ERROR [org.ovirt.engine.core.bll.GetValidHostsForVmsQuery] (default task-32) [fdeb9b90-6f09-40b4-baf0-1fbceca32ccf] Exception: java.lang.NullPointerException at org.ovirt.engine.core.bll.scheduling.SchedulingManager.subtractRunningVmResources(SchedulingManager.java:851) [bll.jar:] at org.ovirt.engine.core.bll.scheduling.SchedulingManager.canSchedule(SchedulingManager.java:545) [bll.jar:] at org.ovirt.engine.core.bll.GetValidHostsForVmsQuery.lambda$getValidHosts$0(GetValidHostsForVmsQuery.java:48) [bll.jar:] at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) [rt.jar:1.8.0_161] at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382) [rt.jar:1.8.0_161] at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) [rt.jar:1.8.0_161] at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) [rt.jar:1.8.0_161] at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) [rt.jar:1.8.0_161] at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) [rt.jar:1.8.0_161] at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499) [rt.jar:1.8.0_161] at org.ovirt.engine.core.bll.GetValidHostsForVmsQuery.getValidHosts(GetValidHostsForVmsQuery.java:51) [bll.jar:] at org.ovirt.engine.core.bll.GetValidHostsForVmsQuery.executeQueryCommand(GetValidHostsForVmsQuery.java:34) [bll.jar:] at org.ovirt.engine.core.bll.QueriesCommandBase.executeCommand(QueriesCommandBase.java:106) [bll.jar:] at org.ovirt.engine.core.dal.VdcCommandBase.execute(VdcCommandBase.java:33) [dal.jar:] at org.ovirt.engine.core.bll.executor.DefaultBackendQueryExecutor.execute(DefaultBackendQueryExecutor.java:14) [bll.jar:] at org.ovirt.engine.core.bll.Backend.runQueryImpl(Backend.java:538) [bll.jar:] Version-Release number of selected component (if applicable): ovirt-engine-4.2.3.5-1.el7.centos.noarch How reproducible: 100% Steps to Reproduce: 1. Run VM 2. Migrate VM (within 5-10s after clicking on run) Actual results: UI Hangs, NPE Expected results: No NPE, UI working.