wizard.js 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707
  1. /**
  2. * Licensed to the Apache Software Foundation (ASF) under one
  3. * or more contributor license agreements. See the NOTICE file
  4. * distributed with this work for additional information
  5. * regarding copyright ownership. The ASF licenses this file
  6. * to you under the Apache License, Version 2.0 (the
  7. * "License"); you may not use this file except in compliance
  8. * with the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing, software
  13. * distributed under the License is distributed on an "AS IS" BASIS,
  14. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. * See the License for the specific language governing permissions and
  16. * limitations under the License.
  17. */
  18. var App = require('app');
  19. App.WizardController = Em.Controller.extend({
  20. isStepDisabled: null,
  21. init: function () {
  22. this.set('isStepDisabled', []);
  23. this.clusters = App.Cluster.find();
  24. this.isStepDisabled.pushObject(Ember.Object.create({
  25. step: 1,
  26. value: false
  27. }));
  28. for (var i = 2; i <= this.get('totalSteps'); i++) {
  29. this.isStepDisabled.pushObject(Ember.Object.create({
  30. step: i,
  31. value: true
  32. }));
  33. }
  34. // window.onbeforeunload = function () {
  35. // return "You have not saved your document yet. If you continue, your work will not be saved."
  36. //}
  37. },
  38. setStepsEnable: function () {
  39. for (var i = 1; i <= this.totalSteps; i++) {
  40. var step = this.get('isStepDisabled').findProperty('step', i);
  41. if (i <= this.get('currentStep')) {
  42. step.set('value', false);
  43. } else {
  44. step.set('value', true);
  45. }
  46. }
  47. }.observes('currentStep'),
  48. setLowerStepsDisable: function (stepNo) {
  49. for (var i = 1; i < stepNo; i++) {
  50. var step = this.get('isStepDisabled').findProperty('step', i);
  51. step.set('value', true);
  52. }
  53. },
  54. /**
  55. * Set current step to new value.
  56. * Method moved from App.router.setInstallerCurrentStep
  57. * @param currentStep
  58. * @param completed
  59. */
  60. currentStep: function () {
  61. return App.get('router').getWizardCurrentStep(this.get('name').substr(0, this.get('name').length - 10));
  62. }.property(),
  63. /**
  64. * Set current step to new value.
  65. * Method moved from App.router.setInstallerCurrentStep
  66. * @param currentStep
  67. * @param completed
  68. */
  69. setCurrentStep: function (currentStep, completed) {
  70. App.db.setWizardCurrentStep(this.get('name').substr(0, this.get('name').length - 10), currentStep, completed);
  71. this.set('currentStep', currentStep);
  72. },
  73. clusters: null,
  74. isStep1: function () {
  75. return this.get('currentStep') == 1;
  76. }.property('currentStep'),
  77. isStep2: function () {
  78. return this.get('currentStep') == 2;
  79. }.property('currentStep'),
  80. isStep3: function () {
  81. return this.get('currentStep') == 3;
  82. }.property('currentStep'),
  83. isStep4: function () {
  84. return this.get('currentStep') == 4;
  85. }.property('currentStep'),
  86. isStep5: function () {
  87. return this.get('currentStep') == 5;
  88. }.property('currentStep'),
  89. isStep6: function () {
  90. return this.get('currentStep') == 6;
  91. }.property('currentStep'),
  92. isStep7: function () {
  93. return this.get('currentStep') == 7;
  94. }.property('currentStep'),
  95. isStep8: function () {
  96. return this.get('currentStep') == 8;
  97. }.property('currentStep'),
  98. isStep9: function () {
  99. return this.get('currentStep') == 9;
  100. }.property('currentStep'),
  101. isStep10: function () {
  102. return this.get('currentStep') == 10;
  103. }.property('currentStep'),
  104. gotoStep: function (step) {
  105. if (this.get('isStepDisabled').findProperty('step', step).get('value') !== false) {
  106. return;
  107. }
  108. // if going back from Step 9 in Install Wizard, delete the checkpoint so that the user is not redirected
  109. // to Step 9
  110. if (this.get('content.controllerName') == 'installerController' && this.get('currentStep') === '9' && step < 9) {
  111. App.clusterStatus.setClusterStatus({
  112. clusterName: this.get('clusterName'),
  113. clusterState: 'CLUSTER_NOT_CREATED_1',
  114. wizardControllerName: 'installerController',
  115. localdb: App.db.data
  116. });
  117. }
  118. if ((this.get('currentStep') - step) > 1) {
  119. App.ModalPopup.show({
  120. header: Em.I18n.t('installer.navigation.warning.header'),
  121. onPrimary: function () {
  122. App.router.send('gotoStep' + step);
  123. this.hide();
  124. },
  125. body: "If you proceed to go back to Step " + step + ", you will lose any changes you have made beyond this step"
  126. });
  127. } else {
  128. App.router.send('gotoStep' + step);
  129. }
  130. },
  131. gotoStep1: function () {
  132. this.gotoStep(1);
  133. },
  134. gotoStep2: function () {
  135. this.gotoStep(2);
  136. },
  137. gotoStep3: function () {
  138. this.gotoStep(3);
  139. },
  140. gotoStep4: function () {
  141. this.gotoStep(4);
  142. },
  143. gotoStep5: function () {
  144. this.gotoStep(5);
  145. },
  146. gotoStep6: function () {
  147. this.gotoStep(6);
  148. },
  149. gotoStep7: function () {
  150. this.gotoStep(7);
  151. },
  152. gotoStep8: function () {
  153. this.gotoStep(8);
  154. },
  155. gotoStep9: function () {
  156. this.gotoStep(9);
  157. },
  158. gotoStep10: function () {
  159. this.gotoStep(10);
  160. },
  161. /**
  162. * Initialize host status info for step9
  163. */
  164. setInfoForStep9: function () {
  165. var hostInfo = App.db.getHosts();
  166. for (var index in hostInfo) {
  167. hostInfo[index].status = "pending";
  168. hostInfo[index].message = 'Waiting';
  169. hostInfo[index].logTasks = [];
  170. hostInfo[index].tasks = [];
  171. hostInfo[index].progress = '0';
  172. }
  173. App.db.setHosts(hostInfo);
  174. },
  175. /**
  176. * Remove all data for installOptions step
  177. */
  178. clearInstallOptions: function () {
  179. var installOptions = jQuery.extend({}, this.get('installOptionsTemplate'));
  180. this.set('content.installOptions', installOptions);
  181. this.save('installOptions');
  182. this.set('content.hosts', []);
  183. this.save('hosts');
  184. },
  185. toObject: function(object){
  186. var result = {};
  187. for(var i in object){
  188. if(object.hasOwnProperty(i)){
  189. result[i] = object[i];
  190. }
  191. }
  192. return result;
  193. },
  194. /**
  195. * save status of the cluster. This is called from step8 and step9 to persist install and start requestId
  196. * @param clusterStatus object with status, isCompleted, requestId, isInstallError and isStartError field.
  197. */
  198. saveClusterStatus: function (clusterStatus) {
  199. var oldStatus = this.toObject(this.get('content.cluster'));
  200. clusterStatus = jQuery.extend(oldStatus, clusterStatus);
  201. if (clusterStatus.requestId &&
  202. clusterStatus.oldRequestsId.indexOf(clusterStatus.requestId) === -1){
  203. clusterStatus.oldRequestsId.push(clusterStatus.requestId);
  204. }
  205. this.set('content.cluster', clusterStatus);
  206. this.save('cluster');
  207. },
  208. /**
  209. * Invoke installation of selected services to the server and saves the request id returned by the server.
  210. * @param isRetry
  211. */
  212. installServices: function (isRetry) {
  213. // clear requests since we are installing services
  214. // and we don't want to get tasks for previous install attempts
  215. this.set('content.cluster.oldRequestsId', []);
  216. this.set('content.cluster.requestId', null);
  217. var clusterName = this.get('content.cluster.name');
  218. var data;
  219. var name;
  220. switch (this.get('content.controllerName')) {
  221. case 'addHostController':
  222. if (isRetry) {
  223. name = 'wizard.install_services.add_host_controller.is_retry';
  224. }
  225. else {
  226. name = 'wizard.install_services.add_host_controller.not_is_retry';
  227. }
  228. data = '{"RequestInfo": {"context" :"'+ Em.I18n.t('requestInfo.installComponents') +'"}, "Body": {"HostRoles": {"state": "INSTALLED"}}}';
  229. break;
  230. case 'installerController':
  231. default:
  232. if (isRetry) {
  233. name = 'wizard.install_services.installer_controller.is_retry';
  234. data = '{"RequestInfo": {"context" :"'+ Em.I18n.t('requestInfo.installComponents') +'"}, "Body": {"HostRoles": {"state": "INSTALLED"}}}';
  235. }
  236. else {
  237. name = 'wizard.install_services.installer_controller.not_is_retry';
  238. data = '{"RequestInfo": {"context" :"'+ Em.I18n.t('requestInfo.installServices') +'"}, "Body": {"ServiceInfo": {"state": "INSTALLED"}}}';
  239. }
  240. break;
  241. }
  242. App.ajax.send({
  243. name: name,
  244. sender: this,
  245. data: {
  246. data: data,
  247. cluster: clusterName
  248. },
  249. success: 'installServicesSuccessCallback',
  250. error: 'installServicesErrorCallback'
  251. });
  252. },
  253. installServicesSuccessCallback: function (jsonData) {
  254. var installStartTime = new Date().getTime();
  255. console.log("TRACE: In success function for the installService call");
  256. if (jsonData) {
  257. var requestId = jsonData.Requests.id;
  258. console.log('requestId is: ' + requestId);
  259. var clusterStatus = {
  260. status: 'PENDING',
  261. requestId: requestId,
  262. isInstallError: false,
  263. isCompleted: false,
  264. installStartTime: installStartTime
  265. };
  266. this.saveClusterStatus(clusterStatus);
  267. } else {
  268. console.log('ERROR: Error occurred in parsing JSON data');
  269. }
  270. },
  271. installServicesErrorCallback: function (request, ajaxOptions, error) {
  272. console.log("TRACE: In error function for the installService call");
  273. console.log("TRACE: error code status is: " + request.status);
  274. console.log('Error message is: ' + request.responseText);
  275. var clusterStatus = {
  276. status: 'PENDING',
  277. isInstallError: false,
  278. isCompleted: false
  279. };
  280. this.saveClusterStatus(clusterStatus);
  281. },
  282. bootstrapRequestId: null,
  283. /*
  284. Bootstrap selected hosts.
  285. */
  286. launchBootstrap: function (bootStrapData) {
  287. App.ajax.send({
  288. name: 'wizard.launch_bootstrap',
  289. sender: this,
  290. data: {
  291. bootStrapData: bootStrapData
  292. },
  293. success: 'launchBootstrapSuccessCallback',
  294. error: 'launchBootstrapErrorCallback'
  295. });
  296. return this.get('bootstrapRequestId');
  297. },
  298. launchBootstrapSuccessCallback: function (data) {
  299. console.log("TRACE: POST bootstrap succeeded");
  300. this.set('bootstrapRequestId', data.requestId);
  301. },
  302. launchBootstrapErrorCallback: function () {
  303. console.log("ERROR: POST bootstrap failed");
  304. alert('Bootstrap call failed. Please try again.');
  305. },
  306. /**
  307. * Load <code>content.<name></code> variable from localStorage, if wasn't loaded before.
  308. * If you specify <code>reload</code> to true - it will reload it.
  309. * @param name
  310. * @param reload
  311. * @return {Boolean}
  312. */
  313. load: function (name, reload) {
  314. if (this.get('content.' + name) && !reload) {
  315. return false;
  316. }
  317. var result = App.db['get' + name.capitalize()]();
  318. if (!result){
  319. result = this['get' + name.capitalize()]();
  320. App.db['set' + name.capitalize()](result);
  321. console.log(this.get('name') + ": created " + name, result);
  322. }
  323. this.set('content.' + name, result);
  324. console.log(this.get('name') + ": loaded " + name, result);
  325. },
  326. save: function(name){
  327. var value = this.toObject(this.get('content.' + name));
  328. App.db['set' + name.capitalize()](value);
  329. console.log(this.get('name') + ": saved " + name, value);
  330. },
  331. clear: function () {
  332. this.set('content', Ember.Object.create({
  333. 'controllerName': this.get('content.controllerName')
  334. }));
  335. this.set('currentStep', 0);
  336. this.clearStorageData();
  337. },
  338. clusterStatusTemplate : {
  339. name: "",
  340. status: "PENDING",
  341. isCompleted: false,
  342. requestId: null,
  343. installStartTime: null,
  344. installTime: null,
  345. isInstallError: false,
  346. isStartError: false,
  347. oldRequestsId: []
  348. },
  349. clearStorageData: function(){
  350. App.db.setService(undefined); //not to use this data at AddService page
  351. App.db.setHosts(undefined);
  352. App.db.setMasterComponentHosts(undefined);
  353. App.db.setSlaveComponentHosts(undefined);
  354. App.db.setCluster(undefined);
  355. App.db.setAllHostNames(undefined);
  356. App.db.setSlaveProperties(undefined);
  357. App.db.setInstallOptions(undefined);
  358. App.db.setAllHostNamesPattern(undefined);
  359. },
  360. installOptionsTemplate: {
  361. hostNames: "", //string
  362. manualInstall: false, //true, false
  363. useSsh: true, //bool
  364. isJavaHome : false, //bool
  365. javaHome: App.defaultJavaHome, //string
  366. localRepo: false, //true, false
  367. sshKey: "", //string
  368. bootRequestId: null //string
  369. },
  370. loadedServiceComponents: null,
  371. /**
  372. * Generate serviceComponents as pr the stack definition and save it to localdata
  373. * called form stepController step4WizardController
  374. */
  375. loadServiceComponents: function () {
  376. App.ajax.send({
  377. name: 'wizard.service_components',
  378. sender: this,
  379. data: {
  380. stackUrl: App.get('stackVersionURL')
  381. },
  382. success: 'loadServiceComponentsSuccessCallback',
  383. error: 'loadServiceComponentsErrorCallback'
  384. });
  385. return this.get('loadedServiceComponents');
  386. },
  387. loadServiceComponentsSuccessCallback: function (jsonData) {
  388. var displayOrderConfig = require('data/services');
  389. console.log("TRACE: getService ajax call -> In success function for the getServiceComponents call");
  390. console.log("TRACE: jsonData.services : " + jsonData.services);
  391. // Creating Model
  392. var Service = Ember.Object.extend({
  393. serviceName: null,
  394. displayName: null,
  395. isDisabled: true,
  396. isSelected: true,
  397. isInstalled: false,
  398. description: null,
  399. version: null
  400. });
  401. var data = [];
  402. // loop through all the service components
  403. for (var i = 0; i < displayOrderConfig.length; i++) {
  404. var entry = jsonData.services.findProperty("name", displayOrderConfig[i].serviceName);
  405. if (entry) {
  406. var myService = Service.create({
  407. serviceName: entry.name,
  408. displayName: displayOrderConfig[i].displayName,
  409. isDisabled: i === 0,
  410. isSelected: displayOrderConfig[i].isSelected,
  411. canBeSelected: displayOrderConfig[i].canBeSelected,
  412. isInstalled: false,
  413. isHidden: displayOrderConfig[i].isHidden,
  414. description: entry.comment,
  415. version: entry.version
  416. });
  417. data.push(myService);
  418. }
  419. else {
  420. console.warn('Service not found - ', displayOrderConfig[i].serviceName);
  421. }
  422. }
  423. this.set('loadedServiceComponents', data);
  424. console.log('TRACE: service components: ' + JSON.stringify(data));
  425. },
  426. loadServiceComponentsErrorCallback: function (request, ajaxOptions, error) {
  427. console.log("TRACE: STep5 -> In error function for the getServiceComponents call");
  428. console.log("TRACE: STep5 -> error code status is: " + request.status);
  429. console.log('Step8: Error message is: ' + request.responseText);
  430. },
  431. loadServicesFromServer: function() {
  432. var services = App.db.getService();
  433. if (services) {
  434. return;
  435. }
  436. var apiService = this.loadServiceComponents();
  437. this.set('content.services', apiService);
  438. App.db.setService(apiService);
  439. },
  440. registerErrPopup: function (header, message) {
  441. App.ModalPopup.show({
  442. header: header,
  443. secondary: false,
  444. onPrimary: function () {
  445. this.hide();
  446. },
  447. bodyClass: Ember.View.extend({
  448. template: Ember.Handlebars.compile(['<p>{{view.message}}</p>'].join('\n')),
  449. message: message
  450. })
  451. });
  452. },
  453. /**
  454. * Save hosts that the user confirmed to proceed with from step 3
  455. * @param stepController App.WizardStep3Controller
  456. */
  457. saveConfirmedHosts: function (stepController) {
  458. var hostInfo = {};
  459. stepController.get('content.hosts').forEach(function (_host) {
  460. hostInfo[_host.name] = {
  461. name: _host.name,
  462. cpu: _host.cpu,
  463. memory: _host.memory,
  464. disk_info: _host.disk_info,
  465. bootStatus: _host.bootStatus,
  466. isInstalled: false
  467. };
  468. });
  469. console.log('wizardController:saveConfirmedHosts: save hosts ', hostInfo);
  470. App.db.setHosts(hostInfo);
  471. this.set('content.hosts', hostInfo);
  472. },
  473. /**
  474. * Save data after installation to main controller
  475. * @param stepController App.WizardStep9Controller
  476. */
  477. saveInstalledHosts: function (stepController) {
  478. var hosts = stepController.get('hosts');
  479. var hostInfo = App.db.getHosts();
  480. for (var index in hostInfo) {
  481. hostInfo[index].status = "pending";
  482. var host = hosts.findProperty('name', hostInfo[index].name);
  483. if (host) {
  484. hostInfo[index].status = host.status;
  485. hostInfo[index].message = host.message;
  486. hostInfo[index].progress = host.progress;
  487. }
  488. }
  489. this.set('content.hosts', hostInfo);
  490. this.save('hosts');
  491. console.log('wizardController:saveInstalledHosts: save hosts ', hostInfo);
  492. },
  493. /**
  494. * Save slaveHostComponents to main controller
  495. * @param stepController
  496. */
  497. saveSlaveComponentHosts: function (stepController) {
  498. var hosts = stepController.get('hosts');
  499. var headers = stepController.get('headers');
  500. var formattedHosts = Ember.Object.create();
  501. headers.forEach(function(header) {
  502. formattedHosts.set(header.get('name'), []);
  503. });
  504. hosts.forEach(function (host) {
  505. var checkboxes = host.get('checkboxes');
  506. headers.forEach(function(header) {
  507. var cb = checkboxes.findProperty('title', header.get('label'));
  508. if (cb.get('checked')) {
  509. formattedHosts.get(header.get('name')).push({
  510. hostName: host.hostName,
  511. group: 'Default',
  512. isInstalled: cb.get('isInstalled')
  513. });
  514. }
  515. });
  516. });
  517. var slaveComponentHosts = [];
  518. headers.forEach(function(header) {
  519. slaveComponentHosts.push({
  520. componentName: header.get('name'),
  521. displayName: header.get('label').replace(/\s/g, ''),
  522. hosts: formattedHosts.get(header.get('name'))
  523. });
  524. });
  525. App.db.setSlaveComponentHosts(slaveComponentHosts);
  526. console.log('wizardController.slaveComponentHosts: saved hosts', slaveComponentHosts);
  527. this.set('content.slaveComponentHosts', slaveComponentHosts);
  528. },
  529. /**
  530. * Return true if cluster data is loaded and false otherwise.
  531. * This is used for all wizard controllers except for installer wizard.
  532. */
  533. dataLoading: function(){
  534. var dfd = $.Deferred();
  535. this.connectOutlet('loading');
  536. if (App.router.get('clusterController.isLoaded')){
  537. dfd.resolve();
  538. } else{
  539. var interval = setInterval(function(){
  540. if (App.router.get('clusterController.isLoaded')){
  541. dfd.resolve();
  542. clearInterval(interval);
  543. }
  544. },50);
  545. }
  546. return dfd.promise();
  547. },
  548. /**
  549. * Save cluster status before going to deploy step
  550. * @param name cluster state. Unique for every wizard
  551. */
  552. saveClusterState: function(name){
  553. App.clusterStatus.setClusterStatus({
  554. clusterName: this.get('content.cluster.name'),
  555. clusterState: name,
  556. wizardControllerName: this.get('content.controllerName'),
  557. localdb: App.db.data
  558. });
  559. },
  560. /**
  561. * load advanced configs from server
  562. */
  563. loadAdvancedConfigs: function () {
  564. var configs = (App.db.getAdvancedServiceConfig()) ? App.db.getAdvancedServiceConfig() : [];
  565. this.get('content.services').filterProperty('isSelected', true).mapProperty('serviceName').forEach(function (_serviceName) {
  566. var serviceComponents = App.config.loadAdvancedConfig(_serviceName);
  567. if(serviceComponents){
  568. configs = configs.concat(serviceComponents);
  569. }
  570. }, this);
  571. this.set('content.advancedServiceConfig', configs);
  572. App.db.setAdvancedServiceConfig(configs);
  573. },
  574. /**
  575. * Load serviceConfigProperties to model
  576. */
  577. loadServiceConfigProperties: function () {
  578. var serviceConfigProperties = App.db.getServiceConfigProperties();
  579. this.set('content.serviceConfigProperties', serviceConfigProperties);
  580. console.log("AddHostController.loadServiceConfigProperties: loaded config ", serviceConfigProperties);
  581. },
  582. /**
  583. * Save config properties
  584. * @param stepController Step7WizardController
  585. */
  586. saveServiceConfigProperties: function (stepController) {
  587. var serviceConfigProperties = [];
  588. stepController.get('stepConfigs').forEach(function (_content) {
  589. _content.get('configs').forEach(function (_configProperties) {
  590. var displayType = _configProperties.get('displayType');
  591. if (displayType === 'directories' || displayType === 'directory') {
  592. var value = _configProperties.get('value').trim().split(/\s+/g).join(',');
  593. _configProperties.set('value', value);
  594. }
  595. var overrides = _configProperties.get('overrides');
  596. var overridesArray = [];
  597. if(overrides!=null){
  598. overrides.forEach(function(override){
  599. var overrideEntry = {
  600. value: override.get('value'),
  601. hosts: []
  602. };
  603. override.get('selectedHostOptions').forEach(function(host){
  604. overrideEntry.hosts.push(host);
  605. });
  606. overridesArray.push(overrideEntry);
  607. });
  608. }
  609. overridesArray = (overridesArray.length) ? overridesArray : null;
  610. var configProperty = {
  611. id: _configProperties.get('id'),
  612. name: _configProperties.get('name'),
  613. value: _configProperties.get('value'),
  614. defaultValue: _configProperties.get('defaultValue'),
  615. serviceName: _configProperties.get('serviceName'),
  616. domain: _configProperties.get('domain'),
  617. filename: _configProperties.get('filename'),
  618. overrides: overridesArray
  619. };
  620. serviceConfigProperties.push(configProperty);
  621. }, this);
  622. }, this);
  623. App.db.setServiceConfigProperties(serviceConfigProperties);
  624. this.set('content.serviceConfigProperties', serviceConfigProperties);
  625. }
  626. })