----- Original Message -----
> From: "Piotr Szubiakowski"<piotr.szubiakowski(a)nask.pl>
> To: "Eli Mesika"<emesika(a)redhat.com>
> Cc: users(a)ovirt.org
> Sent: Thursday, February 28, 2013 5:56:30 PM
> Subject: Re: [Users] oVirt 3.1 - engine configuration problem
>
>
>> Yes , it can be
>> only set
>> ENGINEEARLib to the place where the EAR are (under JBOSS_HOME
>> deployments dir)
>> CAEngineKey to point to the certificate key location
>>
>> the other entries are not related
>>
> Hi,
> I set these variables using psql command:
>
> psql ovirtdb postgres -c "update vdc_options set option_value =
> '/opt/jboss/jboss-as-7.1.1.Final/standalone/deployments/engine.ear'
> where option_name = 'ENGINEEARLib';"
> psql ovirtdb postgres -c "update vdc_options set option_value =
> '/opt/jboss/CA/ca/private/ca.pem' where option_name = 'CAEngineKey';
>
> in database looks like there is everything fine:
>
> ovirtdb=# select option_name, option_value from vdc_options where
> option_name IN ('CAEngineKey', 'ENGINEEARLib');
> option_name | option_value
> --------------+-------------------------------------------------------------------
> CAEngineKey | /opt/jboss/CA/ca/private/ca.pem
> ENGINEEARLib |
> /opt/jboss/jboss-as-7.1.1.Final/standalone/deployments/engine.ear
> (2 wiersze)
>
> However the problem still occurs. I set debug log level. The jboss
Did you restarted the oVirt service ?
Yes I restarted the oVirt service.
> logs:
>
> 2013-02-28 16:48:22,442 WARN
> [org.ovirt.engine.core.utils.ConfigUtilsBase] (MSC service thread
> 1-12)
> Could not find enum value for option: CbcCheckOnVdsChange
> 2013-02-28 16:48:22,675 ERROR
> [org.ovirt.engine.core.engineencryptutils.EncryptionUtils] (MSC
> service
> thread 1-12) Failed to decryptData must start with zero
> 2013-02-28 16:48:22,676 DEBUG
> [org.ovirt.engine.core.engineencryptutils.EncryptionUtils] (MSC
> service
> thread 1-12) Failed to decrypt: javax.crypto.BadPaddingException:
> Data
> must start with zero
> at sun.security.rsa.RSAPadding.unpadV15(RSAPadding.java:308)
> [rt.jar:1.6.0_38]
> at sun.security.rsa.RSAPadding.unpad(RSAPadding.java:255)
> [rt.jar:1.6.0_38]
> at com.sun.crypto.provider.RSACipher.a(DashoA13*..)
> at com.sun.crypto.provider.RSACipher.engineDoFinal(DashoA13*..)
> at javax.crypto.Cipher.doFinal(DashoA13*..) [jce.jar:1.6]
> at
>
org.ovirt.engine.core.engineencryptutils.EncryptionUtils.decrypt(EncryptionUtils.java:157)
> [engine-encryptutils.jar:]
> at
>
org.ovirt.engine.core.engineencryptutils.EncryptionUtils.decrypt(EncryptionUtils.java:141)
> [engine-encryptutils.jar:]
> at
>
org.ovirt.engine.core.dal.dbbroker.generic.DBConfigUtils.GetValue(DBConfigUtils.java:116)
> [engine-dal.jar:]
> at
>
org.ovirt.engine.core.dal.dbbroker.generic.DBConfigUtils.updateOption(DBConfigUtils.java:298)
> [engine-dal.jar:]
> at
>
org.ovirt.engine.core.dal.dbbroker.generic.DBConfigUtils.RefreshVdcOptionCache(DBConfigUtils.java:36)
> [engine-dal.jar:]
> at
>
org.ovirt.engine.core.dal.dbbroker.generic.DBConfigUtils.<init>(DBConfigUtils.java:178)
> [engine-dal.jar:]
> at
>
org.ovirt.engine.core.dal.dbbroker.generic.DBConfigUtils.<init>(DBConfigUtils.java:164)
> [engine-dal.jar:]
> at
> org.ovirt.engine.core.bll.Backend.Initialize(Backend.java:171)
> [engine-bll.jar:]
> at org.ovirt.engine.core.bll.Backend.create(Backend.java:119)
> [engine-bll.jar:]
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [rt.jar:1.6.0_38]
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> [rt.jar:1.6.0_38]
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> [rt.jar:1.6.0_38]
> at java.lang.reflect.Method.invoke(Method.java:597)
> [rt.jar:1.6.0_38]
> at
>
org.jboss.as.ee.component.ManagedReferenceLifecycleMethodInterceptorFactory$ManagedReferenceLifecycleMethodInterceptor.processInvocation(ManagedReferenceLifecycleMethodInterceptorFactory.java:130)
> [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
> at
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
> at
> org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
> at
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
> at
>
org.jboss.as.ee.component.ManagedReferenceFieldInjectionInterceptorFactory$ManagedReferenceFieldInjectionInterceptor.processInvocation(ManagedReferenceFieldInjectionInterceptorFactory.java:112)
> [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
> at
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
> at
> org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
> at
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
> at
>
org.jboss.as.ee.component.ManagedReferenceInterceptorFactory$ManagedReferenceInterceptor.processInvocation(ManagedReferenceInterceptorFactory.java:95)
> [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
> at
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
> at
>
org.jboss.as.ee.component.ManagedReferenceInterceptorFactory$ManagedReferenceInterceptor.processInvocation(ManagedReferenceInterceptorFactory.java:95)
> [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
> at
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
> at
> org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
> at
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
> at
>
org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
> [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
> at
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
> at
> org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:228)
> [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
> at
> org.jboss.as.ejb3.tx.CMTTxInterceptor.requiresNew(CMTTxInterceptor.java:333)
> [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
> at
>
org.jboss.as.ejb3.tx.SingletonLifecycleCMTTxInterceptor.processInvocation(SingletonLifecycleCMTTxInterceptor.java:56)
> [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
> at
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
> at
>
org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)
> [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
> at
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
> at
> org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45)
> [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
> at
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
> at
>
org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
> at
>
org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:161)
> [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
> at
> org.jboss.as.ee.component.BasicComponent.createInstance(BasicComponent.java:85)
> [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
> at
>
org.jboss.as.ejb3.component.singleton.SingletonComponent.getComponentInstance(SingletonComponent.java:116)
> [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
> at
>
org.jboss.as.ejb3.component.singleton.SingletonComponent.start(SingletonComponent.java:130)
> [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
> at
> org.jboss.as.ee.component.ComponentStartService.start(ComponentStartService.java:44)
> [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
> at
>
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
> at
>
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> [rt.jar:1.6.0_38]
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> [rt.jar:1.6.0_38]
> at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_38]
>
> 2013-02-28 16:48:22,719 ERROR
> [org.ovirt.engine.core.dal.dbbroker.generic.DBConfigUtils] (MSC
> service
> thread 1-12) Failed to decrypt value for property CertificatePassword
> will be used encrypted value
> 2013-02-28 16:48:22,726 WARN
> [org.ovirt.engine.core.utils.ConfigUtilsBase] (MSC service thread
> 1-12)
> Could not find enum value for option: CAEngineKey
> 2013-02-28 16:48:22,727 WARN
> [org.ovirt.engine.core.utils.ConfigUtilsBase] (MSC service thread
> 1-12)
> Could not find enum value for option: ENGINEEARLib
> 2013-02-28 16:48:22,735 WARN
> [org.ovirt.engine.core.utils.ConfigUtilsBase] (MSC service thread
> 1-12)
> Could not find enum value for option: MinimalETLVersion
> 2013-02-28 16:48:22,741 WARN
> [org.ovirt.engine.core.utils.ConfigUtilsBase] (MSC service thread
> 1-12)
> Could not find enum value for option: ScriptsPath
> 2013-02-28 16:48:22,744 WARN
> [org.ovirt.engine.core.utils.ConfigUtilsBase] (MSC service thread
> 1-12)
> Could not find enum value for option: SQLServerI18NPrefix
> 2013-02-28 16:48:22,795 ERROR
> [org.ovirt.engine.core.engineencryptutils.EncryptionUtils] (MSC
> service
> thread 1-12) Failed to decryptData must start with zero
> 2013-02-28 16:48:22,796 DEBUG
> [org.ovirt.engine.core.engineencryptutils.EncryptionUtils] (MSC
> service
> thread 1-12) Failed to decrypt: javax.crypto.BadPaddingException:
> Data
> must start with zero
> at sun.security.rsa.RSAPadding.unpadV15(RSAPadding.java:308)
> [rt.jar:1.6.0_38]
> at sun.security.rsa.RSAPadding.unpad(RSAPadding.java:255)
> [rt.jar:1.6.0_38]
> at com.sun.crypto.provider.RSACipher.a(DashoA13*..)
> at com.sun.crypto.provider.RSACipher.engineDoFinal(DashoA13*..)
> at javax.crypto.Cipher.doFinal(DashoA13*..) [jce.jar:1.6]
> at
>
org.ovirt.engine.core.engineencryptutils.EncryptionUtils.decrypt(EncryptionUtils.java:157)
> [engine-encryptutils.jar:]
> at
>
org.ovirt.engine.core.engineencryptutils.EncryptionUtils.decrypt(EncryptionUtils.java:141)
> [engine-encryptutils.jar:]
> at
>
org.ovirt.engine.core.dal.dbbroker.generic.DBConfigUtils.GetValue(DBConfigUtils.java:116)
> [engine-dal.jar:]
> at
>
org.ovirt.engine.core.dal.dbbroker.generic.DBConfigUtils.updateOption(DBConfigUtils.java:298)
> [engine-dal.jar:]
> at
>
org.ovirt.engine.core.dal.dbbroker.generic.DBConfigUtils.RefreshVdcOptionCache(DBConfigUtils.java:36)
> [engine-dal.jar:]
> at
>
org.ovirt.engine.core.dal.dbbroker.generic.DBConfigUtils.<init>(DBConfigUtils.java:178)
> [engine-dal.jar:]
> at
>
org.ovirt.engine.core.dal.dbbroker.generic.DBConfigUtils.<init>(DBConfigUtils.java:164)
> [engine-dal.jar:]
> at
> org.ovirt.engine.core.bll.Backend.Initialize(Backend.java:171)
> [engine-bll.jar:]
> at org.ovirt.engine.core.bll.Backend.create(Backend.java:119)
> [engine-bll.jar:]
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [rt.jar:1.6.0_38]
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> [rt.jar:1.6.0_38]
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> [rt.jar:1.6.0_38]
> at java.lang.reflect.Method.invoke(Method.java:597)
> [rt.jar:1.6.0_38]
> at
>
org.jboss.as.ee.component.ManagedReferenceLifecycleMethodInterceptorFactory$ManagedReferenceLifecycleMethodInterceptor.processInvocation(ManagedReferenceLifecycleMethodInterceptorFactory.java:130)
> [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
> at
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
> at
> org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
> at
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
> at
>
org.jboss.as.ee.component.ManagedReferenceFieldInjectionInterceptorFactory$ManagedReferenceFieldInjectionInterceptor.processInvocation(ManagedReferenceFieldInjectionInterceptorFactory.java:112)
> [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
> at
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
> at
> org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
> at
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
> at
>
org.jboss.as.ee.component.ManagedReferenceInterceptorFactory$ManagedReferenceInterceptor.processInvocation(ManagedReferenceInterceptorFactory.java:95)
> [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
> at
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
> at
>
org.jboss.as.ee.component.ManagedReferenceInterceptorFactory$ManagedReferenceInterceptor.processInvocation(ManagedReferenceInterceptorFactory.java:95)
> [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
> at
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
> at
> org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
> at
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
> at
>
org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
> [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
> at
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
> at
> org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:228)
> [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
> at
> org.jboss.as.ejb3.tx.CMTTxInterceptor.requiresNew(CMTTxInterceptor.java:333)
> [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
> at
>
org.jboss.as.ejb3.tx.SingletonLifecycleCMTTxInterceptor.processInvocation(SingletonLifecycleCMTTxInterceptor.java:56)
> [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
> at
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
> at
>
org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)
> [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
> at
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
> at
> org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45)
> [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
> at
> org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
> at
>
org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
> [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
> at
>
org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:161)
> [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
> at
> org.jboss.as.ee.component.BasicComponent.createInstance(BasicComponent.java:85)
> [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
> at
>
org.jboss.as.ejb3.component.singleton.SingletonComponent.getComponentInstance(SingletonComponent.java:116)
> [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
> at
>
org.jboss.as.ejb3.component.singleton.SingletonComponent.start(SingletonComponent.java:130)
> [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
> at
> org.jboss.as.ee.component.ComponentStartService.start(ComponentStartService.java:44)
> [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
> at
>
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
> at
>
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> [rt.jar:1.6.0_38]
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> [rt.jar:1.6.0_38]
> at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_38]
>
> 2013-02-28 16:48:22,823 ERROR
> [org.ovirt.engine.core.dal.dbbroker.generic.DBConfigUtils] (MSC
> service
> thread 1-12) Failed to decrypt value for property TruststorePass will
> be
> used encrypted value
>
>
> have you any idea what is wrong?
>
> Many thanks,
> Piotr
>
>
>
>
>
>