Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(931)

Issue 36080044: Generate SSH keys if none exist.

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 4 months ago by matthew.scott
Modified:
10 years, 4 months ago
Reviewers:
frankban, mp+198135
Visibility:
Public.

Description

Generate SSH keys if none exist. This is step 2: provide the user with the option to let Quickstart generate SSH keys. Note: this is now an incremental branch, with better checks on ssh identities in the future; there's a card to represent this on the kanban board. To test: make check to QA: 1. mv ~/.ssh ~/.ssh.old 2a. .venv/bin/python juju-quickstart # should ask if you want to generate; say no, should exit 2b. .venv/bin/python juju-quickstart # should ask if you want to generate; say yes, shoud prompt for password, then continue, generating a new key 3. mv ~/.ssh.old ~/.ssh 4. ssh-agent 5. ssh-add 6. .venv/bin/python juju-quickstart # should bootstrap https://code.launchpad.net/~makyo/juju-quickstart/ssh-2-create-keys/+merge/198135 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 14

Patch Set 2 : Generate SSH keys if none exist. #

Patch Set 3 : Generate SSH keys if none exist. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -26 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M quickstart/app.py View 1 2 chunks +43 lines, -12 lines 0 comments Download
M quickstart/tests/test_app.py View 1 2 chunks +61 lines, -14 lines 0 comments Download

Messages

Total messages: 6
matthew.scott
Please take a look.
10 years, 4 months ago (2013-12-06 23:15:24 UTC) #1
frankban
LGTM with (possible) changes, thank you! https://codereview.appspot.com/36080044/diff/1/quickstart/app.py File quickstart/app.py (right): https://codereview.appspot.com/36080044/diff/1/quickstart/app.py#newcode101 quickstart/app.py:101: if len(create_keys) > ...
10 years, 4 months ago (2013-12-09 10:45:41 UTC) #2
matthew.scott
Thanks for the review; need to switch check for keys as noted below, but everything ...
10 years, 4 months ago (2013-12-09 17:15:57 UTC) #3
matthew.scott
Please take a look.
10 years, 4 months ago (2013-12-09 18:12:34 UTC) #4
frankban
LGTM thank you!
10 years, 4 months ago (2013-12-09 18:26:06 UTC) #5
matthew.scott
10 years, 4 months ago (2013-12-09 18:38:11 UTC) #6
*** Submitted:

Generate SSH keys if none exist.

This is step 2: provide the user with the option to let Quickstart generate SSH
keys.

Note: this is now an incremental branch, with better checks on ssh identities in
the future; there's a card to represent this on the kanban board.

To test: make check

to QA:
1. mv ~/.ssh ~/.ssh.old
2a. .venv/bin/python juju-quickstart # should ask if you want to generate; say
no, should exit
2b. .venv/bin/python juju-quickstart # should ask if you want to generate; say
yes, shoud prompt for password, then continue, generating a new key
3. mv ~/.ssh.old ~/.ssh
4. ssh-agent
5. ssh-add
6. .venv/bin/python juju-quickstart # should bootstrap

R=frankban
CC=
https://codereview.appspot.com/36080044
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b