Browse Source

AMBARI-3045. Warn if the available space is less than 16 GB at the partition where rrd logs are being stored. (Andrii Babiichuk via yusaku)

Yusaku Sako 12 years ago
parent
commit
713f6ca9f5

+ 5 - 1
ambari-web/app/controllers/wizard/step7_controller.js

@@ -17,7 +17,7 @@
  */
  */
 
 
 var App = require('app');
 var App = require('app');
-
+var numberUtils = require('utils/number_utils');
 /**
 /**
  * By Step 7, we have the following information stored in App.db and set on this
  * By Step 7, we have the following information stored in App.db and set on this
  * controller by the router.
  * controller by the router.
@@ -42,6 +42,10 @@ App.WizardStep7Controller = Em.Controller.extend({
 
 
   miscModalVisible: false, //If miscConfigChange Modal is shown
   miscModalVisible: false, //If miscConfigChange Modal is shown
 
 
+  gangliaAvailableSpace: null,
+
+  gangliaMoutDir:'/',
+
   isSubmitDisabled: function () {
   isSubmitDisabled: function () {
     return (!this.stepConfigs.filterProperty('showConfig', true).everyProperty('errorCount', 0) || this.get("miscModalVisible"));
     return (!this.stepConfigs.filterProperty('showConfig', true).everyProperty('errorCount', 0) || this.get("miscModalVisible"));
   }.property('stepConfigs.@each.errorCount', 'miscModalVisible'),
   }.property('stepConfigs.@each.errorCount', 'miscModalVisible'),

+ 1 - 1
ambari-web/app/data/HDP2/global_properties.js

@@ -2330,7 +2330,7 @@ module.exports =
     {
     {
       "id": "puppet var",
       "id": "puppet var",
       "name": "rrdcached_base_dir",
       "name": "rrdcached_base_dir",
-      "displayName": "Ganglia rrd cached base directory",
+      "displayName": "Ganglia rrdcached base directory",
       "description": "Default directory for saving the rrd files on ganglia server",
       "description": "Default directory for saving the rrd files on ganglia server",
       "defaultValue": "/var/lib/ganglia/rrds",
       "defaultValue": "/var/lib/ganglia/rrds",
       "displayType": "directory",
       "displayType": "directory",

+ 1 - 1
ambari-web/app/data/global_properties.js

@@ -2784,7 +2784,7 @@ module.exports =
     {
     {
       "id": "puppet var",
       "id": "puppet var",
       "name": "rrdcached_base_dir",
       "name": "rrdcached_base_dir",
-      "displayName": "Ganglia rrd cached base directory",
+      "displayName": "Ganglia rrdcached base directory",
       "description": "Default directory for saving the rrd files on ganglia server",
       "description": "Default directory for saving the rrd files on ganglia server",
       "defaultValue": "/var/lib/ganglia/rrds",
       "defaultValue": "/var/lib/ganglia/rrds",
       "displayType": "directory",
       "displayType": "directory",

+ 2 - 0
ambari-web/app/messages.js

@@ -438,6 +438,8 @@ Em.I18n.translations = {
   'installer.step7.ConfigErrMsg.message':'Error in custom configuration. Some properties entered in the box are already exposed on this page',
   'installer.step7.ConfigErrMsg.message':'Error in custom configuration. Some properties entered in the box are already exposed on this page',
   'installer.step7.popup.currentValue':'Current Value',
   'installer.step7.popup.currentValue':'Current Value',
   'installer.step7.popup.adjustedValue':'Adjusted Value',
   'installer.step7.popup.adjustedValue':'Adjusted Value',
+  'installer.step7.popup.rddWarning.header':'Warning: disk space low on {0}',
+  'installer.step7.popup.rddWarning.body':'A minimum of 16GB is recommended for the Ganglia Server logs but the disk mount "{0}" on {1} does not have enough space ({2} free). Go to the Misc tab and change Ganglia rrdcached base directory with more than 16GB of disk space. If you proceed without changing it, {1} will likely run out of disk space and become inoperable.',
 
 
   'installer.step8.header':'Review',
   'installer.step8.header':'Review',
   'installer.step8.body':'Please review the configuration before installation',
   'installer.step8.body':'Please review the configuration before installation',