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

Issue 72270044: lxc: Fixed target-release issue precise/maas

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 1 month ago by wwitzel
Modified:
10 years, 1 month ago
Reviewers:
wwitzel3, natefinch, mp+209974, gz, dimitern, rog
Visibility:
Public.

Description

lxc: Fixed target-release issue precise/maas Mitigates issue lp:1289316 https://code.launchpad.net/~wwitzel3/juju-core/lp-1289316-lxc-maas-precise/+merge/209974 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 4

Patch Set 2 : cloudinit: Fixed target-release issue precise/maas #

Total comments: 1

Patch Set 3 : cloudinit: Fixed target-release issue precise/maas #

Total comments: 2

Patch Set 4 : cloudinit: Fixed target-release issue precise/maas #

Patch Set 5 : cloudinit: Fixed target-release issue precise/maas #

Patch Set 6 : cloudinit: Fixed target-release issue precise/maas #

Patch Set 7 : cloudinit: Fixed target-release issue precise/maas #

Total comments: 2

Patch Set 8 : lxc: Fixed target-release issue precise/maas #

Patch Set 9 : lxc: Fixed target-release issue precise/maas #

Total comments: 12

Patch Set 10 : lxc: Fixed target-release issue precise/maas #

Patch Set 11 : lxc: Fixed target-release issue precise/maas #

Total comments: 8

Patch Set 12 : lxc: Fixed target-release issue precise/maas #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+159 lines, -8 lines) Patch
A [revision details] View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M container/lxc/initialisation.go View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +18 lines, -6 lines 0 comments Download
A container/lxc/initialisation_test.go View 1 2 3 4 5 6 7 8 9 10 1 chunk +51 lines, -0 lines 0 comments Download
M utils/apt.go View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +75 lines, -0 lines 2 comments Download
M utils/apt_test.go View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -0 lines 0 comments Download
M worker/provisioner/container_initialisation.go View 1 2 3 4 5 6 7 8 9 10 1 chunk +6 lines, -1 line 0 comments Download
M worker/provisioner/container_initialisation_test.go View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 26
wwitzel
Please take a look.
10 years, 1 month ago (2014-03-07 17:44:23 UTC) #1
dimitern
LGTM with a few minor suggestions, assuming you tested this live on EC2 at least. ...
10 years, 1 month ago (2014-03-07 17:50:41 UTC) #2
wwitzel
Please take a look.
10 years, 1 month ago (2014-03-09 18:25:41 UTC) #3
wwitzel
Please take a look. https://codereview.appspot.com/72270044/diff/20001/environs/cloudinit/cloudinit.go File environs/cloudinit/cloudinit.go (right): https://codereview.appspot.com/72270044/diff/20001/environs/cloudinit/cloudinit.go#newcode218 environs/cloudinit/cloudinit.go:218: targetRelease := cfg.TargetRelease() Don't like ...
10 years, 1 month ago (2014-03-09 18:34:58 UTC) #4
wwitzel
10 years, 1 month ago (2014-03-09 18:34:59 UTC) #5
dimitern
https://codereview.appspot.com/72270044/diff/40001/environs/cloudinit/cloudinit.go File environs/cloudinit/cloudinit.go (right): https://codereview.appspot.com/72270044/diff/40001/environs/cloudinit/cloudinit.go#newcode403 environs/cloudinit/cloudinit.go:403: func (cfg *MachineConfig) TargetRelease() string { doc comment please: ...
10 years, 1 month ago (2014-03-09 18:40:50 UTC) #6
wwitzel
https://codereview.appspot.com/72270044/diff/1/cloudinit/options.go File cloudinit/options.go (right): https://codereview.appspot.com/72270044/diff/1/cloudinit/options.go#newcode110 cloudinit/options.go:110: // argument. If targetRelease is an empty string, no ...
10 years, 1 month ago (2014-03-09 19:02:26 UTC) #7
wwitzel
Please take a look.
10 years, 1 month ago (2014-03-09 19:03:27 UTC) #8
wwitzel
Please take a look.
10 years, 1 month ago (2014-03-10 11:08:14 UTC) #9
wwitzel
Please take a look.
10 years, 1 month ago (2014-03-10 19:31:18 UTC) #10
wwitzel
On 2014/03/10 19:31:18, wwitzel wrote: > Please take a look. LGTM - Fixing tests, self ...
10 years, 1 month ago (2014-03-10 19:32:58 UTC) #11
wwitzel
Please take a look.
10 years, 1 month ago (2014-03-12 18:19:15 UTC) #12
wwitzel3
https://codereview.appspot.com/72270044/diff/120001/container/lxc/initialisation.go File container/lxc/initialisation.go (right): https://codereview.appspot.com/72270044/diff/120001/container/lxc/initialisation.go#newcode35 container/lxc/initialisation.go:35: func targetReleasePackages(targetRelease string) []string { After talking with rogpeppe ...
10 years, 1 month ago (2014-03-12 18:46:38 UTC) #13
wwitzel
Please take a look.
10 years, 1 month ago (2014-03-13 11:40:06 UTC) #14
wwitzel
https://codereview.appspot.com/72270044/diff/120001/container/lxc/initialisation.go File container/lxc/initialisation.go (right): https://codereview.appspot.com/72270044/diff/120001/container/lxc/initialisation.go#newcode35 container/lxc/initialisation.go:35: func targetReleasePackages(targetRelease string) []string { On 2014/03/12 18:46:39, wwitzel3 ...
10 years, 1 month ago (2014-03-13 11:40:58 UTC) #15
wwitzel
Please take a look.
10 years, 1 month ago (2014-03-13 11:47:00 UTC) #16
rog
This is mostly great, but we should really not ignore errors. For the record, acronyms ...
10 years, 1 month ago (2014-03-13 12:17:51 UTC) #17
wwitzel3
https://codereview.appspot.com/72270044/diff/160001/container/lxc/initialisation.go File container/lxc/initialisation.go (right): https://codereview.appspot.com/72270044/diff/160001/container/lxc/initialisation.go#newcode13 container/lxc/initialisation.go:13: // during AptGetInstall On 2014/03/13 12:17:52, rog wrote: > ...
10 years, 1 month ago (2014-03-13 13:05:09 UTC) #18
wwitzel
Please take a look.
10 years, 1 month ago (2014-03-13 13:06:45 UTC) #19
wwitzel
Please take a look.
10 years, 1 month ago (2014-03-13 17:27:18 UTC) #20
gz
LGTM witha few comments. https://codereview.appspot.com/72270044/diff/200001/container/lxc/initialisation.go File container/lxc/initialisation.go (right): https://codereview.appspot.com/72270044/diff/200001/container/lxc/initialisation.go#newcode37 container/lxc/initialisation.go:37: packagesList := utils.AptGetPreparePackages(requiredPackages, series) I ...
10 years, 1 month ago (2014-03-13 17:59:19 UTC) #21
wwitzel3
https://codereview.appspot.com/72270044/diff/200001/container/lxc/initialisation.go File container/lxc/initialisation.go (right): https://codereview.appspot.com/72270044/diff/200001/container/lxc/initialisation.go#newcode37 container/lxc/initialisation.go:37: packagesList := utils.AptGetPreparePackages(requiredPackages, series) On 2014/03/13 17:59:19, gz wrote: ...
10 years, 1 month ago (2014-03-13 18:07:38 UTC) #22
wwitzel
Please take a look.
10 years, 1 month ago (2014-03-13 18:12:41 UTC) #23
wwitzel3
Discussed the choice to keep this separated from cloudinit with mgz and rogpeppe. We will ...
10 years, 1 month ago (2014-03-13 18:13:07 UTC) #24
natefinch
LGTM with just one tiny nitpick https://codereview.appspot.com/72270044/diff/220001/utils/apt.go File utils/apt.go (right): https://codereview.appspot.com/72270044/diff/220001/utils/apt.go#newcode92 utils/apt.go:92: if target := ...
10 years, 1 month ago (2014-03-13 20:20:04 UTC) #25
wwitzel3
10 years, 1 month ago (2014-03-13 20:33:45 UTC) #26
https://codereview.appspot.com/72270044/diff/220001/utils/apt.go
File utils/apt.go (right):

https://codereview.appspot.com/72270044/diff/220001/utils/apt.go#newcode92
utils/apt.go:92: if target := targetRelease(series); target != "" {
On 2014/03/13 20:20:04, nate.finch wrote:
> nitpicky, but can you do 
> if target == "" { 
>    return append(installCommands, packages)
> }
> 
> // else all the rest of the stuff
> 
> It makes it a lot easier to read, since you don't have to keep in your head
what
> the if statement is talking about 30 lines later.  

Done.
Sign in to reply to this message.

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