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

Issue 60580043: juju-restore: fix

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 2 months ago by rog
Modified:
10 years, 2 months ago
Reviewers:
dimitern, mp+205127, gz
Visibility:
Public.

Description

juju-restore: fix We can no longer log in to mongo with the admin secret, so we change juju-restore to use the machine agent credentials instead. https://code.launchpad.net/~rogpeppe/juju-core/497-fix-restore/+merge/205127 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -21 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/plugins/juju-restore/restore.go View 12 chunks +93 lines, -21 lines 4 comments Download

Messages

Total messages: 4
rog
Please take a look.
10 years, 2 months ago (2014-02-06 11:21:13 UTC) #1
dimitern
Nice! LGTM, thanks for the progress updates.
10 years, 2 months ago (2014-02-06 11:27:12 UTC) #2
gz
LGTM. https://codereview.appspot.com/60580043/diff/1/cmd/plugins/juju-restore/restore.go File cmd/plugins/juju-restore/restore.go (right): https://codereview.appspot.com/60580043/diff/1/cmd/plugins/juju-restore/restore.go#newcode202 cmd/plugins/juju-restore/restore.go:202: func progress(f string, a ...interface{}) { Have mixed ...
10 years, 2 months ago (2014-02-06 11:42:33 UTC) #3
rog
10 years, 2 months ago (2014-02-06 11:46:19 UTC) #4
https://codereview.appspot.com/60580043/diff/1/cmd/plugins/juju-restore/resto...
File cmd/plugins/juju-restore/restore.go (right):

https://codereview.appspot.com/60580043/diff/1/cmd/plugins/juju-restore/resto...
cmd/plugins/juju-restore/restore.go:202: func progress(f string, a
...interface{}) {
On 2014/02/06 11:42:34, gz wrote:
> Have mixed feelings about switching from log to printf, but guess it's pretty
> easy to adapt later regardless. For now I guess less splurge is good.

at least the printf style mixes well with the messages
printed by bootstrap.

also i can never remember how to make loggo print INFO level messages...

https://codereview.appspot.com/60580043/diff/1/cmd/plugins/juju-restore/resto...
cmd/plugins/juju-restore/restore.go:285: func extractCreds(backupFile string)
(credentials, error) {
On 2014/02/06 11:42:34, gz wrote:
> Now this would be a nice function to have independant tests for...

I'd prefer to have a CI test for the whole thing.
This function only makes sense in the context of the
file produced by juju-backup.
Sign in to reply to this message.

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