ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From swa...@apache.org
Subject ambari git commit: AMBARI-15416. Grafana password is required field after upgrade from 2.2.0 to 2.2.2. Fix for upgrades issue. (swagle)
Date Tue, 22 Mar 2016 18:31:42 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk da7f00c44 -> 5daf83519


AMBARI-15416. Grafana password is required field after upgrade from 2.2.0 to 2.2.2. Fix for
upgrades issue. (swagle)


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

Branch: refs/heads/trunk
Commit: 5daf835191c49e17d9a63f6a6a014adb563a99d5
Parents: da7f00c
Author: Siddharth Wagle <swagle@hortonworks.com>
Authored: Tue Mar 22 11:31:35 2016 -0700
Committer: Siddharth Wagle <swagle@hortonworks.com>
Committed: Tue Mar 22 11:31:35 2016 -0700

----------------------------------------------------------------------
 .../main/resources/stacks/HDP/2.0.6/services/stack_advisor.py    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/5daf8351/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/stack_advisor.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/stack_advisor.py b/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/stack_advisor.py
index 4e8e86b..24d6dd2 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/stack_advisor.py
+++ b/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/stack_advisor.py
@@ -687,7 +687,9 @@ class HDP206StackAdvisor(DefaultStackAdvisor):
       if 'components' in service:
         for component in service['components']:
           if 'StackServiceComponents' in component:
-            if 'METRICS_GRAFANA' in component['StackServiceComponents']['component_name']:
+            # If Grafana is installed the hostnames would indicate its location
+            if 'METRICS_GRAFANA' in component['StackServiceComponents']['component_name']
and\
+              len(component['StackServiceComponents']['hostnames']) != 0:
               component_grafana_exists = True
               break
     pass


Mime
View raw message