incubator-cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chandan Purushothama (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (CLOUDSTACK-264) Upgrade from CS-2.2.14 to ASF 4.0 fails in the cloud-setup-encryption step with Exception: Exception in thread "main" java.lang.NoClassDefFoundError: org/jasypt/intf/cli/JasyptPBEStringEncryptionCLI
Date Sat, 06 Oct 2012 01:44:02 GMT

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

Chandan Purushothama closed CLOUDSTACK-264.
-------------------------------------------


Unable to reproduce this bug on the latest CloudStack Build

===========================
Steps Followed for Verification:
===========================
1. Deployed a 2.2.14 Advanced Zone Setup using the 2.2.14 CS build for RHEL 6.2.
2. Added a XenServer 5.6 SP2 to the Advanced Zone Setup.
3. Deployed two VMs using the default CentOS Template on the Advanced Zone Setup
4. Registered the 3.0.0 System VM Template on the CloudStack Setup that is required as per
the Upgrade Procedure
5. Stop the Usage Server
6. Stop management server.
7. Upgrade to 4.0.
8. Merge the additions in content to the old db.properties file.
9. Run cloud-setup-encryption
10. Start Management server 

======
Git Info:
======

Git Revision: 521b0f640197b3a875ce9d2ea0050234d501085b
Git URL: https://git-wip-us.apache.org/repos/asf/incubator-cloudstack.git

                
> Upgrade from CS-2.2.14 to ASF 4.0 fails in the cloud-setup-encryption step with Exception:
Exception in thread "main" java.lang.NoClassDefFoundError: org/jasypt/intf/cli/JasyptPBEStringEncryptionCLI
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-264
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-264
>             Project: CloudStack
>          Issue Type: Bug
>          Components: Install and Setup, Management Server
>    Affects Versions: pre-4.0.0
>         Environment: MS - Rhel 6.3
> Host - KVM (Rhel 6.3)
> ASF Build : http://jenkins.cloudstack.org/job/build-4.0-rhel63/385/artifact/CloudStack-oss-4.0.0-385.tar.bz2
> Git Revision: ef7552fddad567d1509ad897e4df12566b7b9d62
> Git URL: https://git-wip-us.apache.org/repos/asf/incubator-cloudstack.git
>            Reporter: Abhinav Roy
>            Assignee: Kelven Yang
>            Priority: Critical
>             Fix For: pre-4.0.0
>
>
> Steps :
> ======================
> Upgrade from CS-2.2.14 to ASF-4.0 by following the procedure given the CS-3.0.5 release
notes :
> -----------------
> 1. Stop management server.
> 2. Upgrade to 4.0.
> 3. Run cloud-setup-encryption
> 4. Start Management server
> Expected Behaviour :
> =====================
> The upgrade should be successful.
> Observed behaviour :
> ====================
> Execution of cloud-setup-encryption in step 3 throws an exception
> [root@burnank CloudStack-oss-4.0.0-385]# cloud-setup-encryption
> Preparing /etc/cloud/management/db.properties                                   [ OK
]
> Processing encryption ...                                                       Traceback
(most recent call last):
>   File "/usr/bin/cloud-setup-encryption", line 266, in <module>
>     o.run()
>   File "/usr/bin/cloud-setup-encryption", line 255, in run
>     self.processEncryptionStuff()
>   File "/usr/bin/cloud-setup-encryption", line 214, in processEncryptionStuff
>     encryptDBSecretKey()
>   File "/usr/bin/cloud-setup-encryption", line 198, in encryptDBSecretKey
>     self.putDbProperty('db.cloud.encrypt.secret', formatEncryptResult(encrypt(self.dbsecretkey)))
>   File "/usr/bin/cloud-setup-encryption", line 188, in encrypt
>     return runCmd(cmd).strip('\n')
>   File "/usr/bin/cloud-setup-encryption", line 51, in runCmd
>     raise Exception(stderr)
> Exception: Exception in thread "main" java.lang.NoClassDefFoundError: org/jasypt/intf/cli/JasyptPBEStringEncryptionCLI
> Caused by: java.lang.ClassNotFoundException: org.jasypt.intf.cli.JasyptPBEStringEncryptionCLI
>         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.JasyptPBEStringEncryptionCLI. Program
will exit.
> And if we don't execute step 3 then also upgrade fails and exception is seen in the logs.
> Workaround :
> =======================
> However, there is a workaround for this issue.
> We can first do the upgrade from 2.2.14 to 3.0.x and then to 4.0. If we do the upgrade
this way then no error is seen and the operation is successful.

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