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

Issue 12176044: Environ.OpenPorts() for the Azure provider. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 9 months ago by allenap
Modified:
10 years, 8 months ago
Reviewers:
mp+177908, dimitern, jtv.canonical, gz
Visibility:
Public.

Description

Environ.OpenPorts() for the Azure provider. After discussion with jtv, this method is tested by providing a patch point through which azureInstance.openEndpoints() is called. This avoids having to set up a lengthy HTTP conversation only to demonstrate that it is being called successfully. https://code.launchpad.net/~allenap/juju-core/azure-open-ports/+merge/177908 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : Environ.OpenPorts() for the Azure provider. #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -1 line) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M environs/azure/environ.go View 1 1 chunk +33 lines, -1 line 0 comments Download
M environs/azure/environ_test.go View 1 1 chunk +75 lines, -0 lines 6 comments Download
M environs/azure/instance.go View 2 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 7
allenap
Please take a look.
10 years, 9 months ago (2013-07-31 17:10:14 UTC) #1
jtv.canonical
Yes, setting up a huge test for this does seem disproportionate. But you could start ...
10 years, 9 months ago (2013-08-02 10:49:17 UTC) #2
allenap
Please take a look.
10 years, 9 months ago (2013-08-02 12:50:28 UTC) #3
dimitern
LGTM modulo a few suggestions below https://codereview.appspot.com/12176044/diff/5001/environs/azure/environ_test.go File environs/azure/environ_test.go (right): https://codereview.appspot.com/12176044/diff/5001/environs/azure/environ_test.go#newcode1046 environs/azure/environ_test.go:1046: openInstanceEndpoints = func(i ...
10 years, 9 months ago (2013-08-02 13:04:31 UTC) #4
allenap
Thanks for the review Dimiter! https://codereview.appspot.com/12176044/diff/5001/environs/azure/environ_test.go File environs/azure/environ_test.go (right): https://codereview.appspot.com/12176044/diff/5001/environs/azure/environ_test.go#newcode1046 environs/azure/environ_test.go:1046: openInstanceEndpoints = func(i *azureInstance, ...
10 years, 9 months ago (2013-08-02 13:10:10 UTC) #5
gz
No real comments on the code but... * Do we actually want to support global ...
10 years, 9 months ago (2013-08-02 16:34:28 UTC) #6
allenap
10 years, 9 months ago (2013-08-02 17:22:30 UTC) #7
On 2013/08/02 16:34:28, gz wrote:
> No real comments on the code but...
> 
> * Do we actually want to support global firewaller mode with azure? It's
mostly
> a hack around security group limits with ec2 and openstack, rather than
> something people should actually use.

How do we indicate that it's not supported? I'm happy with that.

> 
> * What happens when new deloyments are created after a port is opened? Unless
> I'm missing something, they don't get the port open applied. With a global
> security group, once port N is opened, all machines from there on can be
> accessed on that port.

You're not missing anything; the port will not be open on a new machine. I
assumed that Juju would ensure convergence. Sounds like not supporting the
global firewall mode is the best approach.
Sign in to reply to this message.

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