Bug 1418660 - creating VM from template on storage in maintenance causes UI error
Summary: creating VM from template on storage in maintenance causes UI error
Keywords:
Status: CLOSED DUPLICATE of bug 1406572
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: Frontend.Core
Version: 4.1.0.3
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ovirt-4.2.0
: ---
Assignee: jniederm
QA Contact: Pavel Stehlik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-02-02 12:40 UTC by Lucie Leistnerova
Modified: 2017-08-31 13:56 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-08-31 13:56:56 UTC
oVirt Team: Virt
Embargoed:
tjelinek: ovirt-4.2?
tjelinek: planning_ack?
tjelinek: devel_ack?
tjelinek: testing_ack?


Attachments (Terms of Use)

Description Lucie Leistnerova 2017-02-02 12:40:24 UTC
Description of problem:
Trying to create VM or pool from template that is on storage in maintenance causes UI error in both user and admin portal.

Uncaught exception: com.google.gwt.core.client.JavaScriptException: (TypeError)
 __gwt$exception: <skipped>: f is undefined

Version-Release number of selected component (if applicable):
ovirt-engine-webadmin-portal-4.1.0.3-0.1.el7.noarch
ovirt-engine-userportal-4.1.0.3-0.1.el7.noarch

How reproducible: always


Steps to Reproduce:
1. in admin portal have at least 2 active storages in DC, create template
2. put the storage where the template is located to Maintenance
3. try to create new VM or pool from this template

Actual results: UI error occurs


Expected results: proper error is shown or don't show such templates in the select box


Additional info:
by removing the template proper error is shown - Cannot remove Template. The relevant Storage Domain's status is Maintenance.

ui.log
2017-02-02 12:27:19,628+01 ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-6) [] Permutation name: 7A9F3E72833E7B23A22BB4D11B47AC48
2017-02-02 12:27:19,629+01 ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-6) [] Uncaught exception: com.google.gwt.core.client.JavaScriptException: (TypeError)
 __gwt$exception: <skipped>: f is undefined
        at org.ovirt.engine.ui.uicommonweb.models.storage.DisksAllocationModel.$updateImageToDestinationDomainMap(DisksAllocationModel.java:315)
        at org.ovirt.engine.ui.uicommonweb.models.storage.DisksAllocationModel.$getImageToDestinationDomainMap(DisksAllocationModel.java:140)
        at org.ovirt.engine.ui.uicommonweb.models.pools.PoolListModel.$savePoolPostValidation(PoolListModel.java:427)
        at org.ovirt.engine.ui.uicommonweb.models.pools.PoolListModel$3.$onSuccess(PoolListModel.java:380)
        at org.ovirt.engine.ui.uicommonweb.models.pools.PoolListModel$3.onSuccess(PoolListModel.java:380)
        at org.ovirt.engine.ui.frontend.Frontend$2.$onSuccess(Frontend.java:233) [frontend.jar:]
        at org.ovirt.engine.ui.frontend.Frontend$2.onSuccess(Frontend.java:233) [frontend.jar:]
        at org.ovirt.engine.ui.frontend.communication.OperationProcessor$2.$onSuccess(OperationProcessor.java:139) [frontend.jar:]
        at org.ovirt.engine.ui.frontend.communication.OperationProcessor$2.onSuccess(OperationProcessor.java:139) [frontend.jar:]
        at org.ovirt.engine.ui.frontend.communication.GWTRPCCommunicationProvider$5$1.$onSuccess(GWTRPCCommunicationProvider.java:269) [frontend.jar:]
        at org.ovirt.engine.ui.frontend.communication.GWTRPCCommunicationProvider$5$1.onSuccess(GWTRPCCommunicationProvider.java:269) [frontend.jar:]
        at com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:198) [gwt-servlet.jar:]
        at com.google.gwt.http.client.Request.$fireOnResponseReceived(Request.java:237) [gwt-servlet.jar:]
        at com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange(RequestBuilder.java:409) [gwt-servlet.jar:]
        at Unknown.EHf/c.onreadystatechange<(Unknown Source)
        at com.google.gwt.core.client.impl.Impl.apply(Impl.java:296) [gwt-servlet.jar:]
        at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:335) [gwt-servlet.jar:]
        at Unknown.Qx/<(Unknown Source)
        at Unknown.anonymous(Unknown Source)

Comment 1 jniederm 2017-08-31 13:56:56 UTC

*** This bug has been marked as a duplicate of bug 1406572 ***


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