cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Prasanna Santhanam (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CLOUDSTACK-1951) centos packaging: cloud-install-sys-tmplt can't find jasypt jar
Date Fri, 05 Apr 2013 13:42:15 GMT

     [ https://issues.apache.org/jira/browse/CLOUDSTACK-1951?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Prasanna Santhanam updated CLOUDSTACK-1951:
-------------------------------------------

    Description: 
When trying to seed the systemvm templates on secondary storage following stacktrace is noted:
This is with centos packaging.

+ bash -x /usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-tmplt -m
/tmp/secondary/ -u http://download.cloud.com/templates/acton/acton-systemvm-02062012.vhd.bz2
-h xenserver
+ mflag=
+ fflag=
+ ext=vhd
+ templateId=
+ hyper=
+ msKey=password
+ DISKSPACE=20000
+ dbHost=
+ dbUser=
+ dbPassword=
+ jasypt=/usr/share/cloudstack-common/lib/jasypt-1.9.0.jar
+ getopts m:h:f:u:Ft:e:s:o:r:d OPTION
+ case $OPTION in
+ mflag=1
+ mntpoint=/tmp/secondary/
+ getopts m:h:f:u:Ft:e:s:o:r:d OPTION
+ case $OPTION in
+ uflag=1
+ url=http://download.cloud.com/templates/acton/acton-systemvm-02062012.vhd.bz2
+ getopts m:h:f:u:Ft:e:s:o:r:d OPTION
+ case $OPTION in
+ hyper=xenserver
+ getopts m:h:f:u:Ft:e:s:o:r:d OPTION
+ [[ 1 != \1\1 ]]
+ [[ 11 != \1\1 ]]
+ '[' -z xenserver ']'
+ '[' '!' -d /tmp/secondary/ ']'
+ [[ '' == \1 ]]
+ '[' '' '!=' 1 ']'
++ cut -d = -f2-
++ sed 's/^[[:space:]]*//;s/[[:space:]]*$//'
++ tail -n 1
++ grep db.cloud.host
++ sed '/^\#/d' /etc/cloudstack/management/db.properties
+ dbHost=localhost
+ '[' '' '!=' 1 ']'
++ cut -d = -f2-
++ sed 's/^[[:space:]]*//;s/[[:space:]]*$//'
++ tail -n 1
++ grep db.cloud.username
++ sed '/^\#/d' /etc/cloudstack/management/db.properties
+ dbUser=cloud
+ '[' -f /etc/cloudstack/management/db.properties ']'
++ cut -d = -f2-
++ sed 's/^[[:space:]]*//;s/[[:space:]]*$//'
++ tail -n 1
++ grep db.cloud.encryption.type
++ sed '/^\#/d' /etc/cloudstack/management/db.properties
+ encType=file
+ '[' file == file ']'
++ cat /etc/cloudstack/management/key
+ msKey=password
+ [[ file == \f\i\l\e ]]
++ cut -d = -f2-
++ sed 's/^[[:space:]]*//;s/[[:space:]]*$//i'
++ sed 's/^ENC(\(.*\))/\1/'
++ tail -n 1
++ grep db.cloud.password
++ sed '/^\#/d' /etc/cloudstack/management/db.properties
+ encPassword=NN/iYmOl97KJm3F/LLWS7Q==
+ '[' '!' NN/iYmOl97KJm3F/LLWS7Q== == '' ']'
+ dbPassword=(`java -classpath $jasypt org.jasypt.intf.cli.JasyptPBEStringDecryptionCLI decrypt.sh
input=$encPassword password=$msKey verbose=false`)
++ java -classpath /usr/share/cloudstack-common/lib/jasypt-1.9.0.jar org.jasypt.intf.cli.JasyptPBEStringDecryptionCLI
decrypt.sh input=NN/iYmOl97KJm3F/LLWS7Q== password=password verbose=false
Exception in thread "main" java.lang.NoClassDefFoundError: org/jasypt/intf/cli/JasyptPBEStringDecryptionCLI
Caused by: java.lang.ClassNotFoundException: org.jasypt.intf.cli.JasyptPBEStringDecryptionCLI
	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.jasypt.intf.cli.JasyptPBEStringDecryptionCLI. Program will
exit.


On CentOS the jasypt jar is found at the following locations:

[root@cloudstack-centos63 /]# find . -name jasypt-1.9.0.jar
./usr/share/java/jasypt-1.9.0.jar
./usr/share/cloudstack-bridge/webapps/awsapi/WEB-INF/lib/jasypt-1.9.0.jar
./usr/share/cloudstack-management/webapps/client/WEB-INF/lib/jasypt-1.9.0.jar
[root@cloudstack-centos63 /]# 


But the script is looking for it under:
/usr/share/cloudstack-common/lib/jasypt-1.9.0.jar

The offending checkin seems to be commit a35f7c7b

  was:
When trying to seed the systemvm templates on secondary storage following stacktrace is noted:
This is with centos packaging.

+ bash -x /usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-tmplt -m
/tmp/secondary/ -u http://download.cloud.com/templates/acton/acton-systemvm-02062012.vhd.bz2
-h xenserver
+ mflag=
+ fflag=
+ ext=vhd
+ templateId=
+ hyper=
+ msKey=password
+ DISKSPACE=20000
+ dbHost=
+ dbUser=
+ dbPassword=
+ jasypt=/usr/share/cloudstack-common/lib/jasypt-1.9.0.jar
+ getopts m:h:f:u:Ft:e:s:o:r:d OPTION
+ case $OPTION in
+ mflag=1
+ mntpoint=/tmp/secondary/
+ getopts m:h:f:u:Ft:e:s:o:r:d OPTION
+ case $OPTION in
+ uflag=1
+ url=http://download.cloud.com/templates/acton/acton-systemvm-02062012.vhd.bz2
+ getopts m:h:f:u:Ft:e:s:o:r:d OPTION
+ case $OPTION in
+ hyper=xenserver
+ getopts m:h:f:u:Ft:e:s:o:r:d OPTION
+ [[ 1 != \1\1 ]]
+ [[ 11 != \1\1 ]]
+ '[' -z xenserver ']'
+ '[' '!' -d /tmp/secondary/ ']'
+ [[ '' == \1 ]]
+ '[' '' '!=' 1 ']'
++ cut -d = -f2-
++ sed 's/^[[:space:]]*//;s/[[:space:]]*$//'
++ tail -n 1
++ grep db.cloud.host
++ sed '/^\#/d' /etc/cloudstack/management/db.properties
+ dbHost=localhost
+ '[' '' '!=' 1 ']'
++ cut -d = -f2-
++ sed 's/^[[:space:]]*//;s/[[:space:]]*$//'
++ tail -n 1
++ grep db.cloud.username
++ sed '/^\#/d' /etc/cloudstack/management/db.properties
+ dbUser=cloud
+ '[' -f /etc/cloudstack/management/db.properties ']'
++ cut -d = -f2-
++ sed 's/^[[:space:]]*//;s/[[:space:]]*$//'
++ tail -n 1
++ grep db.cloud.encryption.type
++ sed '/^\#/d' /etc/cloudstack/management/db.properties
+ encType=file
+ '[' file == file ']'
++ cat /etc/cloudstack/management/key
+ msKey=password
+ [[ file == \f\i\l\e ]]
++ cut -d = -f2-
++ sed 's/^[[:space:]]*//;s/[[:space:]]*$//i'
++ sed 's/^ENC(\(.*\))/\1/'
++ tail -n 1
++ grep db.cloud.password
++ sed '/^\#/d' /etc/cloudstack/management/db.properties
+ encPassword=NN/iYmOl97KJm3F/LLWS7Q==
+ '[' '!' NN/iYmOl97KJm3F/LLWS7Q== == '' ']'
+ dbPassword=(`java -classpath $jasypt org.jasypt.intf.cli.JasyptPBEStringDecryptionCLI decrypt.sh
input=$encPassword password=$msKey verbose=false`)
++ java -classpath /usr/share/cloudstack-common/lib/jasypt-1.9.0.jar org.jasypt.intf.cli.JasyptPBEStringDecryptionCLI
decrypt.sh input=NN/iYmOl97KJm3F/LLWS7Q== password=password verbose=false
Exception in thread "main" java.lang.NoClassDefFoundError: org/jasypt/intf/cli/JasyptPBEStringDecryptionCLI
Caused by: java.lang.ClassNotFoundException: org.jasypt.intf.cli.JasyptPBEStringDecryptionCLI
	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.jasypt.intf.cli.JasyptPBEStringDecryptionCLI. Program will
exit.


On CentOS the jasypt jar is found at the following locations:

[root@cloudstack-centos63 /]# find . -name jasypt-1.9.0.jar
./usr/share/java/jasypt-1.9.0.jar
./usr/share/cloudstack-bridge/webapps/awsapi/WEB-INF/lib/jasypt-1.9.0.jar
./usr/share/cloudstack-management/webapps/client/WEB-INF/lib/jasypt-1.9.0.jar
[root@cloudstack-centos63 /]# 


But the script is looking for it under:
/usr/share/cloudstack-common/lib/jasypt-1.9.0.jar

The offending checkin seems to be commit 29baacd12062a9d9dedb4b0b8828a6e273e71dca

    
> centos packaging: cloud-install-sys-tmplt can't find jasypt jar
> ---------------------------------------------------------------
>
>                 Key: CLOUDSTACK-1951
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-1951
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Packaging
>    Affects Versions: 4.1.0
>            Reporter: Prasanna Santhanam
>            Priority: Blocker
>             Fix For: 4.1.0
>
>
> When trying to seed the systemvm templates on secondary storage following stacktrace
is noted:
> This is with centos packaging.
> + bash -x /usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-tmplt
-m /tmp/secondary/ -u http://download.cloud.com/templates/acton/acton-systemvm-02062012.vhd.bz2
-h xenserver
> + mflag=
> + fflag=
> + ext=vhd
> + templateId=
> + hyper=
> + msKey=password
> + DISKSPACE=20000
> + dbHost=
> + dbUser=
> + dbPassword=
> + jasypt=/usr/share/cloudstack-common/lib/jasypt-1.9.0.jar
> + getopts m:h:f:u:Ft:e:s:o:r:d OPTION
> + case $OPTION in
> + mflag=1
> + mntpoint=/tmp/secondary/
> + getopts m:h:f:u:Ft:e:s:o:r:d OPTION
> + case $OPTION in
> + uflag=1
> + url=http://download.cloud.com/templates/acton/acton-systemvm-02062012.vhd.bz2
> + getopts m:h:f:u:Ft:e:s:o:r:d OPTION
> + case $OPTION in
> + hyper=xenserver
> + getopts m:h:f:u:Ft:e:s:o:r:d OPTION
> + [[ 1 != \1\1 ]]
> + [[ 11 != \1\1 ]]
> + '[' -z xenserver ']'
> + '[' '!' -d /tmp/secondary/ ']'
> + [[ '' == \1 ]]
> + '[' '' '!=' 1 ']'
> ++ cut -d = -f2-
> ++ sed 's/^[[:space:]]*//;s/[[:space:]]*$//'
> ++ tail -n 1
> ++ grep db.cloud.host
> ++ sed '/^\#/d' /etc/cloudstack/management/db.properties
> + dbHost=localhost
> + '[' '' '!=' 1 ']'
> ++ cut -d = -f2-
> ++ sed 's/^[[:space:]]*//;s/[[:space:]]*$//'
> ++ tail -n 1
> ++ grep db.cloud.username
> ++ sed '/^\#/d' /etc/cloudstack/management/db.properties
> + dbUser=cloud
> + '[' -f /etc/cloudstack/management/db.properties ']'
> ++ cut -d = -f2-
> ++ sed 's/^[[:space:]]*//;s/[[:space:]]*$//'
> ++ tail -n 1
> ++ grep db.cloud.encryption.type
> ++ sed '/^\#/d' /etc/cloudstack/management/db.properties
> + encType=file
> + '[' file == file ']'
> ++ cat /etc/cloudstack/management/key
> + msKey=password
> + [[ file == \f\i\l\e ]]
> ++ cut -d = -f2-
> ++ sed 's/^[[:space:]]*//;s/[[:space:]]*$//i'
> ++ sed 's/^ENC(\(.*\))/\1/'
> ++ tail -n 1
> ++ grep db.cloud.password
> ++ sed '/^\#/d' /etc/cloudstack/management/db.properties
> + encPassword=NN/iYmOl97KJm3F/LLWS7Q==
> + '[' '!' NN/iYmOl97KJm3F/LLWS7Q== == '' ']'
> + dbPassword=(`java -classpath $jasypt org.jasypt.intf.cli.JasyptPBEStringDecryptionCLI
decrypt.sh input=$encPassword password=$msKey verbose=false`)
> ++ java -classpath /usr/share/cloudstack-common/lib/jasypt-1.9.0.jar org.jasypt.intf.cli.JasyptPBEStringDecryptionCLI
decrypt.sh input=NN/iYmOl97KJm3F/LLWS7Q== password=password verbose=false
> Exception in thread "main" java.lang.NoClassDefFoundError: org/jasypt/intf/cli/JasyptPBEStringDecryptionCLI
> Caused by: java.lang.ClassNotFoundException: org.jasypt.intf.cli.JasyptPBEStringDecryptionCLI
> 	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.jasypt.intf.cli.JasyptPBEStringDecryptionCLI. Program
will exit.
> On CentOS the jasypt jar is found at the following locations:
> [root@cloudstack-centos63 /]# find . -name jasypt-1.9.0.jar
> ./usr/share/java/jasypt-1.9.0.jar
> ./usr/share/cloudstack-bridge/webapps/awsapi/WEB-INF/lib/jasypt-1.9.0.jar
> ./usr/share/cloudstack-management/webapps/client/WEB-INF/lib/jasypt-1.9.0.jar
> [root@cloudstack-centos63 /]# 
> But the script is looking for it under:
> /usr/share/cloudstack-common/lib/jasypt-1.9.0.jar
> The offending checkin seems to be commit a35f7c7b

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message