Comment 9 for bug 945505

Revision history for this message
Kapil Thangavelu (hazmat) wrote : Re: [Bug 945505] Re: Use ipAddress instead of dnsName now that txaws supports it

why not keep it as is and do provider specific behavior, ie ec2 we return
dns names, in openstack use ips and deprecate use of ec2 api for openstack.

-k

On Wed, Jun 27, 2012 at 10:13 AM, Clint Byrum <email address hidden> wrote:

> Perhaps we can make the code pragmatic and work around the issue when
> it is obvious that we have run into it:
>
> # In pseudo-python
> try:
> address = gethostbyname(api_response['publicHostname'])
> except DnsError:
> address = api_response['publicIpAddress']
>
> This works in all cases, as it takes advantage of Amazon's split DNS
> views for optimal addresses, and when the hostname is not resolvable,
> falls back to whatever the API told us the "most accessible" address
> was.
>
> Is there any reason not to be more robust like this?
>
> --
> You received this bug notification because you are subscribed to juju.
> https://bugs.launchpad.net/bugs/945505
>
> Title:
> Use ipAddress instead of dnsName now that txaws supports it
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/juju/+bug/945505/+subscriptions
>