Bug 1381220 - Exception while trying to remove an host in maintenance
Summary: Exception while trying to remove an host in maintenance
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: Frontend.WebAdmin
Version: 4.1.0
Hardware: Unspecified
OS: Unspecified
high
high vote
Target Milestone: ovirt-4.1.0-beta
: ---
Assignee: Alexander Wels
QA Contact: Pavel Stehlik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-03 13:01 UTC by Sandro Bonazzola
Modified: 2016-12-13 16:34 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-12-13 16:34:30 UTC
oVirt Team: UX
sbonazzo: ovirt-4.1?
rule-engine: blocker?
mgoldboi: planning_ack+
rule-engine: devel_ack?
rule-engine: testing_ack?


Attachments (Terms of Use)

Description Sandro Bonazzola 2016-10-03 13:01:05 UTC
Description of problem:

Using:
ovirt-engine-webadmin-portal-4.1.0-0.0.master.20161002221922.gitee66cd1.fc24.noarch
ovirt-engine-webadmin-portal-debuginfo-4.1.0-0.0.master.20161002221922.gitee66cd1.fc24.noarch

Exception while trying to remove an host in maintenance:

2016-10-03 14:57:24,657 ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-11) [] Permutation name: 53669DB6F762CC94BBD87B1DE15353D3
2016-10-03 14:57:24,658 ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-11) [] Uncaught exception: com.google.gwt.event.shared.UmbrellaException: Exception caught: Exception caught: Exception caught: Should only call onDetach when the widget is attached to the browser's document
	at java.lang.Throwable.fillInStackTrace(Throwable.java:114) [rt.jar:1.8.0_102]
	at java.lang.RuntimeException.RuntimeException(RuntimeException.java:32) [rt.jar:1.8.0_102]
	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.event.shared.HandlerManager.fireEvent(HandlerManager.java:117) [gwt-servlet.jar:]
	at com.google.gwt.event.logical.shared.CloseEvent.fire(CloseEvent.java:52) [gwt-servlet.jar:]
	at Unknown.eval(webadmin-0.js@235)
	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.eval(webadmin-0.js@54)
Caused by: com.google.gwt.user.client.ui.AttachDetachException: Exception caught: Exception caught: Should only call onDetach when the widget is attached to the browser's document
	at java.lang.Throwable.fillInStackTrace(Throwable.java:114) [rt.jar:1.8.0_102]
	at java.lang.RuntimeException.RuntimeException(RuntimeException.java:32) [rt.jar:1.8.0_102]
	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.user.client.ui.AttachDetachException.AttachDetachException(AttachDetachException.java:135) [gwt-servlet.jar:]
	at com.google.gwt.user.client.ui.AttachDetachException.tryCommand(AttachDetachException.java:70) [gwt-servlet.jar:]
	at com.google.gwt.user.client.ui.RootPanel.detachWidgets(RootPanel.java:237) [gwt-servlet.jar:]
	at com.google.gwt.user.client.ui.RootPanel$3.onClose(RootPanel.java:272) [gwt-servlet.jar:]
	at com.google.gwt.event.logical.shared.CloseEvent.dispatch(CloseEvent.java:111) [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:]
	... 7 more
Caused by: com.google.gwt.user.client.ui.AttachDetachException: Exception caught: Should only call onDetach when the widget is attached to the browser's document
	at java.lang.Throwable.fillInStackTrace(Throwable.java:114) [rt.jar:1.8.0_102]
	at java.lang.RuntimeException.RuntimeException(RuntimeException.java:32) [rt.jar:1.8.0_102]
	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.user.client.ui.AttachDetachException.AttachDetachException(AttachDetachException.java:135) [gwt-servlet.jar:]
	at com.google.gwt.user.client.ui.AttachDetachException.tryCommand(AttachDetachException.java:70) [gwt-servlet.jar:]
	at com.google.gwt.user.client.ui.Panel.doDetachChildren(Panel.java:133) [gwt-servlet.jar:]
	at com.google.gwt.user.client.ui.Widget.$onDetach(Widget.java:386) [gwt-servlet.jar:]
	at com.google.gwt.user.client.ui.Widget.onDetach(Widget.java:386) [gwt-servlet.jar:]
	at com.google.gwt.user.client.ui.RootPanel$1.execute(RootPanel.java:72) [gwt-servlet.jar:]
	... 13 more
Caused by: java.lang.IllegalStateException: Should only call onDetach when the widget is attached to the browser's document
	at java.lang.Throwable.fillInStackTrace(Throwable.java:114) [rt.jar:1.8.0_102]
	at java.lang.Throwable.Throwable(Throwable.java:54) [rt.jar:1.8.0_102]
	at java.lang.Exception.Exception(Exception.java:28) [rt.jar:1.8.0_102]
	at java.lang.RuntimeException.RuntimeException(RuntimeException.java:28) [rt.jar:1.8.0_102]
	at java.lang.IllegalStateException.IllegalStateException(IllegalStateException.java:27) [rt.jar:1.8.0_102]
	at com.google.gwt.user.client.ui.Widget.$onDetach(Widget.java:386) [gwt-servlet.jar:]
	at com.google.gwt.user.client.ui.Widget.onDetach(Widget.java:386) [gwt-servlet.jar:]
	at com.google.gwt.user.client.ui.Composite.onDetach(Composite.java:176) [gwt-servlet.jar:]
	at com.google.gwt.user.client.ui.AttachDetachException$2.execute(AttachDetachException.java:42) [gwt-servlet.jar:]
	... 18 more

2016-10-03 14:57:36,846 ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-6) [] Permutation name: 53669DB6F762CC94BBD87B1DE15353D3
2016-10-03 14:57:36,848 ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-6) [] Uncaught exception: com.google.gwt.event.shared.UmbrellaException: Exception caught: undefined
	at java.lang.Throwable.fillInStackTrace(Throwable.java:114) [rt.jar:1.8.0_102]
	at java.lang.RuntimeException.RuntimeException(RuntimeException.java:32) [rt.jar:1.8.0_102]
	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.user.client.ui.Widget.$fireEvent(Widget.java:127) [gwt-servlet.jar:]
	at com.google.gwt.user.client.ui.Widget.fireEvent(Widget.java:127) [gwt-servlet.jar:]
	at com.google.gwt.event.dom.client.DomEvent.fireNativeEvent(DomEvent.java:110) [gwt-servlet.jar:]
	at com.google.gwt.user.client.ui.Widget.$onBrowserEvent(Widget.java:163) [gwt-servlet.jar:]
	at com.google.gwt.user.client.ui.CustomButton.onBrowserEvent(CustomButton.java:631) [gwt-servlet.jar:]
	at com.google.gwt.user.client.ui.Composite.onBrowserEvent(Composite.java:78) [gwt-servlet.jar:]
	at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1648) [gwt-servlet.jar:]
	at com.google.gwt.user.client.impl.DOMImplStandard.dispatchEvent(DOMImplStandard.java:320) [gwt-servlet.jar:]
	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.eval(webadmin-0.js@54)
	at com.google.gwt.dom.client.DOMImplStandard.$dispatchEvent(DOMImplStandard.java:68) [gwt-servlet.jar:]
	at com.google.gwt.user.client.ui.CustomButton.$onClick(CustomButton.java:822) [gwt-servlet.jar:]
	at com.google.gwt.user.client.ui.ToggleButton.onClick(ToggleButton.java:255) [gwt-servlet.jar:]
	at com.google.gwt.user.client.ui.CustomButton.onBrowserEvent(CustomButton.java:631) [gwt-servlet.jar:]
	at com.google.gwt.user.client.ui.Composite.onBrowserEvent(Composite.java:78) [gwt-servlet.jar:]
	at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1648) [gwt-servlet.jar:]
	at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1666) [gwt-servlet.jar:]
	at com.google.gwt.user.client.impl.DOMImplStandard.dispatchCapturedMouseEvent(DOMImplStandard.java:352) [gwt-servlet.jar:]
	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.eval(webadmin-0.js@54)
Caused by: java.lang.ClassCastException
	at java.lang.Throwable.fillInStackTrace(Throwable.java:114) [rt.jar:1.8.0_102]
	at java.lang.Exception.Exception(Exception.java:25) [rt.jar:1.8.0_102]
	at java.lang.RuntimeException.RuntimeException(RuntimeException.java:25) [rt.jar:1.8.0_102]
	at java.lang.ClassCastException.ClassCastException(ClassCastException.java:23) [rt.jar:1.8.0_102]
	at com.google.gwt.lang.Cast.dynamicCast(Cast.java:53)
	at org.ovirt.engine.ui.common.presenter.popup.HostMaintenanceConfirmationPopupPresenterWidget.init(HostMaintenanceConfirmationPopupPresenterWidget.java:27)
	at org.ovirt.engine.ui.common.uicommon.model.ModelBoundPopupHandler.$handleWindowModelChange(ModelBoundPopupHandler.java:80)
	at org.ovirt.engine.ui.common.uicommon.model.ModelBoundPopupHandler$1.eventRaised(ModelBoundPopupHandler.java:61)
	at org.ovirt.engine.ui.uicompat.Event.$raise(Event.java:114)
	at org.ovirt.engine.ui.uicommonweb.models.Model.$onPropertyChanged(Model.java:471)
	at org.ovirt.engine.ui.uicommonweb.models.Model.onPropertyChanged(Model.java:471)
	at org.ovirt.engine.ui.uicommonweb.models.Model.$setWindow(Model.java:93)
	at org.ovirt.engine.ui.uicommonweb.models.hosts.HostListModel.$remove(HostListModel.java:1062)
	at org.ovirt.engine.ui.uicommonweb.models.hosts.HostListModel.executeCommand(HostListModel.java:1934)
	at org.ovirt.engine.ui.uicommonweb.UICommand.$execute(UICommand.java:163)
	at org.ovirt.engine.ui.common.widget.action.UiCommandButtonDefinition.$onClick(UiCommandButtonDefinition.java:130)
	at org.ovirt.engine.ui.common.widget.action.UiCommandButtonDefinition.onClick(UiCommandButtonDefinition.java:130)
	at org.ovirt.engine.ui.common.widget.action.AbstractActionPanel$5.onClick(AbstractActionPanel.java:345)
	at com.google.gwt.event.dom.client.ClickEvent.dispatch(ClickEvent.java:55) [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:]
	... 23 more

Comment 1 Red Hat Bugzilla Rules Engine 2016-10-03 13:01:13 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 2 Alexander Wels 2016-12-02 18:38:13 UTC
@Sandro

Any thing special or different on that host? I just attempted to re-create and I was able to remove the host that was in maintenance without issues and this is a master build.

Comment 3 Sandro Bonazzola 2016-12-13 16:28:57 UTC
(In reply to Alexander Wels from comment #2)
> @Sandro
> 
> Any thing special or different on that host? I just attempted to re-create
> and I was able to remove the host that was in maintenance without issues and
> this is a master build.

Nothing special as far as I can remember. It was with 20161002221922 so it's a build 2 months old.
Maybe this has been fixed in the meanwhile.

Comment 4 Alexander Wels 2016-12-13 16:34:30 UTC
Okay well I am going to close as WORKSFORME, feel free to re-open if it happens again.


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