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

Issue 7228058: nova: Addresses in ServerDetail (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 2 months ago by dimitern
Modified:
11 years, 2 months ago
Reviewers:
mp+145321, rog
Visibility:
Public.

Description

nova: Addresses in ServerDetail Implemented handling of public/private addresses map inside ServerDetail. Added tests in the double to check RunServer sets the appropriate addresses. We need this in juju-core to get the IP address of an instance. https://code.launchpad.net/~dimitern/goose/nova-addresses2/+merge/145321 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 4

Patch Set 2 : nova: Addresses in ServerDetail #

Total comments: 7

Patch Set 3 : nova: Addresses in ServerDetail #

Patch Set 4 : nova: Addresses in ServerDetail #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -22 lines) Patch
A [revision details] View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M nova/live_test.go View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M nova/nova.go View 1 1 chunk +26 lines, -12 lines 0 comments Download
M testservices/novaservice/service_http.go View 1 2 3 1 chunk +17 lines, -10 lines 0 comments Download
M testservices/novaservice/service_http_test.go View 2 chunks +19 lines, -0 lines 0 comments Download

Messages

Total messages: 11
dimitern
Please take a look.
11 years, 2 months ago (2013-01-29 08:22:22 UTC) #1
wallyworld
LGTM. Perhaps we should add a few extra checks to TestListServersDetail. There's pattern matches for ...
11 years, 2 months ago (2013-01-29 10:22:34 UTC) #2
rog
LGTM modulo the below remarks. https://codereview.appspot.com/7228058/diff/1/nova/nova.go File nova/nova.go (right): https://codereview.appspot.com/7228058/diff/1/nova/nova.go#newcode159 nova/nova.go:159: Addresses map[string][]IPAddress On 2013/01/29 ...
11 years, 2 months ago (2013-01-29 10:38:32 UTC) #3
rog
LGTM modulo the below remarks.
11 years, 2 months ago (2013-01-29 10:38:32 UTC) #4
dimitern
Please take a look. https://codereview.appspot.com/7228058/diff/1/nova/nova.go File nova/nova.go (right): https://codereview.appspot.com/7228058/diff/1/nova/nova.go#newcode159 nova/nova.go:159: Addresses map[string][]IPAddress On 2013/01/29 10:22:34, ...
11 years, 2 months ago (2013-01-29 14:35:29 UTC) #5
dimitern
Done, most of the things. However: - Try as I might I couldn't find any ...
11 years, 2 months ago (2013-01-29 14:38:08 UTC) #6
gz
LGTM https://codereview.appspot.com/7228058/diff/7/testservices/novaservice/service_http.go File testservices/novaservice/service_http.go (right): https://codereview.appspot.com/7228058/diff/7/testservices/novaservice/service_http.go#newcode582 testservices/novaservice/service_http.go:582: server.Addresses["private"] = []nova.IPAddress{{4, addr}, {6, "::face::000f"}} As mentioned, ...
11 years, 2 months ago (2013-01-29 15:36:12 UTC) #7
dimitern
*** Submitted: nova: Addresses in ServerDetail Implemented handling of public/private addresses map inside ServerDetail. Added ...
11 years, 2 months ago (2013-01-29 16:06:54 UTC) #8
rog
that's really useful, thanks. i think having this kind of documentation in the API really ...
11 years, 2 months ago (2013-01-29 16:07:59 UTC) #9
rog
On 2013/01/29 16:07:59, rog wrote: > that's really useful, thanks. i think having this > ...
11 years, 2 months ago (2013-01-29 16:08:23 UTC) #10
dimitern
11 years, 2 months ago (2013-01-29 16:14:18 UTC) #11
On 2013/01/29 16:08:23, rog wrote:
> On 2013/01/29 16:07:59, rog wrote:
> > that's really useful, thanks. i think having this
> > kind of documentation in the API really adds
> > to its value.
> > 
> > a few minor suggestions below, but still LGTM regardless.
> > 
> > https://codereview.appspot.com/7228058/diff/7/nova/nova.go
> > File nova/nova.go (right):
> > 
> > https://codereview.appspot.com/7228058/diff/7/nova/nova.go#newcode158
> > nova/nova.go:158: // First public IP address (if floating IP is assigned,
> > otherwise "")
> > i like to see whole-sentence comments for fields, similar to functions
> although
> > YMMV.
> > 
> > // AddressIPv4 and AddressIP6 hold the first public
> > // IPv4 and IPv6 addresses of the server, or ""
> > // if no floating IP is assigned.
> > ?
> > 
> > https://codereview.appspot.com/7228058/diff/7/nova/nova.go#newcode162
> > nova/nova.go:162: // Optional list of all IP addresses assigned to this
> > // Addresses holds the list of all IP addresses assigned
> > // to this server, grouped by "network" name ("public",
> > // "private" or a custom name).
> > 
> > ?
> > 
> > https://codereview.appspot.com/7228058/diff/7/nova/nova.go#newcode167
> > nova/nova.go:167: Created  string // creation timestamp
> > for the record, this should probably be a time.Time, but for the time being:
> > 
> > // Created holds the creation timestamp of the
> > // server in RFC3339 format.
> > 
> > ?
> > 
> > https://codereview.appspot.com/7228058/diff/7/nova/nova.go#newcode174
> > nova/nova.go:174: Progress int    // completion % of current operation
> > // Progress holds the completion percentage of the
> > // current operation.
> > ?
> > 
> > https://codereview.appspot.com/7228058/diff/7/nova/nova.go#newcode175
> > nova/nova.go:175: Status   string // One of the Status* constants
> > // Status holds the current status of the server,
> > // one of the Status* constants.
> > 
> > ?
> > 
> > https://codereview.appspot.com/7228058/diff/7/nova/nova.go#newcode177
> > nova/nova.go:177: Updated  string // timestamp of last update
> > // Updated holds the timestamp of the last update to
> > // the server in RFC3339 format.
> > ?
> 
> darn, too late.

Never fear, will do a follow-up CL with your suggestions :)
Sign in to reply to this message.

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