Bug 805474 - ovirt-engine-core: exception error when engine db user is expired
Summary: ovirt-engine-core: exception error when engine db user is expired
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: oVirt
Classification: Retired
Component: ovirt-engine-core
Version: unspecified
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: lpeer
QA Contact:
URL:
Whiteboard: infra
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-03-21 12:34 UTC by Dafna Ron
Modified: 2012-12-13 08:12 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-12-13 08:12:47 UTC
oVirt Team: ---


Attachments (Terms of Use)
logs (10.69 MB, application/x-gzip)
2012-03-21 12:34 UTC, Dafna Ron
no flags Details

Description Dafna Ron 2012-03-21 12:34:18 UTC
Created attachment 571697 [details]
logs

Description of problem:

I tried adding an expiration date to the engine user in db. 
first, unless jboss is restarted after the expiration date has passed we do not enforce the expiration. 
second, once jboss is restarted after the expiration date we get a general error in engine log: 
Error retreiving database metadata

and when we try to log in we get jboss exception in webadmin (see below) 


Version-Release number of selected component (if applicable):

ovirt-engine-backend-3.0.0_0001-3.git4364f1b.fc16.x86_64

How reproducible:

100%

Steps to Reproduce:
1. add expiration date to engine user in db 
2. try to add vm after expiration date
3. restart jboss 
  
Actual results:

we get an unclear error in backend and webadmin shows exception 

Expected results:

we should have a proper error message 

Additional info: full logs and guiwebadmin dump 

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

java.lang.IllegalStateException: JBAS011048: Failed to construct component instance
	org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:157)
	org.jboss.as.ee.component.BasicComponent.createInstance(BasicComponent.java:79)
	org.jboss.as.ejb3.component.singleton.SingletonComponent.getComponentInstance(SingletonComponent.java:138)
	org.jboss.as.ejb3.component.singleton.SingletonComponentInstanceAssociationInterceptor.processInvocation(SingletonComponentInstanceAssociationInterceptor.java:48)
	org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
	org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInNoTx(CMTTxInterceptor.java:221)
	org.jboss.as.ejb3.tx.CMTTxInterceptor.supports(CMTTxInterceptor.java:367)
	org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:205)
	org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
	org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)
	org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
	org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:44)
	org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
	org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:55)
	org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
	org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
	org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165)
	org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:173)
	org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
	org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
	org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:72)
	org.ovirt.engine.core.common.interfaces.BackendLocal$$$view11.RunQuery(Unknown Source)
	org.ovirt.engine.ui.frontend.server.gwt.GwtDynamicHostPageServlet.getLoggedInUser(GwtDynamicHostPageServlet.java:94)
	org.ovirt.engine.ui.frontend.server.gwt.GwtDynamicHostPageServlet.writeAdditionalJsData(GwtDynamicHostPageServlet.java:68)
	org.ovirt.engine.ui.frontend.server.gwt.GwtDynamicHostPageServlet.doGet(GwtDynamicHostPageServlet.java:53)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

Comment 1 Dafna Ron 2012-03-21 12:41:48 UTC
we also have the same issue when changing the usre's password through the db.

Comment 2 Itamar Heim 2012-12-13 08:12:47 UTC
Closing old bugs. If this issue is still relevant/important in current version, please re-open the bug.


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