[Users] oVirt 3.1 - engine configuration problem

Hi, I'm building oVirt engine 3.1 from source on Scientific Linux 6.3. I'm working on branch origin/engine_3.1. During startup the application throws following error: 2013-02-21 11:53:33,768 WARN [org.ovirt.engine.core.utils.ConfigUtilsBase] (MSC service thread 1-22) Could not find enum value for option: CbcCheckOnVdsChange 2013-02-21 11:53:33,995 ERROR [org.ovirt.engine.core.engineencryptutils.EncryptionUtils] (MSC service thread 1-22) Failed to decryptData must start with zero 2013-02-21 11:53:33,996 ERROR [org.ovirt.engine.core.dal.dbbroker.generic.DBConfigUtils] (MSC service thread 1-22) Failed to decrypt value for property CertificatePassword will be used encrypted value 2013-02-21 11:53:34,000 WARN [org.ovirt.engine.core.utils.ConfigUtilsBase] (MSC service thread 1-22) Could not find enum value for option: ENGINEEARLib 2013-02-21 11:53:34,001 WARN [org.ovirt.engine.core.utils.ConfigUtilsBase] (MSC service thread 1-22) Could not find enum value for option: CAEngineKey 2013-02-21 11:53:34,008 ERROR [org.ovirt.engine.core.engineencryptutils.EncryptionUtils] (MSC service thread 1-22) Failed to decryptData must start with zero 2013-02-21 11:53:34,009 ERROR [org.ovirt.engine.core.dal.dbbroker.generic.DBConfigUtils] (MSC service thread 1-22) Failed to decrypt value for property AdminPassword will be used encrypted value 2013-02-21 11:53:34,015 ERROR [org.ovirt.engine.core.engineencryptutils.EncryptionUtils] (MSC service thread 1-22) Failed to decryptData must start with zero 2013-02-21 11:53:34,015 ERROR [org.ovirt.engine.core.dal.dbbroker.generic.DBConfigUtils] (MSC service thread 1-22) Failed to decrypt value for property LocalAdminPassword will be used encrypted value 2013-02-21 11:53:34,020 WARN [org.ovirt.engine.core.utils.ConfigUtilsBase] (MSC service thread 1-22) Could not find enum value for option: MinimalETLVersion 2013-02-21 11:53:34,024 WARN [org.ovirt.engine.core.utils.ConfigUtilsBase] (MSC service thread 1-22) Could not find enum value for option: ScriptsPath 2013-02-21 11:53:34,025 WARN [org.ovirt.engine.core.utils.ConfigUtilsBase] (MSC service thread 1-22) Could not find enum value for option: SQLServerI18NPrefix 2013-02-21 11:53:34,071 ERROR [org.ovirt.engine.core.engineencryptutils.EncryptionUtils] (MSC service thread 1-22) Failed to decryptData must start with zero 2013-02-21 11:53:34,072 ERROR [org.ovirt.engine.core.dal.dbbroker.generic.DBConfigUtils] (MSC service thread 1-22) Failed to decrypt value for property TruststorePass will be used encrypted value It seams to be a configuration problem. I followed this manual http://www.ovirt.org/Engine_Node_Integration (section Engine core machine). Is this manual up to date? Best regarts, Piotr

----- Original Message -----
From: "Piotr Szubiakowski" <piotr.szubiakowski@nask.pl> To: users@ovirt.org Sent: Thursday, February 21, 2013 1:30:25 PM Subject: [Users] oVirt 3.1 - engine configuration problem
Hi, I'm building oVirt engine 3.1 from source on Scientific Linux 6.3. I'm working on branch origin/engine_3.1. During startup the application throws following error:
2013-02-21 11:53:33,768 WARN [org.ovirt.engine.core.utils.ConfigUtilsBase] (MSC service thread 1-22) Could not find enum value for option: CbcCheckOnVdsChange 2013-02-21 11:53:33,995 ERROR [org.ovirt.engine.core.engineencryptutils.EncryptionUtils] (MSC service thread 1-22) Failed to decryptData must start with zero 2013-02-21 11:53:33,996 ERROR [org.ovirt.engine.core.dal.dbbroker.generic.DBConfigUtils] (MSC service thread 1-22) Failed to decrypt value for property CertificatePassword will be used encrypted value 2013-02-21 11:53:34,000 WARN [org.ovirt.engine.core.utils.ConfigUtilsBase] (MSC service thread 1-22) Could not find enum value for option: ENGINEEARLib 2013-02-21 11:53:34,001 WARN [org.ovirt.engine.core.utils.ConfigUtilsBase] (MSC service thread 1-22) Could not find enum value for option: CAEngineKey 2013-02-21 11:53:34,008 ERROR [org.ovirt.engine.core.engineencryptutils.EncryptionUtils] (MSC service thread 1-22) Failed to decryptData must start with zero 2013-02-21 11:53:34,009 ERROR [org.ovirt.engine.core.dal.dbbroker.generic.DBConfigUtils] (MSC service thread 1-22) Failed to decrypt value for property AdminPassword will be used encrypted value 2013-02-21 11:53:34,015 ERROR [org.ovirt.engine.core.engineencryptutils.EncryptionUtils] (MSC service thread 1-22) Failed to decryptData must start with zero 2013-02-21 11:53:34,015 ERROR [org.ovirt.engine.core.dal.dbbroker.generic.DBConfigUtils] (MSC service thread 1-22) Failed to decrypt value for property LocalAdminPassword will be used encrypted value 2013-02-21 11:53:34,020 WARN [org.ovirt.engine.core.utils.ConfigUtilsBase] (MSC service thread 1-22) Could not find enum value for option: MinimalETLVersion 2013-02-21 11:53:34,024 WARN [org.ovirt.engine.core.utils.ConfigUtilsBase] (MSC service thread 1-22) Could not find enum value for option: ScriptsPath 2013-02-21 11:53:34,025 WARN [org.ovirt.engine.core.utils.ConfigUtilsBase] (MSC service thread 1-22) Could not find enum value for option: SQLServerI18NPrefix 2013-02-21 11:53:34,071 ERROR [org.ovirt.engine.core.engineencryptutils.EncryptionUtils] (MSC service thread 1-22) Failed to decryptData must start with zero 2013-02-21 11:53:34,072 ERROR [org.ovirt.engine.core.dal.dbbroker.generic.DBConfigUtils] (MSC service thread 1-22) Failed to decrypt value for property TruststorePass will be used encrypted value
It seams to be a configuration problem. I followed this manual http://www.ovirt.org/Engine_Node_Integration (section Engine core machine). Is this manual up to date?
Hi It seems that you have some hosts with Power Management configured and that some agent passwords are still stored as plain-text Please try the following For each host with PM Edit the Host Enter gain the PM agent password Save your changes Let me know if this solves the problem
Best regarts, Piotr _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

----- Original Message -----
From: "Piotr Szubiakowski"<piotr.szubiakowski@nask.pl> To: users@ovirt.org Sent: Thursday, February 21, 2013 1:30:25 PM Subject: [Users] oVirt 3.1 - engine configuration problem
Hi, I'm building oVirt engine 3.1 from source on Scientific Linux 6.3. I'm working on branch origin/engine_3.1. During startup the application throws following error:
2013-02-21 11:53:33,768 WARN [org.ovirt.engine.core.utils.ConfigUtilsBase] (MSC service thread 1-22) Could not find enum value for option: CbcCheckOnVdsChange 2013-02-21 11:53:33,995 ERROR [org.ovirt.engine.core.engineencryptutils.EncryptionUtils] (MSC service thread 1-22) Failed to decryptData must start with zero 2013-02-21 11:53:33,996 ERROR [org.ovirt.engine.core.dal.dbbroker.generic.DBConfigUtils] (MSC service thread 1-22) Failed to decrypt value for property CertificatePassword will be used encrypted value 2013-02-21 11:53:34,000 WARN [org.ovirt.engine.core.utils.ConfigUtilsBase] (MSC service thread 1-22) Could not find enum value for option: ENGINEEARLib 2013-02-21 11:53:34,001 WARN [org.ovirt.engine.core.utils.ConfigUtilsBase] (MSC service thread 1-22) Could not find enum value for option: CAEngineKey 2013-02-21 11:53:34,008 ERROR [org.ovirt.engine.core.engineencryptutils.EncryptionUtils] (MSC service thread 1-22) Failed to decryptData must start with zero 2013-02-21 11:53:34,009 ERROR [org.ovirt.engine.core.dal.dbbroker.generic.DBConfigUtils] (MSC service thread 1-22) Failed to decrypt value for property AdminPassword will be used encrypted value 2013-02-21 11:53:34,015 ERROR [org.ovirt.engine.core.engineencryptutils.EncryptionUtils] (MSC service thread 1-22) Failed to decryptData must start with zero 2013-02-21 11:53:34,015 ERROR [org.ovirt.engine.core.dal.dbbroker.generic.DBConfigUtils] (MSC service thread 1-22) Failed to decrypt value for property LocalAdminPassword will be used encrypted value 2013-02-21 11:53:34,020 WARN [org.ovirt.engine.core.utils.ConfigUtilsBase] (MSC service thread 1-22) Could not find enum value for option: MinimalETLVersion 2013-02-21 11:53:34,024 WARN [org.ovirt.engine.core.utils.ConfigUtilsBase] (MSC service thread 1-22) Could not find enum value for option: ScriptsPath 2013-02-21 11:53:34,025 WARN [org.ovirt.engine.core.utils.ConfigUtilsBase] (MSC service thread 1-22) Could not find enum value for option: SQLServerI18NPrefix 2013-02-21 11:53:34,071 ERROR [org.ovirt.engine.core.engineencryptutils.EncryptionUtils] (MSC service thread 1-22) Failed to decryptData must start with zero 2013-02-21 11:53:34,072 ERROR [org.ovirt.engine.core.dal.dbbroker.generic.DBConfigUtils] (MSC service thread 1-22) Failed to decrypt value for property TruststorePass will be used encrypted value
It seams to be a configuration problem. I followed this manual http://www.ovirt.org/Engine_Node_Integration (section Engine core machine). Is this manual up to date?
Hi It seems that you have some hosts with Power Management configured and that some agent passwords are still stored as plain-text Please try the following For each host with PM Edit the Host Enter gain the PM agent password Save your changes
Let me know if this solves the problem
Thanks for the response, I have clean database, just created by create_db_devel.sh script. I haven't add any hosts jet. The only changes I made on database were queries described in engine_node_integration manual. Best regards, Piotr

----- Original Message -----
From: "Piotr Szubiakowski" <piotr.szubiakowski@nask.pl> To: "Eli Mesika" <emesika@redhat.com> Cc: users@ovirt.org Sent: Thursday, February 21, 2013 2:03:48 PM Subject: Re: [Users] oVirt 3.1 - engine configuration problem
----- Original Message -----
From: "Piotr Szubiakowski"<piotr.szubiakowski@nask.pl> To: users@ovirt.org Sent: Thursday, February 21, 2013 1:30:25 PM Subject: [Users] oVirt 3.1 - engine configuration problem
Hi, I'm building oVirt engine 3.1 from source on Scientific Linux 6.3. I'm working on branch origin/engine_3.1. During startup the application throws following error:
2013-02-21 11:53:33,768 WARN [org.ovirt.engine.core.utils.ConfigUtilsBase] (MSC service thread 1-22) Could not find enum value for option: CbcCheckOnVdsChange 2013-02-21 11:53:33,995 ERROR [org.ovirt.engine.core.engineencryptutils.EncryptionUtils] (MSC service thread 1-22) Failed to decryptData must start with zero 2013-02-21 11:53:33,996 ERROR [org.ovirt.engine.core.dal.dbbroker.generic.DBConfigUtils] (MSC service thread 1-22) Failed to decrypt value for property CertificatePassword will be used encrypted value 2013-02-21 11:53:34,000 WARN [org.ovirt.engine.core.utils.ConfigUtilsBase] (MSC service thread 1-22) Could not find enum value for option: ENGINEEARLib 2013-02-21 11:53:34,001 WARN [org.ovirt.engine.core.utils.ConfigUtilsBase] (MSC service thread 1-22) Could not find enum value for option: CAEngineKey 2013-02-21 11:53:34,008 ERROR [org.ovirt.engine.core.engineencryptutils.EncryptionUtils] (MSC service thread 1-22) Failed to decryptData must start with zero 2013-02-21 11:53:34,009 ERROR [org.ovirt.engine.core.dal.dbbroker.generic.DBConfigUtils] (MSC service thread 1-22) Failed to decrypt value for property AdminPassword will be used encrypted value 2013-02-21 11:53:34,015 ERROR [org.ovirt.engine.core.engineencryptutils.EncryptionUtils] (MSC service thread 1-22) Failed to decryptData must start with zero 2013-02-21 11:53:34,015 ERROR [org.ovirt.engine.core.dal.dbbroker.generic.DBConfigUtils] (MSC service thread 1-22) Failed to decrypt value for property LocalAdminPassword will be used encrypted value 2013-02-21 11:53:34,020 WARN [org.ovirt.engine.core.utils.ConfigUtilsBase] (MSC service thread 1-22) Could not find enum value for option: MinimalETLVersion 2013-02-21 11:53:34,024 WARN [org.ovirt.engine.core.utils.ConfigUtilsBase] (MSC service thread 1-22) Could not find enum value for option: ScriptsPath 2013-02-21 11:53:34,025 WARN [org.ovirt.engine.core.utils.ConfigUtilsBase] (MSC service thread 1-22) Could not find enum value for option: SQLServerI18NPrefix 2013-02-21 11:53:34,071 ERROR [org.ovirt.engine.core.engineencryptutils.EncryptionUtils] (MSC service thread 1-22) Failed to decryptData must start with zero 2013-02-21 11:53:34,072 ERROR [org.ovirt.engine.core.dal.dbbroker.generic.DBConfigUtils] (MSC service thread 1-22) Failed to decrypt value for property TruststorePass will be used encrypted value
It seams to be a configuration problem. I followed this manual http://www.ovirt.org/Engine_Node_Integration (section Engine core machine). Is this manual up to date?
Hi It seems that you have some hosts with Power Management configured and that some agent passwords are still stored as plain-text Please try the following For each host with PM Edit the Host Enter gain the PM agent password Save your changes
Let me know if this solves the problem
Thanks for the response, I have clean database, just created by create_db_devel.sh script. I haven't add any hosts jet. The only changes I made on database were queries described in engine_node_integration manual.
can you please provide the result of
psql -U engine -c "select count(*) from vds_static where pm_enabled;" engine
Thanks
Best regards, Piotr

I have exported a couple of VMs to an export domain and did a new setup of ovirt-engine. Importing is no problem as long as I import all machines first and then create new VMs. If I first create a couple of VM's and then try to import I get the error that the mac address is already in use. No problem, but I don't see an option to change the mac address of the to be imported machine so can't import it. Finding the active VM with the offending mac address is possible but not really the way to go IMHO. Is there an other route to get those VM's imported? Thanks, Joop van de Wege -- irc: jvandewege

On 21-2-2013 14:07, noc wrote:
I have exported a couple of VMs to an export domain and did a new setup of ovirt-engine. Importing is no problem as long as I import all machines first and then create new VMs. If I first create a couple of VM's and then try to import I get the error that the mac address is already in use. No problem, but I don't see an option to change the mac address of the to be imported machine so can't import it. Finding the active VM with the offending mac address is possible but not really the way to go IMHO.
Is there an other route to get those VM's imported? Sorry forgot to mention that this is oVirt-3.2 stable on Fedora 18 engine en hosts.
Joop

Hi, This is indeed the current behavior. The issue will be solved in the near future, and the new behavior will allow importing the VM, while unplugging the specific network interface. In the mean time, you can set the "AllowDuplicateMacAddresses" flag to true (either using the engine-config tool, or directly in the DB in table vdc_options). Obviously, having two network interfaces with the same MAC address is highly unrecommended. Muli ----- Original Message -----
From: "noc" <noc@nieuwland.nl> To: users@ovirt.org Sent: Thursday, 21 February, 2013 3:13:30 PM Subject: Re: [Users] VM Export and import problem
On 21-2-2013 14:07, noc wrote:
I have exported a couple of VMs to an export domain and did a new setup of ovirt-engine. Importing is no problem as long as I import all machines first and then create new VMs. If I first create a couple of VM's and then try to import I get the error that the mac address is already in use. No problem, but I don't see an option to change the mac address of the to be imported machine so can't import it. Finding the active VM with the offending mac address is possible but not really the way to go IMHO.
Is there an other route to get those VM's imported? Sorry forgot to mention that this is oVirt-3.2 stable on Fedora 18 engine en hosts.
Joop
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

Muli Salem wrote:
Hi,
This is indeed the current behavior. The issue will be solved in the near future, and the new behavior will allow importing the VM, while unplugging the specific network interface.
What would be real nice is a selection dialog window for mac addresses from a pool(manager) I have an 'old' xen virtualisation solution running which has quite a few features that I would like to see in oVirt, mac address pool manager is one of them.
In the mean time, you can set the "AllowDuplicateMacAddresses" flag to true (either using the engine-config tool, or directly in the DB in table vdc_options). Obviously, having two network interfaces with the same MAC address is highly unrecommended.
Understood, use clone to circumvent this problem, only need to remove /etc/udev/rules.d/xx-net.rules and then the network will come up. Joop -- irc: jvandewege

Hi, $ psql -U postgres -c "select count(*) from vds_static where pm_enabled;" ovirtdb count ------- 0 (1 wiersz) the table is empty. Maybe there is a problem with encryption of engine admin password. I think that this password is in plain text. Best regards, Piotr W dniu 21.02.2013 14:00, Eli Mesika pisze:
psql -U engine -c "select count(*) from vds_static where pm_enabled;" engine

----- Original Message -----
From: "Piotr Szubiakowski" <piotr.szubiakowski@nask.pl> To: "Eli Mesika" <emesika@redhat.com> Cc: users@ovirt.org Sent: Thursday, February 21, 2013 3:15:19 PM Subject: Re: [Users] oVirt 3.1 - engine configuration problem
Hi,
$ psql -U postgres -c "select count(*) from vds_static where pm_enabled;" ovirtdb count ------- 0 (1 wiersz)
the table is empty. Maybe there is a problem with encryption of engine admin password. I think that this password is in plain text.
OK, can you please use teh engine-config utility to set the following configuration keys again: AdminPassword LocalAdminPassword
Best regards, Piotr
W dniu 21.02.2013 14:00, Eli Mesika pisze:
psql -U engine -c "select count(*) from vds_static where pm_enabled;" engine

----- Original Message -----
From: "Piotr Szubiakowski"<piotr.szubiakowski@nask.pl> To: "Eli Mesika"<emesika@redhat.com> Cc: users@ovirt.org Sent: Thursday, February 21, 2013 3:15:19 PM Subject: Re: [Users] oVirt 3.1 - engine configuration problem
Hi,
$ psql -U postgres -c "select count(*) from vds_static where pm_enabled;" ovirtdb count ------- 0 (1 wiersz)
the table is empty. Maybe there is a problem with encryption of engine admin password. I think that this password is in plain text. OK, can you please use teh engine-config utility to set the following configuration keys again:
AdminPassword LocalAdminPassword
Hi, sorry it took me so long to respond. I had some problems with establishing engin-config tool on Scientific Linux (I coudn't find anywhere the build-classpath executable which is used in engine-config script). After successful changing of AdminPassword and LocalAdminPassword the problem still occurs: 2013-02-27 16:25:27,722 WARN [org.ovirt.engine.core.utils.ConfigUtilsBase] (MSC service thread 1-13) Could not find enum value for option: CbcCheckOnVdsChange 2013-02-27 16:25:28,034 ERROR [org.ovirt.engine.core.engineencryptutils.EncryptionUtils] (MSC service thread 1-13) Failed to decryptData must start with zero 2013-02-27 16:25:28,036 ERROR [org.ovirt.engine.core.dal.dbbroker.generic.DBConfigUtils] (MSC service thread 1-13) Failed to decrypt value for property CertificatePassword will be used encrypted value 2013-02-27 16:25:28,042 WARN [org.ovirt.engine.core.utils.ConfigUtilsBase] (MSC service thread 1-13) Could not find enum value for option: ENGINEEARLib 2013-02-27 16:25:28,044 WARN [org.ovirt.engine.core.utils.ConfigUtilsBase] (MSC service thread 1-13) Could not find enum value for option: CAEngineKey 2013-02-27 16:25:28,053 WARN [org.ovirt.engine.core.utils.ConfigUtilsBase] (MSC service thread 1-13) Could not find enum value for option: MinimalETLVersion 2013-02-27 16:25:28,056 WARN [org.ovirt.engine.core.utils.ConfigUtilsBase] (MSC service thread 1-13) Could not find enum value for option: ScriptsPath 2013-02-27 16:25:28,058 WARN [org.ovirt.engine.core.utils.ConfigUtilsBase] (MSC service thread 1-13) Could not find enum value for option: SQLServerI18NPrefix 2013-02-27 16:25:28,111 ERROR [org.ovirt.engine.core.engineencryptutils.EncryptionUtils] (MSC service thread 1-13) Failed to decryptData must start with zero 2013-02-27 16:25:28,112 ERROR [org.ovirt.engine.core.dal.dbbroker.generic.DBConfigUtils] (MSC service thread 1-13) Failed to decrypt value for property TruststorePass will be used encrypted value Is this possible that problem is cased because CbcCheckOnVdsChange, ENGINEEARLib, CAEngineKey, MinimalETLVersion, ScriptsPath and SQLServerI18NPrefix variables aren't set properly? What values should these variables have? Thanks, Piotr

----- Original Message -----
From: "Piotr Szubiakowski" <piotr.szubiakowski@nask.pl> To: "Eli Mesika" <emesika@redhat.com> Cc: users@ovirt.org Sent: Wednesday, February 27, 2013 5:57:06 PM Subject: Re: [Users] oVirt 3.1 - engine configuration problem
----- Original Message -----
From: "Piotr Szubiakowski"<piotr.szubiakowski@nask.pl> To: "Eli Mesika"<emesika@redhat.com> Cc: users@ovirt.org Sent: Thursday, February 21, 2013 3:15:19 PM Subject: Re: [Users] oVirt 3.1 - engine configuration problem
Hi,
$ psql -U postgres -c "select count(*) from vds_static where pm_enabled;" ovirtdb count ------- 0 (1 wiersz)
the table is empty. Maybe there is a problem with encryption of engine admin password. I think that this password is in plain text. OK, can you please use teh engine-config utility to set the following configuration keys again:
AdminPassword LocalAdminPassword
Hi, sorry it took me so long to respond. I had some problems with establishing engin-config tool on Scientific Linux (I coudn't find anywhere the build-classpath executable which is used in engine-config script). After successful changing of AdminPassword and LocalAdminPassword the problem still occurs:
2013-02-27 16:25:27,722 WARN [org.ovirt.engine.core.utils.ConfigUtilsBase] (MSC service thread 1-13) Could not find enum value for option: CbcCheckOnVdsChange 2013-02-27 16:25:28,034 ERROR [org.ovirt.engine.core.engineencryptutils.EncryptionUtils] (MSC service thread 1-13) Failed to decryptData must start with zero 2013-02-27 16:25:28,036 ERROR [org.ovirt.engine.core.dal.dbbroker.generic.DBConfigUtils] (MSC service thread 1-13) Failed to decrypt value for property CertificatePassword will be used encrypted value 2013-02-27 16:25:28,042 WARN [org.ovirt.engine.core.utils.ConfigUtilsBase] (MSC service thread 1-13) Could not find enum value for option: ENGINEEARLib 2013-02-27 16:25:28,044 WARN [org.ovirt.engine.core.utils.ConfigUtilsBase] (MSC service thread 1-13) Could not find enum value for option: CAEngineKey 2013-02-27 16:25:28,053 WARN [org.ovirt.engine.core.utils.ConfigUtilsBase] (MSC service thread 1-13) Could not find enum value for option: MinimalETLVersion 2013-02-27 16:25:28,056 WARN [org.ovirt.engine.core.utils.ConfigUtilsBase] (MSC service thread 1-13) Could not find enum value for option: ScriptsPath 2013-02-27 16:25:28,058 WARN [org.ovirt.engine.core.utils.ConfigUtilsBase] (MSC service thread 1-13) Could not find enum value for option: SQLServerI18NPrefix 2013-02-27 16:25:28,111 ERROR [org.ovirt.engine.core.engineencryptutils.EncryptionUtils] (MSC service thread 1-13) Failed to decryptData must start with zero 2013-02-27 16:25:28,112 ERROR [org.ovirt.engine.core.dal.dbbroker.generic.DBConfigUtils] (MSC service thread 1-13) Failed to decrypt value for property TruststorePass will be used encrypted value
Is this possible that problem is cased because CbcCheckOnVdsChange, ENGINEEARLib, CAEngineKey, MinimalETLVersion, ScriptsPath and SQLServerI18NPrefix variables aren't set properly? What values should these variables have? 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
Thanks, Piotr

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 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

----- Original Message -----
From: "Piotr Szubiakowski" <piotr.szubiakowski@nask.pl> To: "Eli Mesika" <emesika@redhat.com> Cc: users@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 ?
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

----- Original Message -----
From: "Piotr Szubiakowski"<piotr.szubiakowski@nask.pl> To: "Eli Mesika"<emesika@redhat.com> Cc: users@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

On 28/02/2013 18:10, Piotr Szubiakowski wrote:
----- Original Message -----
From: "Piotr Szubiakowski"<piotr.szubiakowski@nask.pl> To: "Eli Mesika"<emesika@redhat.com> Cc: users@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.
you ignored the version field - set it to 'general'.

On 28/02/2013 18:10, Piotr Szubiakowski wrote:
----- Original Message -----
From: "Piotr Szubiakowski"<piotr.szubiakowski@nask.pl> To: "Eli Mesika"<emesika@redhat.com> Cc: users@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.
you ignored the version field - set it to 'general'.
Hi, I set option to general and the problem still occurs. I decided to install oVirt from rpm on Fedora and compare the configuration. Many thanks for help :-) Regards, Piotr
participants (6)
-
Eli Mesika
-
Itamar Heim
-
Joop
-
Muli Salem
-
noc
-
Piotr Szubiakowski