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

Issue 25480047: AddSupportedContainers on provisioner machine api (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 5 months ago by wallyworld
Modified:
10 years, 5 months ago
Reviewers:
jameinel, mp+194982
Visibility:
Public.

Description

AddSupportedContainers on provisioner machine api The AddSupportedContainers api on the provisioner.Machine will be used by future changes to machine agent initialisation. A change was also made to the server side implementation so that the machine doc txn-revno is no longer checked. It was causing issues with multi-threaded tests where different fields in the machine doc were being updated. The machine agent initialisation thread is the only one that updates the supported containers set. https://code.launchpad.net/~wallyworld/juju-core/provisioner-api-supported-containers/+merge/194982 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 6

Patch Set 2 : AddSupportedContainers on provisioner machine api #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+140 lines, -4 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M state/api/params/internal.go View 1 1 chunk +13 lines, -0 lines 0 comments Download
M state/api/provisioner/machine.go View 1 1 chunk +22 lines, -0 lines 0 comments Download
M state/api/provisioner/provisioner_test.go View 1 1 chunk +13 lines, -0 lines 0 comments Download
M state/apiserver/provisioner/provisioner.go View 1 1 chunk +25 lines, -0 lines 0 comments Download
M state/apiserver/provisioner/provisioner_test.go View 1 1 chunk +63 lines, -0 lines 1 comment Download
M state/machine.go View 2 chunks +2 lines, -4 lines 0 comments Download

Messages

Total messages: 5
wallyworld
Please take a look.
10 years, 5 months ago (2013-11-13 04:24:16 UTC) #1
jameinel
I really like where this is going, but I think we're missing a couple tests. ...
10 years, 5 months ago (2013-11-13 09:27:52 UTC) #2
wallyworld
Please take a look. https://codereview.appspot.com/25480047/diff/1/state/api/provisioner/machine.go File state/api/provisioner/machine.go (right): https://codereview.appspot.com/25480047/diff/1/state/api/provisioner/machine.go#newcode246 state/api/provisioner/machine.go:246: var results params.AddSupportedContainersResults On 2013/11/13 ...
10 years, 5 months ago (2013-11-14 00:58:07 UTC) #3
jameinel
LGTM https://codereview.appspot.com/25480047/diff/20001/state/apiserver/provisioner/provisioner_test.go File state/apiserver/provisioner/provisioner_test.go (right): https://codereview.appspot.com/25480047/diff/20001/state/apiserver/provisioner/provisioner_test.go#newcode801 state/apiserver/provisioner/provisioner_test.go:801: }) The only other test I've seen here ...
10 years, 5 months ago (2013-11-14 10:38:00 UTC) #4
wallyworld
10 years, 5 months ago (2013-11-14 23:59:11 UTC) #5
On 2013/11/14 10:38:00, jameinel wrote:
> LGTM
> 
>
https://codereview.appspot.com/25480047/diff/20001/state/apiserver/provisione...
> File state/apiserver/provisioner/provisioner_test.go (right):
> 
>
https://codereview.appspot.com/25480047/diff/20001/state/apiserver/provisione...
> state/apiserver/provisioner/provisioner_test.go:801: })
> The only other test I've seen here is a machine that doesn't exist still shows
> up as ErrUnauthorized rather than ErrNotFound.
> I think you can do that with just adding 
> 
> {
>    MachineTag: "machine-42",
>    ...
> },

Done
Sign in to reply to this message.

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