[
https://issues.apache.org/jira/browse/CLOUDSTACK-268?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13470551#comment-13470551
]
Hugo Trippaers commented on CLOUDSTACK-268:
-------------------------------------------
Proposed fix:
diff --git a/setup/bindir/cloud-setup-encryption.in
b/setup/bindir/cloud-setup-encryption.in
index f2de2ec..35584b3 100755
--- a/setup/bindir/cloud-setup-encryption.in
+++ b/setup/bindir/cloud-setup-encryption.in
@@ -184,7 +184,7 @@ for example:
def processEncryptionStuff(self):
def encrypt(input):
- cmd =
['java','-classpath',self.encryptionJarPath,'org.jasypt.intf.cli.JasyptPBEStringEncryptionCLI',
'encrypt.sh', 'input=%s'%input,
'password=%s'%self.mgmtsecretkey,'verbose=false']
+ cmd =
['java','-classpath',self.encryptionJarPath,'org.jasypt.intf.cli.JasyptPBEStringEncryptionCLI',
'encrypt.sh', 'input=\'%s\''%input,
'password=%s'%self.mgmtsecretkey,'verbose=false']
return runCmd(cmd).strip('\n')
def saveMgmtServerSecretKey():
> cloud-setup-encryption dies with a python exception
> ---------------------------------------------------
>
> Key: CLOUDSTACK-268
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-268
> Project: CloudStack
> Issue Type: Bug
> Components: Install and Setup
> Affects Versions: 4.1.0
> Reporter: Hugo Trippaers
> Assignee: Hugo Trippaers
> Priority: Minor
>
> > sudo 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 215, in processEncryptionStuff
> encryptDBPassword()
> File "/usr/bin/cloud-setup-encryption", line 204, in encryptDBPassword
> self.putDbProperty('db.cloud.password',
> formatEncryptResult(encrypt(dbPasswo rd)))
> 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: /bin/sh: -c: line 0: syntax error near unexpected token `('
> /bin/sh: -c: line 0: `java -classpath /usr/share/java/cloud-jasypt-1.8.jar
> org.j asypt.intf.cli.JasyptPBEStringEncryptionCLI encrypt.sh
> input=ENC(nuxRTKA9hSfV1y5 pJGYV4vYShq8QyT5H) password=password
> verbose=false'
--
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