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

Tom White updated WHIRR-269:
----------------------------

    Attachment: WHIRR-269.patch

Here's a patch with a fix. It improves some of the other keypair-related error 
messages at the same time.

I tested it by manually trying an encrypted keypair.

> improve error msg "key paid is encrypted"
> -----------------------------------------
>
>                 Key: WHIRR-269
>                 URL: https://issues.apache.org/jira/browse/WHIRR-269
>             Project: Whirr
>          Issue Type: Improvement
>          Components: cli
>    Affects Versions: 0.4.0
>            Reporter: Patrick Hunt
>            Priority: Minor
>             Fix For: 0.5.0
>
>         Attachments: WHIRR-269.patch
>
>
> The following error took me some time to resolve. It would have been useful 
> if this were more actionable (even referencing which key pair it's talking 
> about would have been useful). Eventually I figured out that must use a 
> passwordless pair.
> ~/w/whirr-0.4.0-incubating$ bin/whirr launch-cluster --config 
> ~/whirr-zk.properties
> Exception in thread "main" 
> org.apache.commons.configuration.ConfigurationException: Key pair is encrypted
>       at org.apache.whirr.service.ClusterSpec.<init>(ClusterSpec.java:424)
>       at org.apache.whirr.service.ClusterSpec.<init>(ClusterSpec.java:390)
>       at 
> org.apache.whirr.cli.command.AbstractClusterSpecCommand.getClusterSpec(AbstractClusterSpecCommand.java:103)
>       at 
> org.apache.whirr.cli.command.LaunchClusterCommand.run(LaunchClusterCommand.java:59)
>       at org.apache.whirr.cli.Main.run(Main.java:67)
>       at org.apache.whirr.cli.Main.main(Main.java:104)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to