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

Issue 68250046: Machine agent runs upgrade operations (Closed)

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

Description

Machine agent runs upgrade operations When the machine agent starts, it runs whatever upgrade operations are relevant according to the agents's jobs. The upgrades need to complete before any of the workers are started. Changes to machine agent tests were needed because now a machine needs to be properly provisioned for the agent to start up, since the access to the state api will fail unless a machine is provisioned. Also included are some drive by fixes to some syslog and version tests from other reviews. https://code.launchpad.net/~wallyworld/juju-core/machine-agent-run-upgrades/+merge/208060 Requires: https://code.launchpad.net/~wallyworld/juju-core/delete-rsyslog-upgrader/+merge/208058 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 14

Patch Set 2 : Machine agent runs upgrade operations #

Unified diffs Side-by-side diffs Delta from patch set Stats (+388 lines, -141 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M agent/agent.go View 1 1 chunk +7 lines, -1 line 0 comments Download
M agent/agent_test.go View 1 1 chunk +5 lines, -5 lines 0 comments Download
M agent/format-1.16.go View 1 1 chunk +3 lines, -4 lines 0 comments Download
M cmd/jujud/agent_test.go View 5 chunks +18 lines, -16 lines 0 comments Download
M cmd/jujud/machine.go View 1 10 chunks +115 lines, -20 lines 0 comments Download
M cmd/jujud/machine_test.go View 22 chunks +68 lines, -51 lines 0 comments Download
M cmd/jujud/unit_test.go View 2 chunks +2 lines, -2 lines 0 comments Download
A cmd/jujud/upgrade_test.go View 1 chunk +91 lines, -0 lines 0 comments Download
M log/syslog/config_test.go View 2 chunks +4 lines, -3 lines 0 comments Download
M log/syslog/testing/syslogconf.go View 1 2 chunks +33 lines, -28 lines 0 comments Download
M state/api/apiclient.go View 1 chunk +0 lines, -5 lines 0 comments Download
M upgrades/upgrade.go View 1 4 chunks +22 lines, -6 lines 0 comments Download
M upgrades/upgrade_test.go View 3 chunks +14 lines, -0 lines 0 comments Download
M version/version_test.go View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 5
wallyworld
Please take a look.
10 years, 2 months ago (2014-02-25 04:21:41 UTC) #1
rog
Looks great, thanks, with some suggestions below and the syslog templates fixed. https://codereview.appspot.com/68250046/diff/1/cmd/jujud/machine.go File cmd/jujud/machine.go ...
10 years, 2 months ago (2014-02-25 09:02:15 UTC) #2
wallyworld
Please take a look. https://codereview.appspot.com/68250046/diff/1/cmd/jujud/machine.go File cmd/jujud/machine.go (right): https://codereview.appspot.com/68250046/diff/1/cmd/jujud/machine.go#newcode111 cmd/jujud/machine.go:111: func (a *MachineAgent) startWorkerAfterUpgrade(runner worker.Runner, ...
10 years, 2 months ago (2014-02-26 04:23:35 UTC) #3
thumper
I can see that you have addressed Rog's comments, although I'd also like to know ...
10 years, 2 months ago (2014-02-27 01:59:20 UTC) #4
wallyworld
10 years, 2 months ago (2014-02-27 02:03:02 UTC) #5
On 2014/02/27 01:59:20, thumper wrote:
> I can see that you have addressed Rog's comments, although I'd also like to
know
> why the templating change didn't break any tests.  Can you check to see that
> there is test coverage there, and why it didn't break?
> 
> LGTM with test confirmation.

It didn't break any jujud tests because the upstream branch removed the rsyslog
upgrader and this was done after the template changes. The syslog tests did fail
but I didn't run them as I forgot that removing the rsyslog upgrader would cause
the templating stuff not to be executed.
Sign in to reply to this message.

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