Bug 1312649

Summary: [Webadmin] Failed to attach an ISO domain to a DC from the webadmin
Product: [oVirt] ovirt-engine Reporter: Gil Klein <gklein>
Component: Frontend.WebAdminAssignee: Tal Nisan <tnisan>
Status: CLOSED CURRENTRELEASE QA Contact: Lukas Svaty <lsvaty>
Severity: high Docs Contact:
Priority: high    
Version: 3.6.3.2CC: amureini, bugs, eedri, oourfali, tnisan, ylavi
Target Milestone: ovirt-3.6.3Keywords: Regression
Target Release: 3.6.3.4Flags: rule-engine: ovirt-3.6.z+
rule-engine: blocker+
ylavi: planning_ack+
tnisan: devel_ack+
rule-engine: testing_ack+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-10 12:49:27 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
UIException
none
ui.log(masked) none

Description Gil Klein 2016-02-28 12:22:53 UTC
Description of problem:
Uncaught exception occurred in the webadmin when attaching an ISO domain to a DC 


Version-Release number of selected component (if applicable):
rhevm-3.6.3.2-0.1.el6.noarch


How reproducible:
100% on this system


Steps to Reproduce:
1. Go to the storage tab
2. Select an ISO domain (unattached)
3. On the lower pane, select the Data center tab
4. click attach
5. Select one of the Data centers from the list
6. Click OK

Actual results:
Data center should be selected, and ISO domain should be attached to it


Expected results:
Uncaught exception occurred: Uncaught exception occurred. Please try reloading the page. Details: Exception caught: (TypeError) __gwtexception:

Additional info:

UI.log

2016-02-28 14:15:12,909 ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (ajp-/127.0.0.1:8702-1) [] Permutation name: 2315F6F85423E584AFE3585F4C988A98
2016-02-28 14:15:12,909 ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (ajp-/127.0.0.1:8702-1) [] Uncaught exception: : com.google.gwt.event.shared.UmbrellaException: Exception caught: (TypeError) 
 __gwt$exception: <skipped>: b is null
	at java.lang.Throwable.fillInStackTrace(Throwable.java:114) [rt.jar:1.7.0_95]
	at java.lang.RuntimeException.RuntimeException(RuntimeException.java:32) [rt.jar:1.7.0_95]
	at com.google.web.bindery.event.shared.UmbrellaException.UmbrellaException(UmbrellaException.java:70) [gwt-servlet.jar:]
	at com.google.gwt.event.shared.UmbrellaException.UmbrellaException(UmbrellaException.java:25) [gwt-servlet.jar:]
	at com.google.gwt.event.shared.HandlerManager.$fireEvent(HandlerManager.java:117) [gwt-servlet.jar:]
	at com.google.gwt.view.client.SelectionChangeEvent.fire(SelectionChangeEvent.java:67) [gwt-servlet.jar:]
	at com.google.gwt.view.client.MultiSelectionModel.$resolveChanges(MultiSelectionModel.java:150) [gwt-servlet.jar:]
	at com.google.gwt.view.client.MultiSelectionModel.fireSelectionChangeEvent(MultiSelectionModel.java:143) [gwt-servlet.jar:]
	at com.google.gwt.view.client.SelectionModel$AbstractSelectionModel$1.execute(SelectionModel.java:128) [gwt-servlet.jar:]
	at com.google.gwt.core.client.impl.SchedulerImpl.runScheduledTasks(SchedulerImpl.java:164) [gwt-servlet.jar:]
	at com.google.gwt.core.client.impl.SchedulerImpl.$flushFinallyCommands(SchedulerImpl.java:270) [gwt-servlet.jar:]
	at com.google.gwt.core.client.impl.Impl.exit(Impl.java:378) [gwt-servlet.jar:]
	at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:335) [gwt-servlet.jar:]
	at Unknown._t/<(Unknown Source)
	at Unknown.anonymous(Unknown Source)
Caused by: com.google.gwt.core.client.JavaScriptException: (TypeError) 
 __gwt$exception: <skipped>: b is null
	at org.ovirt.engine.ui.common.widget.editor.EntityModelCellTable$1.onSelectionChange(EntityModelCellTable.java:223)
	at com.google.gwt.view.client.SelectionChangeEvent.dispatch(SelectionChangeEvent.java:98) [gwt-servlet.jar:]
	at com.google.gwt.event.shared.GwtEvent.dispatch(GwtEvent.java:76) [gwt-servlet.jar:]
	at com.google.web.bindery.event.shared.SimpleEventBus.$doFire(SimpleEventBus.java:173) [gwt-servlet.jar:]
	... 11 more

Comment 1 Gil Klein 2016-02-28 12:32:59 UTC
*** Bug 1312650 has been marked as a duplicate of this bug. ***

Comment 2 Gil Klein 2016-02-28 12:33:37 UTC
Created attachment 1131253 [details]
UIException

Comment 3 Yaniv Kaul 2016-02-28 15:13:07 UTC
*** Bug 1312651 has been marked as a duplicate of this bug. ***

Comment 4 Oved Ourfali 2016-02-29 05:48:14 UTC
Reducing urgency, and fixing version, as no ui exceptions will appear in 3.6.3.3 (the description states 3.6.3.2 while the bug was opened on 3.6.3.3).

Also, where are the logs? Does the attach actually work?
Anyway, should be re-tested with latest build.

Flow is storage, so moving for storage to investigate, and move to UX if relevant.

Comment 5 Red Hat Bugzilla Rules Engine 2016-02-29 05:48:20 UTC
This bug report has Keywords: Regression or TestBlocker.
Since no regressions or test blockers are allowed between releases, it is also being identified as a blocker for this release. Please resolve ASAP.

Comment 6 Allon Mureinik 2016-02-29 06:23:56 UTC
Tal, as the current QE contact, please take a look.

Comment 7 Gil Klein 2016-02-29 09:46:09 UTC
Created attachment 1131471 [details]
ui.log(masked)

Comment 8 Gil Klein 2016-02-29 09:53:31 UTC
(In reply to Oved Ourfali from comment #4)
> Reducing urgency, and fixing version, as no ui exceptions will appear in
> 3.6.3.3 (the description states 3.6.3.2 while the bug was opened on 3.6.3.3).
> 
> Also, where are the logs? Does the attach actually work?
UI.log now added.

The ISO domain fail to attached, so it has a high impact.
 
> Anyway, should be re-tested with latest build.
Just tested again with rhevm-3.6.3.3-0.1.el6.noarch

No UI exception now, but got the same exception in the UI.log
> 
> Flow is storage, so moving for storage to investigate, and move to UX if
> relevant.

Comment 9 Gil Klein 2016-02-29 12:11:14 UTC
Moving back to 3.6.3. 

It has critical impact due to inability to attach an ISO domain to DC.

Comment 10 Tal Nisan 2016-02-29 19:31:26 UTC
Just to sharpen up the steps to reproduce:
By default the first data center in the list is selected, if you keep this selection (or only have one data center) and click OK everything will run as it should.
The problem occurs when you have more than one data center and you choose one other than the first, the bug reproduces (no need to even click OK as the exception is thrown upon selection).

Comment 11 Tal Nisan 2016-02-29 19:38:37 UTC
Note that during fixing and reproducing I've stumbled upon another bug in the area - although you can select a few data centers, attaching to multiple data centers fails and bug 1313042 was opened for that issue

Comment 12 Gil Klein 2016-03-01 21:52:25 UTC
Verified with:

rhevm-3.6.3.4-0.1.el6.noarch