Return-Path: X-Original-To: apmail-incubator-ambari-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-ambari-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E7B93D96B for ; Mon, 11 Mar 2013 15:01:18 +0000 (UTC) Received: (qmail 56980 invoked by uid 500); 11 Mar 2013 15:01:18 -0000 Delivered-To: apmail-incubator-ambari-dev-archive@incubator.apache.org Received: (qmail 56964 invoked by uid 500); 11 Mar 2013 15:01:18 -0000 Mailing-List: contact ambari-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ambari-dev@incubator.apache.org Delivered-To: mailing list ambari-dev@incubator.apache.org Received: (qmail 56928 invoked by uid 99); 11 Mar 2013 15:01:17 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Mar 2013 15:01:17 +0000 Date: Mon, 11 Mar 2013 15:01:17 +0000 (UTC) From: "Nate Cole (JIRA)" To: ambari-dev@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (AMBARI-1608) Public hostname should defer to hostname() when an override exists. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Nate Cole created AMBARI-1608: --------------------------------- Summary: Public hostname should defer to hostname() when an override exists. Key: AMBARI-1608 URL: https://issues.apache.org/jira/browse/AMBARI-1608 Project: Ambari Issue Type: Bug Reporter: Nate Cole Assignee: Nate Cole Fix For: 1.3.0 Consider the following scenario: * Custom hostname is created in accordance with AMBARI-1255 * The custom hostname is not the same as returned with python {{socket.fqdn()}} * When calling the {{public_hostname()}} method, the public ec2 URL fails when NOT on an ec2 cluster * The script then uses {{socket.fqdn()}} to return the public name. * Ambari uses the public name for publishing links etc, which do not resolve This ticket means to fix this issue by deferring to {{hostname()}} when the public hostname cannot be determined. {{hostname()}} already makes appropriate failure cases to return the correct value. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira