You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@whirr.apache.org by "Alex Heneveld (JIRA)" <ji...@apache.org> on 2012/05/10 11:21:13 UTC

[jira] [Commented] (WHIRR-511) Instance.getPrivateHostName returns an IP address

    [ https://issues.apache.org/jira/browse/WHIRR-511?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13272210#comment-13272210 ] 

Alex Heneveld commented on WHIRR-511:
-------------------------------------

Why do we need the private hostname?

We might conceivably need private IP or public IP, although even that is risky (quite a leaky distinction).  In general seems best to me to use *public hostname* and expect (require) that to resolve correctly. So if any action from this *issue* let's remove "private hostname".

Patch to #459 means public hostname is returned correctly more often, either by DNS resolution or jclouds metadata. (If there are gaps let us know, but probably they should be fixed in jclouds...)

                
> Instance.getPrivateHostName returns an IP address
> -------------------------------------------------
>
>                 Key: WHIRR-511
>                 URL: https://issues.apache.org/jira/browse/WHIRR-511
>             Project: Whirr
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 0.8.0
>         Environment: AWS m1.large
>            Reporter: David Arthur
>            Assignee: Andrei Savu
>            Priority: Minor
>              Labels: aws, hostname
>             Fix For: 0.8.0
>
>
> getPrivateHostName returns the same thing as getPrivateIp. I would expect to get something like "ip-42-142-142-142.ec2.internal" as is reported by the AWS console. 
> Instance.getNodeMetadata().getHostname() returns the actual `hostname` as reported by the OS of the instance (which worked for me). 
> Not sure if this is expected behavior, or if it's a JCloud issue, or what. Feel free to mark invalid

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira