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

Issue 9641044: Make the API address easily accessible by charms

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

Description

Make the API address easily accessible by charms The API server addresses are now available to charms in an environment variable, included in the hooks context. This allows charms (e.g. Juju GUI) to easily retrieve the API address to use when connecting to the juju WebSocket server. Also added distro-info-data to the list of apt dependencies required for testing. Pre implementation discussion with Roger. https://code.launchpad.net/~frankban/juju-core/bug-1161443-api-addresses/+merge/165881 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 2

Patch Set 2 : Make the API address easily accessible by charms #

Total comments: 6

Patch Set 3 : Make the API address easily accessible by charms #

Total comments: 4

Patch Set 4 : Make the API address easily accessible by charms #

Total comments: 2

Patch Set 5 : Make the API address easily accessible by charms #

Unified diffs Side-by-side diffs Delta from patch set Stats (+355 lines, -98 lines) Patch
M README View 2 chunks +3 lines, -2 lines 0 comments Download
A [revision details] View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/jujud/agent_test.go View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/jujud/deploy_test.go View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M cmd/jujud/machine.go View 1 1 chunk +3 lines, -2 lines 0 comments Download
M cmd/jujud/unit.go View 1 1 chunk +4 lines, -3 lines 0 comments Download
M doc/charms-in-action.txt View 1 chunk +1 line, -0 lines 0 comments Download
M environs/agent/agent.go View 1 2 1 chunk +1 line, -1 line 0 comments Download
M environs/agent/agent_test.go View 1 2 1 chunk +1 line, -1 line 0 comments Download
M environs/cloudinit.go View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M environs/cloudinit/cloudinit.go View 1 2 5 chunks +7 lines, -7 lines 0 comments Download
M environs/cloudinit/cloudinit_test.go View 1 2 8 chunks +9 lines, -9 lines 0 comments Download
M environs/cloudinit_test.go View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M environs/config/config.go View 1 6 chunks +33 lines, -1 line 0 comments Download
M environs/config/config_test.go View 1 4 chunks +65 lines, -0 lines 0 comments Download
M environs/ec2/ec2.go View 1 2 7 chunks +10 lines, -14 lines 0 comments Download
M environs/maas/environ.go View 1 4 chunks +8 lines, -11 lines 0 comments Download
M environs/maas/environ_test.go View 1 2 2 chunks +6 lines, -2 lines 0 comments Download
M environs/maas/util_test.go View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M environs/openstack/provider.go View 1 2 7 chunks +10 lines, -14 lines 0 comments Download
M schema/schema.go View 1 1 chunk +24 lines, -1 line 0 comments Download
M schema/schema_test.go View 1 2 2 chunks +38 lines, -0 lines 0 comments Download
M state/open.go View 1 2 3 2 chunks +26 lines, -2 lines 0 comments Download
M state/state_test.go View 1 2 3 2 chunks +20 lines, -1 line 0 comments Download
M worker/deployer/addresser.go View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M worker/deployer/export_test.go View 1 2 1 chunk +6 lines, -2 lines 0 comments Download
M worker/deployer/simple.go View 1 2 6 chunks +24 lines, -7 lines 0 comments Download
M worker/deployer/simple_test.go View 2 chunks +6 lines, -0 lines 0 comments Download
M worker/uniter/context.go View 4 chunks +8 lines, -1 line 0 comments Download
M worker/uniter/context_test.go View 5 chunks +21 lines, -12 lines 0 comments Download
M worker/uniter/uniter.go View 1 2 1 chunk +6 lines, -1 line 0 comments Download

Messages

Total messages: 11
frankban
Please take a look.
12 years, 1 month ago (2013-05-27 13:34:16 UTC) #1
fwereade
Sorry, but NOT LGTM. API addresses are expected to change, just like state addresses. They ...
12 years, 1 month ago (2013-05-27 20:53:43 UTC) #2
frankban
Please take a look.
12 years, 1 month ago (2013-05-29 14:14:49 UTC) #3
frankban
This is the new version of the branch including changes discussed with William: - state-port ...
12 years, 1 month ago (2013-05-29 14:15:35 UTC) #4
fwereade
Nearly there, just a couple of quibbles. https://codereview.appspot.com/9641044/diff/6001/environs/maas/util_test.go File environs/maas/util_test.go (right): https://codereview.appspot.com/9641044/diff/6001/environs/maas/util_test.go#newcode73 environs/maas/util_test.go:73: MongoPort: envConfig.StatePort(), ...
12 years, 1 month ago (2013-05-30 15:44:14 UTC) #5
frankban
Please take a look. https://codereview.appspot.com/9641044/diff/6001/environs/maas/util_test.go File environs/maas/util_test.go (right): https://codereview.appspot.com/9641044/diff/6001/environs/maas/util_test.go#newcode73 environs/maas/util_test.go:73: MongoPort: envConfig.StatePort(), On 2013/05/30 15:44:14, ...
12 years, 1 month ago (2013-05-31 09:39:23 UTC) #6
fwereade
LGTM apart from test for APIAddresses. https://codereview.appspot.com/9641044/diff/15001/state/open.go File state/open.go (right): https://codereview.appspot.com/9641044/diff/15001/state/open.go#newcode272 state/open.go:272: } Maybe do ...
12 years, 1 month ago (2013-06-03 15:18:34 UTC) #7
frankban
Please take a look. https://codereview.appspot.com/9641044/diff/15001/state/open.go File state/open.go (right): https://codereview.appspot.com/9641044/diff/15001/state/open.go#newcode272 state/open.go:272: } On 2013/06/03 15:18:35, fwereade ...
12 years, 1 month ago (2013-06-03 17:24:57 UTC) #8
dimitern
LGTM with one comment. https://codereview.appspot.com/9641044/diff/24001/environs/config/config_test.go File environs/config/config_test.go (right): https://codereview.appspot.com/9641044/diff/24001/environs/config/config_test.go#newcode326 environs/config/config_test.go:326: err: `state-port: expected number, got ...
12 years, 1 month ago (2013-06-04 14:02:59 UTC) #9
frankban
*** Submitted: Make the API address easily accessible by charms The API server addresses are ...
12 years, 1 month ago (2013-06-04 15:04:25 UTC) #10
frankban
12 years, 1 month ago (2013-06-04 15:05:37 UTC) #11
Hi William and Dimiter,
thank you both for the reviews!
Sign in to reply to this message.

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