You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ao...@apache.org on 2015/12/03 12:13:34 UTC

[1/2] ambari git commit: AMBARI-14178. Can not to enable custom hostnames for agents (aonishuk)

Repository: ambari
Updated Branches:
  refs/heads/branch-2.1 da745f764 -> 6ce004126
  refs/heads/trunk 35b28f01e -> 5d1f56df8


AMBARI-14178. Can not to enable custom hostnames for agents (aonishuk)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/5d1f56df
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/5d1f56df
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/5d1f56df

Branch: refs/heads/trunk
Commit: 5d1f56df8f408a1e1c54cfe993f9674eb39ad807
Parents: 35b28f0
Author: Andrew Onishuk <ao...@hortonworks.com>
Authored: Thu Dec 3 13:13:25 2015 +0200
Committer: Andrew Onishuk <ao...@hortonworks.com>
Committed: Thu Dec 3 13:13:25 2015 +0200

----------------------------------------------------------------------
 ambari-agent/src/main/python/ambari_agent/hostname.py | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/5d1f56df/ambari-agent/src/main/python/ambari_agent/hostname.py
----------------------------------------------------------------------
diff --git a/ambari-agent/src/main/python/ambari_agent/hostname.py b/ambari-agent/src/main/python/ambari_agent/hostname.py
index 2ee79bd..0f5f069 100644
--- a/ambari-agent/src/main/python/ambari_agent/hostname.py
+++ b/ambari-agent/src/main/python/ambari_agent/hostname.py
@@ -78,6 +78,8 @@ def public_hostname(config):
         cached_public_hostname = out.strip().lower()
         logger.info("Read public hostname '" + cached_public_hostname + "' using agent:public_hostname_script")
         return cached_public_hostname
+      else:
+        logger.warn("Execution of '{0}' returned {1}. {2}\n{3}".format(scriptname, output.returncode, err.strip(), out.strip()))
   except:
     #ignore for now.
     trace_info = traceback.format_exc()


[2/2] ambari git commit: AMBARI-14178. Can not to enable custom hostnames for agents (aonishuk)

Posted by ao...@apache.org.
AMBARI-14178. Can not to enable custom hostnames for agents (aonishuk)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/6ce00412
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/6ce00412
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/6ce00412

Branch: refs/heads/branch-2.1
Commit: 6ce0041266e21dc7beb0d511d0b74c7e469f5412
Parents: da745f7
Author: Andrew Onishuk <ao...@hortonworks.com>
Authored: Thu Dec 3 13:13:28 2015 +0200
Committer: Andrew Onishuk <ao...@hortonworks.com>
Committed: Thu Dec 3 13:13:28 2015 +0200

----------------------------------------------------------------------
 ambari-agent/src/main/python/ambari_agent/hostname.py | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/6ce00412/ambari-agent/src/main/python/ambari_agent/hostname.py
----------------------------------------------------------------------
diff --git a/ambari-agent/src/main/python/ambari_agent/hostname.py b/ambari-agent/src/main/python/ambari_agent/hostname.py
index 9cb75d6..87e1e0f 100644
--- a/ambari-agent/src/main/python/ambari_agent/hostname.py
+++ b/ambari-agent/src/main/python/ambari_agent/hostname.py
@@ -69,6 +69,8 @@ def public_hostname(config):
         cached_public_hostname = out.strip().lower()
         logger.info("Read public hostname '" + cached_public_hostname + "' using agent:public_hostname_script")
         return cached_public_hostname
+      else:
+        logger.warn("Execution of '{0}' returned {1}. {2}\n{3}".format(scriptname, output.returncode, err.strip(), out.strip()))
   except:
     #ignore for now.
     trace_info = traceback.format_exc()