You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ab...@apache.org on 2013/09/24 14:06:30 UTC
[4/9] git commit: BUG-8208 Warn if the available space is less than
10 GB at the partition where rrd logs are being stored 2
BUG-8208 Warn if the available space is less than 10 GB at the partition where rrd logs are being stored 2
Project: http://git-wip-us.apache.org/repos/asf/incubator-ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ambari/commit/580d0aa3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ambari/tree/580d0aa3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ambari/diff/580d0aa3
Branch: refs/heads/trunk
Commit: 580d0aa39865c1be5ba7f96514b65d763cad5fe7
Parents: e222d3e
Author: aBabiichuk <ab...@cybervisiontech.com>
Authored: Wed Aug 28 18:38:54 2013 +0300
Committer: aBabiichuk <ab...@cybervisiontech.com>
Committed: Tue Sep 24 14:26:57 2013 +0300
----------------------------------------------------------------------
ambari-web/app/controllers/wizard/step7_controller.js | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/580d0aa3/ambari-web/app/controllers/wizard/step7_controller.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/wizard/step7_controller.js b/ambari-web/app/controllers/wizard/step7_controller.js
index 5ae630a..2a98c71 100644
--- a/ambari-web/app/controllers/wizard/step7_controller.js
+++ b/ambari-web/app/controllers/wizard/step7_controller.js
@@ -258,13 +258,16 @@ App.WizardStep7Controller = Em.Controller.extend({
}.property('content'),
gangliaHostDiskInfo: function(){
- var gangliaGarbageHost = this.get('content.masterComponentHosts').findProperty('component','GANGLIA_SERVER').hostName;
+ var ganglia = this.get('content.masterComponentHosts').findProperty('component','GANGLIA_SERVER');
+ if(!ganglia) return false;
+ var gangliaGarbageHost = ganglia.hostName;
var gangliaPartition = this.get('content.hosts')[gangliaGarbageHost].disk_info;
return gangliaPartition;
}.property('content'),
isGangliaPartitionGood: function() {
var gangliaDiskInfo = this.get('gangliaHostDiskInfo');
+ if(!gangliaDiskInfo) return true;
var miscCoinfigs = this.get('stepConfigs').findProperty('serviceName','MISC').get('configs');
var rddDir = miscCoinfigs.findProperty('name', 'rrdcached_base_dir').value;
var available = 0;