Whirr
  1. Whirr
  2. WHIRR-269

improve error msg "Key pair is encrypted"

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 0.4.0
    • Fix Version/s: 0.5.0
    • Component/s: cli
    • Labels:
      None

      Description

      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)

        Activity

        Hide
        Andrei Savu added a comment -

        +1 I've just committed this.

        Show
        Andrei Savu added a comment - +1 I've just committed this.
        Hide
        Tom White added a comment -

        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.

        Show
        Tom White added a comment - 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.

          People

          • Assignee:
            Tom White
            Reporter:
            Patrick Hunt
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development