[
https://issues.apache.org/jira/browse/CLOUDSTACK-268?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13470580#comment-13470580
]
frank zhang commented on CLOUDSTACK-268:
----------------------------------------
Thanks Hugo. I think your fix is right as we should escape special char from
shell
> 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