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

Issue 11342043: state/api: Deployer client-side facade. (Closed)

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

Description

state/api: Deployer client-side facade. Implemented all the necessary API calls for the deployer worker. This is the last step needed before the deployer can be refactored to use only the API to talk to state. Also fixed the StringsWatcher client implementation (I initially got it wrong, but since nobody was using it yet it got undetected). Few other minor issues discovered and fixed in state, adding tests as needed. https://code.launchpad.net/~dimitern/juju-core/070-deployer-client-facade/+merge/174973 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 13

Patch Set 2 : state/api: Deployer client-side facade. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+484 lines, -21 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
A state/api/deployer/deployer.go View 1 chunk +61 lines, -0 lines 0 comments Download
A state/api/deployer/deployer_test.go View 1 1 chunk +244 lines, -0 lines 0 comments Download
A state/api/deployer/machine.go View 1 chunk +40 lines, -0 lines 0 comments Download
A state/api/deployer/unit.go View 1 chunk +85 lines, -0 lines 0 comments Download
M state/api/machiner/machiner.go View 1 chunk +1 line, -1 line 0 comments Download
M state/api/state.go View 2 chunks +6 lines, -0 lines 0 comments Download
M state/api/upgrader/upgrader_test.go View 1 chunk +1 line, -1 line 0 comments Download
M state/api/watcher/watcher.go View 1 1 chunk +12 lines, -16 lines 0 comments Download
M state/apiserver/root.go View 1 2 chunks +11 lines, -0 lines 0 comments Download
M state/machine.go View 1 1 chunk +5 lines, -0 lines 0 comments Download
M state/machine_test.go View 1 chunk +2 lines, -0 lines 0 comments Download
M state/unit.go View 1 1 chunk +8 lines, -3 lines 0 comments Download
M state/unit_test.go View 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 5
dimitern
Please take a look.
10 years, 9 months ago (2013-07-16 10:59:05 UTC) #1
mue
LGTM, only some comments. https://codereview.appspot.com/11342043/diff/1/state/api/deployer/deployer_test.go File state/api/deployer/deployer_test.go (right): https://codereview.appspot.com/11342043/diff/1/state/api/deployer/deployer_test.go#newcode53 state/api/deployer/deployer_test.go:53: s.stateAPI = s.OpenAPIAs(c, s.machine.Tag(), "test-password") ...
10 years, 9 months ago (2013-07-16 12:20:37 UTC) #2
fwereade
LGTM. I can see arguments both ways for the *FromTag functions... I think it's probably ...
10 years, 9 months ago (2013-07-16 13:00:06 UTC) #3
dimitern
Please take a look. https://codereview.appspot.com/11342043/diff/1/state/api/deployer/deployer_test.go File state/api/deployer/deployer_test.go (right): https://codereview.appspot.com/11342043/diff/1/state/api/deployer/deployer_test.go#newcode53 state/api/deployer/deployer_test.go:53: s.stateAPI = s.OpenAPIAs(c, s.machine.Tag(), "test-password") ...
10 years, 9 months ago (2013-07-16 14:20:14 UTC) #4
fwereade
10 years, 9 months ago (2013-07-17 07:57:29 UTC) #5
Message was sent while issue was closed.
FWIW, I don't think you fixed the potential event-skipping in StringsWatcher.
Followup please, though, rather than adding to this.
Sign in to reply to this message.

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