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

Issue 14527044: local: ensure that state and api ports are free

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

Description

local: ensure that state and api ports are free Evaluation of a way to ensure unused ports for state and API of the local provider. In case a port is used the next one is tried. Caution: Only evaluation so far. Tests pass, but no explicit tests for port conflicts. Will be added after discussion. https://code.launchpad.net/~themue/juju-core/051-local-provider-ports/+merge/189812 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : local: ensure that state and api ports are free #

Total comments: 2

Patch Set 3 : local: ensure that state and api ports are free #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -1 line) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M provider/local/environprovider.go View 1 2 2 chunks +34 lines, -1 line 0 comments Download
M provider/local/export_test.go View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M provider/local/local_test.go View 1 2 2 chunks +17 lines, -0 lines 0 comments Download

Messages

Total messages: 5
mue
Please take a look.
10 years, 7 months ago (2013-10-08 10:45:37 UTC) #1
mue
Please take a look.
10 years, 7 months ago (2013-10-08 13:30:44 UTC) #2
fwereade
yeah, that was roughly what I was thinking, but I'm not sure I thought it ...
10 years, 7 months ago (2013-10-08 13:40:48 UTC) #3
mue
Please take a look. https://codereview.appspot.com/14527044/diff/3001/provider/local/environprovider.go File provider/local/environprovider.go (right): https://codereview.appspot.com/14527044/diff/3001/provider/local/environprovider.go#newcode60 provider/local/environprovider.go:60: statePort, err := ensureLocalPort(cfg.StatePort()) On ...
10 years, 6 months ago (2013-10-14 15:02:58 UTC) #4
fwereade
10 years, 6 months ago (2013-11-05 15:46:54 UTC) #5
Yeah, I think this checks as much as we reasonably can. LGTM, thanks.
Sign in to reply to this message.

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