To avoid this ptoblem with jboss-as-7.1.1.Final one must patch 
/etc/pki/ovirt-engine/encryptpasswd.sh

#diff encryptpasswd.sh.old encryptpasswd.sh
40c40
< $JAVA_BIN -cp 
"./modules/org/jboss/logging/main/jboss-logging-3.1.0.CR2.jar:./modules/org/picketbox/main/picketbox-4.0.6.Beta1.jar"
 org.picketbox.datasource.security.SecureIdentityLoginModule $1
---
> $JAVA_BIN -cp 
> "./modules/org/jboss/logging/main/jboss-logging-3.1.0.GA.jar:./modules/org/picketbox/main/picketbox-4.0.7.Final.jar"
>  org.picketbox.datasource.security.SecureIdentityLoginModule $1

Чтв 17 Май 2012 17:26:57 +0400, ov...@qip.ru написал:
I installed jboss-as-7.1.1.Final from zips, as described here

http://www.ovirt.org/wiki/Building_Ovirt_Engine

then yum localinstall engine rpm's from last jenkins build

during engine-setup i got error

Setting Database Security...                          [ ERROR ]
Error while parsing encrypted jboss password
Please check log file 
/var/log/ovirt-engine/engine-setup_2012_05_17_17_01_38.log for more information

# tail -60 /var/log/ovirt-engine/engine-setup_2012_05_17_17_01_38.log
2012-05-17 17:02:29::DEBUG::common_utils::292::root:: stderr = psql: FATAL:  
database "engine" does not exist

2012-05-17 17:02:29::DEBUG::common_utils::293::root:: retcode = 2
2012-05-17 17:02:29::DEBUG::engine-setup::1991::root:: Checking if db is 
already installed..
2012-05-17 17:02:29::DEBUG::engine-setup::1992::root:: Checking the presence of 
.pgpass file
2012-05-17 17:02:29::DEBUG::common_utils::350::root:: running sql query 'select 
1' on db server: 'localhost'.
2012-05-17 17:02:29::DEBUG::common_utils::286::root:: cmd = /usr/bin/psql -h 
localhost -p 5432 -U postgres -d engine -c "select 1"
2012-05-17 17:02:29::DEBUG::common_utils::291::root:: output =
2012-05-17 17:02:29::DEBUG::common_utils::292::root:: stderr = psql: FATAL:  
database "engine" does not exist

2012-05-17 17:02:29::DEBUG::common_utils::293::root:: retcode = 2
2012-05-17 17:02:29::DEBUG::setup_sequences::58::root:: running _encryptDBPass
2012-05-17 17:02:29::DEBUG::common_utils::309::root:: Executing command --> 
'/etc/pki/ovirt-engine/encryptpasswd.sh ********'
2012-05-17 17:02:29::DEBUG::common_utils::335::root:: output = 
/usr/share/jboss-as ~/db-backups
~/db-backups

2012-05-17 17:02:29::DEBUG::common_utils::336::root:: stderr = Exception in 
thread "main" java.lang.NoClassDefFoundError: 
org/picketbox/datasource/security/SecureIdentityLoginModule
Caused by: java.lang.ClassNotFoundException: 
org.picketbox.datasource.security.SecureIdentityLoginModule
        at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: 
org.picketbox.datasource.security.SecureIdentityLoginModule. Program will exit.

2012-05-17 17:02:29::DEBUG::common_utils::337::root:: retcode = 0
2012-05-17 17:02:29::DEBUG::engine-setup::1983::root:: *** The following params 
were used as user input:
2012-05-17 17:02:29::DEBUG::engine-setup::1988::root:: override-httpd-config: 
yes
2012-05-17 17:02:29::DEBUG::engine-setup::1988::root:: http-port: 80
2012-05-17 17:02:29::DEBUG::engine-setup::1988::root:: https-port: 443
2012-05-17 17:02:29::DEBUG::engine-setup::1988::root:: mac-range: 
00:1A:4A:A8:83:00-00:1A:4A:A8:83:FF
2012-05-17 17:02:29::DEBUG::engine-setup::1988::root:: host-fqdn: 
fed16-ovirt31.rakurs.com
2012-05-17 17:02:29::DEBUG::engine-setup::1988::root:: auth-pass: ********
2012-05-17 17:02:29::DEBUG::engine-setup::1988::root:: org-name: Rakurs
2012-05-17 17:02:29::DEBUG::engine-setup::1988::root:: default-dc-type: ISCSI
2012-05-17 17:02:29::DEBUG::engine-setup::1988::root:: db-remote-install: local
2012-05-17 17:02:29::DEBUG::engine-setup::1988::root:: db-host: localhost
2012-05-17 17:02:29::DEBUG::engine-setup::1988::root:: db-local-pass: ********
2012-05-17 17:02:29::DEBUG::engine-setup::1988::root:: config-nfs: no
2012-05-17 17:02:29::DEBUG::engine-setup::1988::root:: override-iptables: no
2012-05-17 17:02:29::ERROR::engine-setup::2709::root:: Traceback (most recent 
call last):
  File "/usr/bin/engine-setup", line 2703, in 
    main(confFile)
  File "/usr/bin/engine-setup", line 2494, in main
    runSequences()
  File "/usr/bin/engine-setup", line 2440, in runSequences
    controller.runAllSequences()
  File "/usr/share/ovirt-engine/scripts/setup_controller.py", line 54, in 
runAllSequences
    sequence.run()
  File "/usr/share/ovirt-engine/scripts/setup_sequences.py", line 152, in run
    step.run()
  File "/usr/share/ovirt-engine/scripts/setup_sequences.py", line 59, in run
    function()
  File "/usr/bin/engine-setup", line 1397, in _encryptDBPass
    controller.CONF["ENCRYPTED_DB_PASS"] = utils.parseStrRegex(output, "Encoded 
password:\s*(.+)", output_messages.ERR_EXP_PARSING_ENCRYPT_PASS)
  File "/usr/share/ovirt-engine/scripts/common_utils.py", line 503, in 
parseStrRegex
    raise Exception(errMsg)
Exception: Error while parsing encrypted jboss password

How is it possible to correct?

--

--
_______________________________________________
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users

Reply via email to