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

Issue 77340044: upgrades: Local provider 1.16 to 1.18 migration (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 1 month ago by dimitern
Modified:
10 years, 1 month ago
Reviewers:
mp+211560, fwereade
Visibility:
Public.

Description

upgrades: Local provider 1.16 to 1.18 migration This adds a couple of utility methods: - agent.MigrateConfig() - allows to atomically change and save an existing agent config (only DataDir, LogDir, Jobs or Values); - agent.PatchConfig (only for tests) - to facilitate testing of the above. Then, we add an upgrade step for migrating existing 1.16 local environments to 1.18, including: - agent config (DataDir, LogDir, Jobs, Values) - rsyslog configuration and setup - environment config (container and namespace settings) - removing deprecated stuff (shared-storage dir and the related settings in the agent config). In addition, a few changes and drive-by fixes were done to related packages. Tested extensively live using a 1.16 local environment upgrading to 1.18. https://code.launchpad.net/~dimitern/juju-core/340-lp-1291400-1.16-to-1.18-agent-config-migration/+merge/211560 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 16

Patch Set 2 : upgrades: Local provider 1.16 to 1.18 migration #

Total comments: 2

Patch Set 3 : upgrades: Local provider 1.16 to 1.18 migration #

Unified diffs Side-by-side diffs Delta from patch set Stats (+640 lines, -69 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M agent/agent.go View 1 2 6 chunks +86 lines, -18 lines 0 comments Download
M agent/agent_test.go View 1 5 chunks +133 lines, -12 lines 0 comments Download
M agent/export_test.go View 1 2 chunks +40 lines, -0 lines 0 comments Download
M cmd/jujud/machine.go View 3 chunks +4 lines, -4 lines 0 comments Download
M provider/manual/environ.go View 4 chunks +3 lines, -6 lines 0 comments Download
A upgrades/agentconfig.go View 1 1 chunk +150 lines, -0 lines 0 comments Download
A upgrades/agentconfig_test.go View 1 1 chunk +178 lines, -0 lines 0 comments Download
M upgrades/deprecatedenvsettings.go View 1 chunk +1 line, -1 line 0 comments Download
M upgrades/deprecatedenvsettings_test.go View 5 chunks +11 lines, -11 lines 0 comments Download
M upgrades/export_test.go View 1 chunk +7 lines, -1 line 0 comments Download
M upgrades/steps118.go View 1 chunk +8 lines, -3 lines 0 comments Download
M upgrades/steps118_test.go View 1 chunk +2 lines, -1 line 0 comments Download
M upgrades/upgrade.go View 1 chunk +1 line, -1 line 0 comments Download
M upgrades/upgrade_test.go View 4 chunks +10 lines, -9 lines 0 comments Download
M utils/file_unix.go View 1 chunk +3 lines, -2 lines 0 comments Download
M worker/rsyslog/worker.go View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 5
dimitern
Please take a look.
10 years, 1 month ago (2014-03-18 15:46:02 UTC) #1
fwereade
The actual migration looks great, but I have a few issues; let me know what ...
10 years, 1 month ago (2014-03-19 09:36:26 UTC) #2
dimitern
Please take a look. https://codereview.appspot.com/77340044/diff/1/agent/agent.go File agent/agent.go (right): https://codereview.appspot.com/77340044/diff/1/agent/agent.go#newcode135 agent/agent.go:135: configMutex.Lock() On 2014/03/19 09:36:26, fwereade ...
10 years, 1 month ago (2014-03-19 11:16:28 UTC) #3
fwereade
LGTM with a doc tweak, assuming you've done a live upgrade with the new code ...
10 years, 1 month ago (2014-03-19 11:38:29 UTC) #4
dimitern
10 years, 1 month ago (2014-03-19 11:48:05 UTC) #5
Please take a look.

https://codereview.appspot.com/77340044/diff/20001/agent/agent.go
File agent/agent.go (right):

https://codereview.appspot.com/77340044/diff/20001/agent/agent.go#newcode129
agent/agent.go:129: // in a MigrateConfig call. DeleteValues specifies a list of
keys to
On 2014/03/19 11:38:30, fwereade wrote:
> ...holds agent config values to change... Empty values will be ignored.

Done.
Sign in to reply to this message.

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