Bug 805474 - ovirt-engine-core: exception error when engine db user is expired
ovirt-engine-core: exception error when engine db user is expired
Status: CLOSED WONTFIX
Product: oVirt
Classification: Community
Component: ovirt-engine-core (Show other bugs)
unspecified
x86_64 Linux
medium Severity medium
: ---
: ---
Assigned To: lpeer
infra
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-03-21 08:34 EDT by Dafna Ron
Modified: 2012-12-13 03:12 EST (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-12-13 03:12:47 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


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

  None (edit)
Description Dafna Ron 2012-03-21 08:34:18 EDT
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 08:41:48 EDT
we also have the same issue when changing the usre's password through the db.
Comment 2 Itamar Heim 2012-12-13 03:12:47 EST
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.