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

Issue 13261044: Get the address correctly from the container.

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 8 months ago by thumper
Modified:
10 years, 8 months ago
Reviewers:
mp+182271, fwereade, jameinel
Visibility:
Public.

Description

Get the address correctly from the container. This is kind of messy, but it does work. This uses an extra environment variable from the upstart script to identify the type of container. MAAS then uses this when trying to work out the hostname of the machine. We do need a nicer way to get this done. We also want to move the environment variables from the upstart script into the agent config, but this will be a follow up branch. https://code.launchpad.net/~thumper/juju-core/container-address/+merge/182271 (do not edit description out of merge proposal)

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -22 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M container/lxc/lxc.go View 2 chunks +2 lines, -0 lines 0 comments Download
M juju/osenv/vars.go View 1 chunk +1 line, -0 lines 0 comments Download
M provider/local/export_test.go View 2 chunks +2 lines, -1 line 0 comments Download
M provider/local/net.go View 1 chunk +3 lines, -19 lines 0 comments Download
M provider/maas/environprovider.go View 2 chunks +9 lines, -0 lines 0 comments Download
M utils/network.go View 2 chunks +20 lines, -0 lines 0 comments Download
M worker/deployer/simple.go View 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 5
thumper
Please take a look.
10 years, 8 months ago (2013-08-27 05:42:58 UTC) #1
jameinel
I fully support moving away from environment variables into doing this properly via something like ...
10 years, 8 months ago (2013-08-27 06:06:36 UTC) #2
fwereade
LGTM. Are we now settled on using EnvironProvider methods internally to get addresses across the ...
10 years, 8 months ago (2013-08-27 14:36:18 UTC) #3
thumper
On 2013/08/27 06:06:36, jameinel wrote: > I fully support moving away from environment variables into ...
10 years, 8 months ago (2013-08-27 22:55:21 UTC) #4
thumper
10 years, 8 months ago (2013-08-27 22:55:49 UTC) #5
On 2013/08/27 14:36:18, fwereade wrote:
> LGTM. Are we now settled on using EnvironProvider methods internally to get
> addresses across the board? I forget some of the discussions...

I'm not entirely sure, but since I'm still waiting to hear back on a lot of the
addressability issues, this will work for now.
Sign in to reply to this message.

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