ClusterHQ / unofficial-flocker-tools

A tool to make installing Flocker with container orchestration tools easier and more fun
https://clusterhq.com/
11 stars 9 forks source link

Friendly key path error #34

Closed lukemarsden closed 8 years ago

lukemarsden commented 8 years ago

Mitigate fact that installer is running in container by going out of our way to give the correct path from user's perspective if the key specified doesn't exist.

lukemarsden commented 8 years ago

Tested (luke3000.pem doesn't exist, luke3.pem does).

With luke3000.pem in config:

luke@tiny:~/clusters/test$ uft-flocker-install cluster.yml
[snip]
unofficial_flocker_tools.install.UsageError:
Private key specified in private_key_path in config does not exist at:
/Users/luke/Downloads/luke3000.pem

Install bails immediately, giving correct path to key on my machine (not including /host).

With luke3.pem in config:

luke@tiny:~/clusters/test$ uft-flocker-install cluster.yml
Attempting to connect to 54.85.72.141:22...

Install proceeds.

Passes manual testing, so merging.