Bug 805474

Summary: ovirt-engine-core: exception error when engine db user is expired
Product: [Retired] oVirt Reporter: Dafna Ron <dron>
Component: ovirt-engine-coreAssignee: lpeer <lpeer>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: acathrow, bazulay, iheim, ykaul
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: infra
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-13 08:12:47 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
logs none

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.