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

Issue 6207050: state: add WatchEnvironConfig (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 12 months ago by dave
Modified:
11 years, 11 months ago
Reviewers:
mp+105375
Visibility:
Public.

Description

state: add WatchEnvironConfig This change adds a watcher for the /environment key. The result returned from changes to this key is a *ConfigNode. The idea is the provisioning agent will watch this key, then convert the *ConfigNode into an Environ via a yet to be written facility. Also included is a bug fix detected while testing and a few small tweaks to util.go. https://code.launchpad.net/~dave-cheney/juju/go-environment/+merge/105375 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : state: add WatchEnvironment #

Patch Set 3 : state: add WatchEnvironment #

Total comments: 2

Patch Set 4 : state: add WatchEnvironment #

Total comments: 11

Patch Set 5 : state: add WatchEnvironment #

Total comments: 6

Patch Set 6 : state: add WatchEnvironment #

Total comments: 1

Patch Set 7 : state: add WatchEnvironment #

Patch Set 8 : state: add WatchEnvironConfig #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -10 lines) Patch
A [revision details] View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M state/state.go View 1 2 3 4 5 6 2 chunks +8 lines, -0 lines 0 comments Download
M state/util.go View 1 2 3 4 3 chunks +8 lines, -10 lines 0 comments Download
M state/watcher_test.go View 1 2 3 4 5 6 2 chunks +47 lines, -0 lines 0 comments Download

Messages

Total messages: 16
dave_cheney.net
Please take a look.
11 years, 12 months ago (2012-05-10 19:24:22 UTC) #1
dave_cheney.net
Please take a look.
11 years, 12 months ago (2012-05-10 22:25:28 UTC) #2
dave_cheney.net
Please take a look.
11 years, 12 months ago (2012-05-10 23:29:05 UTC) #3
fwereade
LGTM https://codereview.appspot.com/6207050/diff/5001/state/watcher_test.go File state/watcher_test.go (right): https://codereview.appspot.com/6207050/diff/5001/state/watcher_test.go#newcode290 state/watcher_test.go:290: // make sure there is an /environment key ...
11 years, 11 months ago (2012-05-14 13:08:46 UTC) #4
dave_cheney.net
Please take a look. https://codereview.appspot.com/6207050/diff/5001/state/watcher_test.go File state/watcher_test.go (right): https://codereview.appspot.com/6207050/diff/5001/state/watcher_test.go#newcode290 state/watcher_test.go:290: // make sure there is ...
11 years, 11 months ago (2012-05-14 22:35:26 UTC) #5
niemeyer
https://codereview.appspot.com/6207050/diff/6003/environs/config.go File environs/config.go (right): https://codereview.appspot.com/6207050/diff/6003/environs/config.go#newcode105 environs/config.go:105: environ, err := p.Open(attrs) It's not clear to me ...
11 years, 11 months ago (2012-05-14 23:17:20 UTC) #6
dave_cheney.net
I cannot explain why the environs/ files leaked into this proposal. I need to brain ...
11 years, 11 months ago (2012-05-14 23:22:09 UTC) #7
dave_cheney.net
Please take a look. https://codereview.appspot.com/6207050/diff/6003/environs/config.go File environs/config.go (right): https://codereview.appspot.com/6207050/diff/6003/environs/config.go#newcode105 environs/config.go:105: environ, err := p.Open(attrs) Yes, ...
11 years, 11 months ago (2012-05-14 23:41:58 UTC) #8
gustavo_niemeyer.net
On Mon, May 14, 2012 at 8:22 PM, <dave@cheney.net> wrote: > I cannot explain why ...
11 years, 11 months ago (2012-05-14 23:42:08 UTC) #9
niemeyer
Thanks, almost there. https://codereview.appspot.com/6207050/diff/5004/state/state.go File state/state.go (right): https://codereview.appspot.com/6207050/diff/5004/state/state.go#newcode16 state/state.go:16: zkEnvironmentPath = "/environment" Please put this ...
11 years, 11 months ago (2012-05-15 00:18:56 UTC) #10
dave_cheney.net
Please take a look. https://codereview.appspot.com/6207050/diff/5004/state/state.go File state/state.go (right): https://codereview.appspot.com/6207050/diff/5004/state/state.go#newcode16 state/state.go:16: zkEnvironmentPath = "/environment" On 2012/05/15 ...
11 years, 11 months ago (2012-05-15 00:52:27 UTC) #11
rog
LGTM
11 years, 11 months ago (2012-05-15 08:44:38 UTC) #12
niemeyer
LGTM with the minor fix on the function name. https://codereview.appspot.com/6207050/diff/6004/state/state.go File state/state.go (right): https://codereview.appspot.com/6207050/diff/6004/state/state.go#newcode69 state/state.go:69: ...
11 years, 11 months ago (2012-05-15 14:14:59 UTC) #13
dave_cheney.net
Please take a look.
11 years, 11 months ago (2012-05-15 22:40:07 UTC) #14
dave_cheney.net
Going to submit now. On Wed, May 16, 2012 at 8:40 AM, <dave@cheney.net> wrote: > ...
11 years, 11 months ago (2012-05-15 22:43:18 UTC) #15
dave_cheney.net
11 years, 11 months ago (2012-05-15 22:47:04 UTC) #16
*** Submitted:

state: add WatchEnvironConfig

This change adds a watcher for the /environment key. The result 
returned from changes to this key is a *ConfigNode. The idea is 
the provisioning agent will watch this key, then convert the 
*ConfigNode into an Environ via a yet to be written facility.

Also included is a bug fix detected while testing and a few 
small tweaks to util.go.

R=fwereade, niemeyer, gustavo@niemeyer.net, rog
CC=
https://codereview.appspot.com/6207050
Sign in to reply to this message.

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