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

Issue 70010045: Agent config format 1.18 (Closed)

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

Description

Agent config format 1.18 This introduces a new agent config format - 1.18: - LogDir and DataDir added as fields - BootstrapJobs setting promoted to a Jobs field (for all machines) - format file removed and added a "version header" to the agent.conf file. Now there is a single conf file and the upgrades/migrations can use atomic file renaming (fixes bug #1224725). - format 1.12 removed as obsolete. Introduced agent.DefaultLogDir constant and changed hardcoded /var/log/juju to use that, except for the rsyslog state server config, which needs to use /var/log/juju-namespace due to apparmor restrictions. Tested live on EC2 and with the local provider. https://code.launchpad.net/~dimitern/juju-core/305-agent-confg.1.18/+merge/208856 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 26

Patch Set 2 : Agent config format 1.18 #

Total comments: 6

Patch Set 3 : Agent config format 1.18 #

Total comments: 20

Patch Set 4 : Agent config format 1.18 #

Patch Set 5 : Agent config format 1.18 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1170 lines, -1006 lines) Patch
A [revision details] View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M agent/agent.go View 1 2 3 13 chunks +127 lines, -36 lines 0 comments Download
M agent/agent_test.go View 7 chunks +32 lines, -11 lines 0 comments Download
M agent/bootstrap.go View 1 2 5 chunks +11 lines, -18 lines 0 comments Download
M agent/bootstrap_test.go View 1 2 5 chunks +4 lines, -19 lines 0 comments Download
M agent/format.go View 1 2 3 1 chunk +84 lines, -80 lines 0 comments Download
D agent/format-1.12.go View 1 chunk +0 lines, -177 lines 0 comments Download
D agent/format-1.12_whitebox_test.go View 1 chunk +0 lines, -90 lines 0 comments Download
M agent/format-1.16.go View 1 2 3 4 3 chunks +34 lines, -138 lines 0 comments Download
M agent/format-1.16_whitebox_test.go View 1 2 3 2 chunks +66 lines, -120 lines 0 comments Download
A agent/format-1.18.go View 1 2 3 4 1 chunk +120 lines, -0 lines 0 comments Download
A agent/format-1.18_whitebox_test.go View 1 2 1 chunk +167 lines, -0 lines 0 comments Download
M agent/format_whitebox_test.go View 1 2 3 chunks +77 lines, -71 lines 0 comments Download
M cloudinit/options.go View 1 chunk +0 lines, -1 line 0 comments Download
M cloudinit/sshinit/configure_test.go View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M cmd/juju/help_topics.go View 1 2 1 chunk +1 line, -1 line 0 comments Download
M cmd/jujud/agent.go View 2 chunks +5 lines, -1 line 0 comments Download
M cmd/jujud/agent_test.go View 4 chunks +4 lines, -4 lines 0 comments Download
M cmd/jujud/bootstrap.go View 1 2 2 chunks +9 lines, -11 lines 0 comments Download
M cmd/jujud/bootstrap_test.go View 1 2 10 chunks +36 lines, -28 lines 0 comments Download
M cmd/jujud/upgrade_test.go View 1 2 1 chunk +1 line, -1 line 0 comments Download
M container/kvm/kvm.go View 2 chunks +2 lines, -1 line 0 comments Download
M container/lxc/lxc.go View 2 chunks +2 lines, -1 line 0 comments Download
M container/lxc/lxc_test.go View 2 chunks +2 lines, -1 line 0 comments Download
M environs/cloudinit.go View 1 2 4 chunks +4 lines, -4 lines 0 comments Download
M environs/cloudinit/cloudinit.go View 1 2 4 chunks +9 lines, -0 lines 0 comments Download
M environs/cloudinit/cloudinit_test.go View 1 2 14 chunks +23 lines, -16 lines 0 comments Download
M environs/cloudinit_test.go View 1 2 3 chunks +7 lines, -1 line 0 comments Download
M log/syslog/config.go View 4 chunks +6 lines, -6 lines 0 comments Download
M log/syslog/config_test.go View 4 chunks +40 lines, -12 lines 0 comments Download
M log/syslog/testing/syslogconf.go View 4 chunks +5 lines, -3 lines 0 comments Download
M provider/azure/customdata_test.go View 1 2 2 chunks +4 lines, -1 line 0 comments Download
M provider/local/environ.go View 1 2 2 chunks +5 lines, -9 lines 0 comments Download
M provider/local/environ_test.go View 1 2 3 chunks +2 lines, -5 lines 0 comments Download
D upgrades/file.go View 1 2 1 chunk +0 lines, -30 lines 0 comments Download
D upgrades/file_test.go View 1 2 1 chunk +0 lines, -48 lines 0 comments Download
M upgrades/upgrade_test.go View 1 2 3 chunks +11 lines, -0 lines 0 comments Download
M utils/file.go View 1 2 2 chunks +41 lines, -0 lines 0 comments Download
M utils/file_test.go View 1 2 2 chunks +97 lines, -0 lines 0 comments Download
M utils/ssh/authorisedkeys.go View 1 2 2 chunks +9 lines, -15 lines 0 comments Download
M version/version.go View 1 2 3 2 chunks +38 lines, -0 lines 0 comments Download
M version/version_test.go View 1 2 3 3 chunks +22 lines, -11 lines 0 comments Download
M worker/deployer/export_test.go View 1 chunk +0 lines, -1 line 0 comments Download
M worker/deployer/simple.go View 4 chunks +8 lines, -11 lines 0 comments Download
M worker/deployer/simple_test.go View 1 2 7 chunks +30 lines, -8 lines 0 comments Download
M worker/rsyslog/rsyslog_test.go View 2 chunks +2 lines, -4 lines 0 comments Download
M worker/rsyslog/worker.go View 1 2 5 chunks +18 lines, -11 lines 0 comments Download

Messages

Total messages: 10
dimitern
Please take a look.
10 years, 2 months ago (2014-02-28 17:43:47 UTC) #1
dimitern
Please take a look.
10 years, 2 months ago (2014-02-28 17:49:55 UTC) #2
rog
Looks generally reasonable, but I have some suggestions below. I haven't had time to go ...
10 years, 2 months ago (2014-02-28 18:54:33 UTC) #3
dimitern
Please take a look. https://codereview.appspot.com/70010045/diff/1/agent/agent.go File agent/agent.go (right): https://codereview.appspot.com/70010045/diff/1/agent/agent.go#newcode286 agent/agent.go:286: if format == format_1_18 { ...
10 years, 2 months ago (2014-03-06 12:36:40 UTC) #4
fwereade
a few minor comments, leaving full review for rog https://codereview.appspot.com/70010045/diff/20001/agent/agent.go File agent/agent.go (right): https://codereview.appspot.com/70010045/diff/20001/agent/agent.go#newcode310 agent/agent.go:310: ...
10 years, 2 months ago (2014-03-06 14:41:25 UTC) #5
dimitern
Replies to William's comments: https://codereview.appspot.com/70010045/diff/20001/cmd/jujud/agent.go File cmd/jujud/agent.go (right): https://codereview.appspot.com/70010045/diff/20001/cmd/jujud/agent.go#newcode45 cmd/jujud/agent.go:45: // use it to locate ...
10 years, 2 months ago (2014-03-06 14:50:36 UTC) #6
rog
looks great as far as i've got. https://codereview.appspot.com/70010045/diff/40001/agent/agent.go File agent/agent.go (right): https://codereview.appspot.com/70010045/diff/40001/agent/agent.go#newcode283 agent/agent.go:283: err error ...
10 years, 2 months ago (2014-03-06 15:14:06 UTC) #7
dimitern
Please take a look. https://codereview.appspot.com/70010045/diff/40001/agent/agent.go File agent/agent.go (right): https://codereview.appspot.com/70010045/diff/40001/agent/agent.go#newcode283 agent/agent.go:283: err error On 2014/03/06 15:14:07, ...
10 years, 2 months ago (2014-03-06 16:10:32 UTC) #8
rog
LGTM with one trivial (applies to formatter_1_18 too, i think) https://codereview.appspot.com/70010045/diff/40001/agent/format-1.16.go File agent/format-1.16.go (right): https://codereview.appspot.com/70010045/diff/40001/agent/format-1.16.go#newcode13 ...
10 years, 2 months ago (2014-03-06 17:08:06 UTC) #9
dimitern
10 years, 2 months ago (2014-03-06 17:16:58 UTC) #10
Please take a look.

https://codereview.appspot.com/70010045/diff/40001/agent/format-1.16.go
File agent/format-1.16.go (right):

https://codereview.appspot.com/70010045/diff/40001/agent/format-1.16.go#newco...
agent/format-1.16.go:13: var format_1_16 = &formatter_1_16{}
On 2014/03/06 17:08:07, rog wrote:
> There's no particular reason for the pointer here.
> We could define all the methods on the value type
> (and that's consistent with the way the version
> method is already defined)

Done.

https://codereview.appspot.com/70010045/diff/40001/agent/format-1.16.go#newco...
agent/format-1.16.go:20: var _ formatter = (*formatter_1_16)(nil)
On 2014/03/06 17:08:07, rog wrote:
> var _ formatter = formatter_1_16{}

Done.
Sign in to reply to this message.

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