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

Issue 84470044: environs: Add []NetworkInfo to StartInstance (Closed)

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

Description

environs: Add []NetworkInfo to StartInstance This does not introduce new logic, just changes the StartInstance() return values (across all providers) to include a slice of NetworkInfo, which will be used in a follow-up by the MAAS provider to report what networks and network interfaces will be configured for the instance. https://code.launchpad.net/~dimitern/juju-core/383-environs-startinstance-networks/+merge/214297 Requires: https://code.launchpad.net/~dimitern/juju-core/382-api-provisioner-machine-nics/+merge/214272 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+124 lines, -109 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/jujud/bootstrap_test.go View 1 chunk +1 line, -1 line 0 comments Download
M environs/broker.go View 2 chunks +12 lines, -1 line 4 comments Download
M environs/jujutest/livetests.go View 1 chunk +1 line, -1 line 0 comments Download
M juju/testing/instance.go View 6 chunks +8 lines, -8 lines 0 comments Download
M provider/azure/environ.go View 5 chunks +9 lines, -9 lines 0 comments Download
M provider/common/bootstrap.go View 1 chunk +1 line, -1 line 0 comments Download
M provider/common/bootstrap_test.go View 4 chunks +8 lines, -8 lines 0 comments Download
M provider/common/mock_test.go View 2 chunks +2 lines, -2 lines 0 comments Download
M provider/dummy/environs.go View 3 chunks +10 lines, -8 lines 0 comments Download
M provider/ec2/ec2.go View 4 chunks +11 lines, -11 lines 0 comments Download
M provider/joyent/environ_instance.go View 6 chunks +11 lines, -11 lines 0 comments Download
M provider/local/environ.go View 3 chunks +5 lines, -5 lines 0 comments Download
M provider/maas/environ.go View 4 chunks +8 lines, -8 lines 2 comments Download
M provider/maas/environ_whitebox_test.go View 1 chunk +1 line, -1 line 0 comments Download
M provider/manual/environ.go View 1 chunk +2 lines, -2 lines 0 comments Download
M provider/openstack/local_test.go View 2 chunks +2 lines, -2 lines 0 comments Download
M provider/openstack/provider.go View 7 chunks +13 lines, -13 lines 0 comments Download
M worker/provisioner/kvm-broker.go View 3 chunks +6 lines, -6 lines 0 comments Download
M worker/provisioner/kvm-broker_test.go View 1 chunk +1 line, -1 line 0 comments Download
M worker/provisioner/lxc-broker.go View 3 chunks +6 lines, -6 lines 0 comments Download
M worker/provisioner/lxc-broker_test.go View 1 chunk +1 line, -1 line 0 comments Download
M worker/provisioner/provisioner_task.go View 1 chunk +1 line, -1 line 0 comments Download
M worker/provisioner/provisioner_test.go View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 4
dimitern
Please take a look.
10 years ago (2014-04-04 16:03:57 UTC) #1
fwereade
LGTM, but I'd really like to see the nil values tested explicitly rather than discarded ...
10 years ago (2014-04-04 16:47:14 UTC) #2
gz
LGTM. I'd like a bug filed or something as followup for making our StartInstance interface ...
10 years ago (2014-04-04 16:47:39 UTC) #3
dimitern
10 years ago (2014-04-04 17:38:50 UTC) #4
https://codereview.appspot.com/84470044/diff/1/environs/broker.go
File environs/broker.go (right):

https://codereview.appspot.com/84470044/diff/1/environs/broker.go#newcode42
environs/broker.go:42: NetworkName   string
On 2014/04/04 16:47:14, fwereade wrote:
> Yeah, FWIW I think this is more of an environs.NetworkId or something (like
> instance.Id before it got its own package).
> 
> Mid-term, the juju model will want to distinguish between provider ids and
juju
> names for the same networks. But for now I think we're ok...

Yes, we can change it later (and we will most definitely change it by the time
we have complete networking support).

https://codereview.appspot.com/84470044/diff/1/environs/broker.go#newcode42
environs/broker.go:42: NetworkName   string
On 2014/04/04 16:47:39, gz wrote:
> Againt, NetworkName might not be the best naming, and I worry a bit we'll need
> to fiddle with the other memebers in the near future, but leave as is for now,
> should be fine.

Noted, but it will do for now.

https://codereview.appspot.com/84470044/diff/1/provider/maas/environ.go
File provider/maas/environ.go (left):

https://codereview.appspot.com/84470044/diff/1/provider/maas/environ.go#oldco...
provider/maas/environ.go:383: // TODO(bug 1193998) - return instance hardware
characteristics as well
On 2014/04/04 16:47:14, fwereade wrote:
> ha.

Indeed!
Sign in to reply to this message.

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