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

Issue 11322043: Skip the service-label dance in Azure. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 9 months ago by jtv.canonical
Modified:
10 years, 8 months ago
Reviewers:
mue, rvb, mp+174906, rog
Visibility:
Public.

Description

Skip the service-label dance in Azure. We're still working out how we're supposed to determine an instance's DNS name in Azure. We may have been chasing a red herring early on: on the one hand the documentation hinted that a service's name also formed the hostname part of its DNS name, but on the other, we were getting what looked like a randomly generated DNS name assigned by Azure. And a little dance was orchestrated around that: get the instance URL from the Deployment object, store it in the Service's label field, use the label field as the source of the DNS name. As we understand it now, the weird randomly assigned hostnames only happen in Staging deployments, and the instance URLs don't even resolve when we deploy to Production (as we must do in Juju). And so this branch does away with the little dance, uses the service name as the instance's DNS name, and rips out all code that I could find that was only there to support the dance. The service label is now a mere courtesy; it's required but we may as well set it to be identical to the service name. https://code.launchpad.net/~jtv/juju-core/az-use-production-dns-name/+merge/174906 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : Skip the service-label dance in Azure. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -170 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M environs/azure/environ.go View 1 5 chunks +10 lines, -60 lines 1 comment Download
M environs/azure/environ_test.go View 5 chunks +9 lines, -77 lines 0 comments Download
M environs/azure/instance.go View 2 chunks +10 lines, -10 lines 0 comments Download
M environs/azure/instance_test.go View 2 chunks +16 lines, -23 lines 0 comments Download

Messages

Total messages: 6
jtv.canonical
Please take a look.
10 years, 9 months ago (2013-07-16 03:24:56 UTC) #1
rvb
LGTM (I've successfully tested this IRL with the change I mention in [1]). [0] 21 ...
10 years, 9 months ago (2013-07-16 09:28:42 UTC) #2
jtv.canonical
Please take a look.
10 years, 9 months ago (2013-07-16 10:23:24 UTC) #3
mue
LGTM
10 years, 9 months ago (2013-07-16 10:58:47 UTC) #4
rog
LGTM superficially, assuming staging doesn't have important properties that people may miss later. https://codereview.appspot.com/11322043/diff/5001/environs/azure/environ.go File ...
10 years, 9 months ago (2013-07-16 11:06:29 UTC) #5
jtv.canonical
10 years, 9 months ago (2013-07-16 11:25:14 UTC) #6
On 2013/07/16 11:06:29, rog wrote:
> LGTM superficially, assuming staging doesn't
> have important properties that people may miss
> later.

Mostly it has the important property that it makes it much harder to get a
working DNS name.  Even if people miss that, Juju doesn't support doing anything
about it!


>
https://codereview.appspot.com/11322043/diff/5001/environs/azure/environ.go#n...
> environs/azure/environ.go:34: // The deployment slot where to deploy
instances. 
> Azure supports
> minor gripe: we usually phrase doc comments as full sentences,
> even for constants and variables:
> 
> // DeploymentSlot holds the name of the slot that
> // instances will be deployed to.

Fixed.


> any particular reason it's exported?

Nope.  Good one — I just un-exported it.
Sign in to reply to this message.

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