Keyboard Shortcuts

File
u :up to issue
m :publish + mail comments
M :edit review message
j / k :jump to file after / before current file
J / K :jump to next file with a comment after / before current file
Side-by-side diff
i :toggle intra-line diffs
e :expand all comments
c :collapse all comments
s :toggle showing all comments
n / p :next / previous diff chunk or comment
N / P :next / previous comment
<Up> / <Down> :next / previous line
<Enter> :respond to / edit current comment
d :mark current comment as done
Issue
u :up to list of issues
m :publish + mail comments
j / k :jump to patch after / before current patch
o / <Enter> :open current patch in side-by-side view
i :open current patch in unified diff view
Issue List
j / k :jump to issue after / before current issue
o / <Enter> :open current issue
# : close issue
Comment/message editing
<Ctrl> + s or <Ctrl> + Enter :save comment
<Esc> :cancel edit
Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(88)
Issues Repositories Search
Open Issues | Closed Issues | All Issues | Sign in with your Google Account to create issues and add comments

Issue 52710048: provider/openstack: Add network config option

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 11 months ago by gz
Modified:
11 years, 11 months ago
Reviewers:
natefinch , fwereade, mp+203114
Visibility:
Public.
provider/openstack: Add network config option Resolve issue with running juju on openstack setups with multiple networks, by allowing the user to supply a network label or id that juju should use for its machines. https://code.launchpad.net/~gz/juju-core/openstack_network_config_1241674/+merge/203114 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 6

Patch Set 2 : provider/openstack: Add network config option #

Total comments: 4

Patch Set 3 : provider/openstack: Add network config option #

Created: 11 years, 11 months ago
Download [raw] [tar.bz2]
Unified diffs Side-by-side diffs Delta from patch set Stats (+150 lines, -9 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M dependencies.tsv View 1 1 chunk +1 line, -1 line 0 comments Download
M provider/openstack/config.go View 3 chunks +6 lines, -0 lines 0 comments Download
M provider/openstack/config_test.go View 3 chunks +11 lines, -0 lines 0 comments Download
M provider/openstack/export_test.go View 1 chunk +5 lines, -0 lines 0 comments Download
M provider/openstack/local_test.go View 1 2 2 chunks +70 lines, -0 lines 0 comments Download
M provider/openstack/provider.go View 1 2 5 chunks +55 lines, -8 lines 0 comments Download
Total messages: 5
|
gz
Please take a look.
11 years, 11 months ago (2014年01月24日 16:47:12 UTC) #1
Please take a look.
Sign in to reply to this message.
fwereade
quick comments -- thoughts? https://codereview.appspot.com/52710048/diff/1/provider/openstack/config.go File provider/openstack/config.go (right): https://codereview.appspot.com/52710048/diff/1/provider/openstack/config.go#newcode42 provider/openstack/config.go:42: "network": "", this feels like ...
11 years, 11 months ago (2014年01月24日 16:53:48 UTC) #2
quick comments -- thoughts?
https://codereview.appspot.com/52710048/diff/1/provider/openstack/config.go
File provider/openstack/config.go (right):
https://codereview.appspot.com/52710048/diff/1/provider/openstack/config.go#n...
provider/openstack/config.go:42: "network": "",
this feels like maybe it should be an Omit?
https://codereview.appspot.com/52710048/diff/1/provider/openstack/config.go#n...
provider/openstack/config.go:95: return c.attrs["network"].(string)
and this a `,ok`?
https://codereview.appspot.com/52710048/diff/1/provider/openstack/local_test.go
File provider/openstack/local_test.go (right):
https://codereview.appspot.com/52710048/diff/1/provider/openstack/local_test....
provider/openstack/local_test.go:364: "network":
"f81d4fae-7dec-11d0-a765-00a0c91e6bf6",
a thought: default-network? private-network?
https://codereview.appspot.com/52710048/diff/1/provider/openstack/local_test....
provider/openstack/local_test.go:371: c.Assert(err, gc.ErrorMatches, "(?s)cannot
run instance: .*itemNotFound.*")
I'd like to see a more precise error check here really.
Sign in to reply to this message.
gz
Please take a look. https://codereview.appspot.com/52710048/diff/1/provider/openstack/local_test.go File provider/openstack/local_test.go (right): https://codereview.appspot.com/52710048/diff/1/provider/openstack/local_test.go#newcode364 provider/openstack/local_test.go:364: "network": "f81d4fae-7dec-11d0-a765-00a0c91e6bf6", On 2014年01月24日 16:53:49, ...
11 years, 11 months ago (2014年01月24日 17:03:01 UTC) #3
Please take a look.
https://codereview.appspot.com/52710048/diff/1/provider/openstack/local_test.go
File provider/openstack/local_test.go (right):
https://codereview.appspot.com/52710048/diff/1/provider/openstack/local_test....
provider/openstack/local_test.go:364: "network":
"f81d4fae-7dec-11d0-a765-00a0c91e6bf6",
On 2014年01月24日 16:53:49, fwereade wrote:
> a thought: default-network? private-network?
Yeah, config named 'network' is bad, but I think config for this at all is bad.
And it should take multiple values. I am resolved to leave some bikeshedding for
post 1.17.1 over this. :)
https://codereview.appspot.com/52710048/diff/1/provider/openstack/local_test....
provider/openstack/local_test.go:371: c.Assert(err, gc.ErrorMatches, "(?s)cannot
run instance: .*itemNotFound.*")
On 2014年01月24日 16:53:49, fwereade wrote:
> I'd like to see a more precise error check here really.
Sadly our errors through goose are massively verbose, and the real errors from
(older at least) openstack versions are actually this impresice. It might be an
argument for doing more prechecking even when a valid uuid is supplied.
Sign in to reply to this message.
natefinch
LGTM with a couple small points. https://codereview.appspot.com/52710048/diff/20001/provider/openstack/provider.go File provider/openstack/provider.go (right): https://codereview.appspot.com/52710048/diff/20001/provider/openstack/provider.go#newcode79 provider/openstack/provider.go:79: # networks specifies ...
11 years, 11 months ago (2014年01月24日 20:12:40 UTC) #4
LGTM with a couple small points.
https://codereview.appspot.com/52710048/diff/20001/provider/openstack/provide...
File provider/openstack/provider.go (right):
https://codereview.appspot.com/52710048/diff/20001/provider/openstack/provide...
provider/openstack/provider.go:79: # networks specifies the network label or
uuid to bring machines up on, in
s/networks/network
https://codereview.appspot.com/52710048/diff/20001/provider/openstack/provide...
provider/openstack/provider.go:642: var uuidRegexp =
regexp.MustCompile(uuidPattern)
Seems like there ought to be a function that verifies guids in Go instead of
hand-writing a regex...
Sign in to reply to this message.
gz
Please take a look. https://codereview.appspot.com/52710048/diff/20001/provider/openstack/provider.go File provider/openstack/provider.go (right): https://codereview.appspot.com/52710048/diff/20001/provider/openstack/provider.go#newcode79 provider/openstack/provider.go:79: # networks specifies the network ...
11 years, 11 months ago (2014年01月24日 20:43:52 UTC) #5
Please take a look.
https://codereview.appspot.com/52710048/diff/20001/provider/openstack/provide...
File provider/openstack/provider.go (right):
https://codereview.appspot.com/52710048/diff/20001/provider/openstack/provide...
provider/openstack/provider.go:79: # networks specifies the network label or
uuid to bring machines up on, in
On 2014年01月24日 20:12:45, nate.finch wrote:
> s/networks/network
Will fix... I did plan to allow supplying multiple initially, but we'll leave
that for later.
https://codereview.appspot.com/52710048/diff/20001/provider/openstack/provide...
provider/openstack/provider.go:642: var uuidRegexp =
regexp.MustCompile(uuidPattern)
On 2014年01月24日 20:12:45, nate.finch wrote:
> Seems like there ought to be a function that verifies guids in Go instead of
> hand-writing a regex... 
Yes, yes there should. The best I could find was:
<https://github.com/nu7hatch/gouuid/blob/master/uuid.go>
Sign in to reply to this message.
|
Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b

AltStyle によって変換されたページ (->オリジナル) /