add_controller.js 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684
  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.AddHostController = App.WizardController.extend({
  20. name: 'addHostController',
  21. /**
  22. * All wizards data will be stored in this variable
  23. *
  24. * cluster - cluster name
  25. * hosts - hosts, ssh key, repo info, etc.
  26. * services - services list
  27. * hostsInfo - list of selected hosts
  28. * slaveComponentHosts, hostSlaveComponents - info about slave hosts
  29. * masterComponentHosts - info about master hosts
  30. * config??? - to be described later
  31. */
  32. content: Em.Object.create({
  33. cluster: null,
  34. hosts: null,
  35. services: null,
  36. hostsInfo: null,
  37. slaveComponentHosts: null,
  38. masterComponentHosts: null,
  39. serviceConfigProperties: null,
  40. advancedServiceConfig: null,
  41. controllerName: 'addHostController',
  42. isWizard: true
  43. }),
  44. /**
  45. * Used for hiding back button in wizard
  46. */
  47. hideBackButton: true,
  48. totalSteps: 7,
  49. /**
  50. * Load clusterInfo(step1) to model
  51. */
  52. loadClusterInfo: function(){
  53. var cluster = App.db.getClusterStatus();
  54. if(!cluster){
  55. cluster = {
  56. name: App.router.getClusterName(),
  57. status: undefined,
  58. isCompleted: false,
  59. requestId: undefined,
  60. installStartTime: undefined,
  61. installTime: undefined
  62. };
  63. App.db.setClusterStatus(cluster);
  64. }
  65. this.set('content.cluster', cluster);
  66. console.log("AddHostController:loadClusterInfo: loaded data ", cluster);
  67. },
  68. /**
  69. * save status of the cluster. This is called from step8 and step9 to persist install and start requestId
  70. * @param clusterStatus object with status, isCompleted, requestId, isInstallError and isStartError field.
  71. */
  72. saveClusterStatus: function (clusterStatus) {
  73. clusterStatus.name = this.get('content.cluster.name');
  74. this.set('content.cluster', clusterStatus);
  75. console.log('called saveClusterStatus ' + JSON.stringify(clusterStatus));
  76. App.db.setClusterStatus(clusterStatus);
  77. },
  78. /**
  79. * Temporary function for wizardStep9, before back-end integration
  80. */
  81. setInfoForStep9: function () {
  82. var hostInfo = App.db.getHosts();
  83. for (var index in hostInfo) {
  84. hostInfo[index].status = "pending";
  85. hostInfo[index].message = 'Information';
  86. hostInfo[index].progress = '0';
  87. }
  88. App.db.setHosts(hostInfo);
  89. },
  90. /**
  91. * Load all data for <code>Specify Host(install step2)</code> step
  92. * Data Example:
  93. * {
  94. * hostNames: '',
  95. * manualInstall: false,
  96. * sshKey: '',
  97. * passphrase: '',
  98. * confirmPassphrase: '',
  99. * localRepo: false,
  100. * localRepoPath: ''
  101. * }
  102. */
  103. loadInstallOptions: function () {
  104. if (!this.content.hosts) {
  105. this.content.hosts = Em.Object.create();
  106. }
  107. var hostsInfo = Em.Object.create();
  108. hostsInfo.oldHostNames = App.Host.find().getEach('id').join(" <br/>");
  109. hostsInfo.hostNames = App.db.getAllHostNames() || ''; //empty string if undefined
  110. var installType = App.db.getInstallType();
  111. //false if installType not equals 'manual'
  112. hostsInfo.manualInstall = installType && installType.installType === 'manual' || false;
  113. var softRepo = App.db.getSoftRepo();
  114. if (softRepo && softRepo.repoType === 'local') {
  115. hostsInfo.localRepo = true;
  116. hostsInfo.localRepopath = softRepo.repoPath;
  117. } else {
  118. hostsInfo.localRepo = false;
  119. hostsInfo.localRepoPath = '';
  120. }
  121. hostsInfo.sshKey = '';
  122. hostsInfo.passphrase = '';
  123. hostsInfo.confirmPassphrase = '';
  124. this.set('content.hosts', hostsInfo);
  125. console.log("AddHostController:loadHosts: loaded data ", hostsInfo);
  126. },
  127. /**
  128. * Save data, which user filled, to main controller
  129. * @param stepController App.WizardStep2Controller
  130. */
  131. saveHosts: function (stepController) {
  132. //TODO: put data to content.hosts and only then save it)
  133. //App.db.setBootStatus(false);
  134. App.db.setAllHostNames(stepController.get('hostNames'));
  135. App.db.setHosts(stepController.getHostInfo());
  136. if (stepController.get('manualInstall') === false) {
  137. App.db.setInstallType({installType: 'ambari' });
  138. } else {
  139. App.db.setInstallType({installType: 'manual' });
  140. }
  141. if (stepController.get('localRepo') === false) {
  142. App.db.setSoftRepo({ 'repoType': 'remote', 'repoPath': null});
  143. } else {
  144. App.db.setSoftRepo({ 'repoType': 'local', 'repoPath': stepController.get('localRepoPath') });
  145. }
  146. },
  147. /**
  148. * Remove host from model. Used at <code>Confirm hosts(step2)</code> step
  149. * @param hosts Array of hosts, which we want to delete
  150. */
  151. removeHosts: function (hosts) {
  152. //todo Replace this code with real logic
  153. App.db.removeHosts(hosts);
  154. },
  155. /**
  156. * Save data, which user filled, to main controller
  157. * @param stepController App.WizardStep3Controller
  158. */
  159. saveConfirmedHosts: function (stepController) {
  160. var hostInfo = {};
  161. stepController.get('content.hostsInfo').forEach(function (_host) {
  162. hostInfo[_host.name] = {
  163. name: _host.name,
  164. cpu: _host.cpu,
  165. memory: _host.memory,
  166. bootStatus: _host.bootStatus,
  167. isInstalled: false
  168. };
  169. });
  170. console.log('addHostController:saveConfirmedHosts: save hosts ', hostInfo);
  171. App.db.setHosts(hostInfo);
  172. this.set('content.hostsInfo', hostInfo);
  173. },
  174. /**
  175. * Load confirmed hosts.
  176. * Will be used at <code>Assign Masters(step5)</code> step
  177. */
  178. loadConfirmedHosts: function(){
  179. this.set('content.hostsInfo', App.db.getHosts());
  180. },
  181. /**
  182. * Save data after installation to main controller
  183. * @param stepController App.WizardStep9Controller
  184. */
  185. saveInstalledHosts: function (stepController) {
  186. var hosts = stepController.get('hosts');
  187. var hostInfo = App.db.getHosts();
  188. for (var index in hostInfo) {
  189. var host = hosts.findProperty('name', hostInfo[index].name);
  190. if (host) {
  191. hostInfo[index].status = host.status;
  192. hostInfo[index].tasks = host.tasks;
  193. hostInfo[index].message = host.message;
  194. hostInfo[index].progress = host.progress;
  195. }
  196. }
  197. App.db.setHosts(hostInfo);
  198. this.set('content.hostsInfo', hostInfo);
  199. console.log('addHostController:saveInstalledHosts: save hosts ', hostInfo);
  200. },
  201. /**
  202. * Remove all data for hosts
  203. */
  204. clearHosts: function () {
  205. var hosts = this.get('content').get('hosts');
  206. if (hosts) {
  207. hosts.hostNames = '';
  208. hosts.manualInstall = false;
  209. hosts.localRepo = '';
  210. hosts.localRepopath = '';
  211. hosts.sshKey = '';
  212. hosts.passphrase = '';
  213. hosts.confirmPassphrase = '';
  214. }
  215. App.db.setHosts(null);
  216. App.db.setAllHostNames(null);
  217. },
  218. /**
  219. * Load services data. Will be used at <code>Select services(step4)</code> step
  220. */
  221. loadServices: function () {
  222. var servicesInfo = App.db.getService();
  223. if(!servicesInfo || !servicesInfo.length){
  224. servicesInfo = require('data/services').slice(0);
  225. servicesInfo.forEach(function (item) {
  226. item.isSelected = App.Service.find().someProperty('id', item.serviceName)
  227. item.isInstalled = item.isSelected;
  228. item.isDisabled = item.isSelected;
  229. });
  230. App.db.setService(servicesInfo);
  231. }
  232. servicesInfo.forEach(function (item, index) {
  233. servicesInfo[index] = Em.Object.create(item);
  234. });
  235. this.set('content.services', servicesInfo);
  236. console.log('AddHostController.loadServices: loaded data ', servicesInfo);
  237. console.log('selected services ', servicesInfo.filterProperty('isSelected', true).filterProperty('isDisabled', false).mapProperty('serviceName'));
  238. },
  239. /**
  240. * Load master component hosts data for using in required step controllers
  241. */
  242. loadMasterComponentHosts: function () {
  243. var masterComponentHosts = App.db.getMasterComponentHosts();
  244. if (!masterComponentHosts) {
  245. masterComponentHosts = [];
  246. App.Component.find().filterProperty('isMaster', true).forEach(function(item){
  247. masterComponentHosts.push({
  248. component: item.get('componentName'),
  249. hostName: item.get('host.hostName'),
  250. isInstalled: true,
  251. serviceId: item.get('service.id'),
  252. display_name: item.get('displayName')
  253. })
  254. });
  255. App.db.setMasterComponentHosts(masterComponentHosts);
  256. }
  257. this.set("content.masterComponentHosts", masterComponentHosts);
  258. console.log("AddHostController.loadMasterComponentHosts: loaded hosts ", masterComponentHosts);
  259. },
  260. /**
  261. * Save slaveHostComponents to main controller
  262. * @param stepController
  263. */
  264. saveSlaveComponentHosts: function (stepController) {
  265. var hosts = stepController.get('hosts');
  266. var isMrSelected = stepController.get('isMrSelected');
  267. var isHbSelected = stepController.get('isHbSelected');
  268. var dataNodeHosts = [];
  269. var taskTrackerHosts = [];
  270. var regionServerHosts = [];
  271. var clientHosts = [];
  272. hosts.forEach(function (host) {
  273. if (host.get('isDataNode')) {
  274. dataNodeHosts.push({
  275. hostName: host.hostName,
  276. group: 'Default',
  277. isInstalled: host.get('isDataNodeInstalled')
  278. });
  279. }
  280. if (isMrSelected && host.get('isTaskTracker')) {
  281. taskTrackerHosts.push({
  282. hostName: host.hostName,
  283. group: 'Default',
  284. isInstalled: host.get('isTaskTrackerInstalled')
  285. });
  286. }
  287. if (isHbSelected && host.get('isRegionServer')) {
  288. regionServerHosts.push({
  289. hostName: host.hostName,
  290. group: 'Default',
  291. isInstalled: host.get('isRegionServerInstalled')
  292. });
  293. }
  294. if (host.get('isClient')) {
  295. clientHosts.pushObject({
  296. hostName: host.hostName,
  297. group: 'Default',
  298. isInstalled: host.get('isClientInstalled')
  299. });
  300. }
  301. }, this);
  302. var slaveComponentHosts = [];
  303. slaveComponentHosts.push({
  304. componentName: 'DATANODE',
  305. displayName: 'DataNode',
  306. hosts: dataNodeHosts
  307. });
  308. if (isMrSelected) {
  309. slaveComponentHosts.push({
  310. componentName: 'TASKTRACKER',
  311. displayName: 'TaskTracker',
  312. hosts: taskTrackerHosts
  313. });
  314. }
  315. if (isHbSelected) {
  316. slaveComponentHosts.push({
  317. componentName: 'HBASE_REGIONSERVER',
  318. displayName: 'RegionServer',
  319. hosts: regionServerHosts
  320. });
  321. }
  322. slaveComponentHosts.pushObject({
  323. componentName: 'CLIENT',
  324. displayName: 'client',
  325. hosts: clientHosts
  326. });
  327. App.db.setSlaveComponentHosts(slaveComponentHosts);
  328. console.log('addHostController.slaveComponentHosts: saved hosts', slaveComponentHosts);
  329. this.set('content.slaveComponentHosts', slaveComponentHosts);
  330. },
  331. /**
  332. * return slaveComponents bound to hosts
  333. * @return {Array}
  334. */
  335. getSlaveComponentHosts: function () {
  336. var components = [{
  337. name : 'DATANODE',
  338. service : 'HDFS'
  339. },
  340. {
  341. name: 'TASKTRACKER',
  342. service: 'MAPREDUCE'
  343. },{
  344. name: 'HBASE_REGIONSERVER',
  345. service: 'HBASE'
  346. }];
  347. var result = [];
  348. var services = App.Service.find();
  349. var selectedServices = this.get('content.services').filterProperty('isSelected', true).mapProperty('serviceName');
  350. for(var index=0; index < components.length; index++){
  351. var comp = components[index];
  352. if(!selectedServices.contains(comp.service)){
  353. continue;
  354. }
  355. var service = services.findProperty('id', comp.service);
  356. var hosts = [];
  357. service.get('hostComponents').filterProperty('componentName', comp.name).forEach(function (host_component) {
  358. hosts.push({
  359. group: "Default",
  360. hostName: host_component.get('host.id'),
  361. isInstalled: true
  362. });
  363. }, this);
  364. result.push({
  365. componentName: comp.name,
  366. displayName: App.format.role(comp.name),
  367. hosts: hosts,
  368. isInstalled: true
  369. })
  370. }
  371. var clientsHosts = App.HostComponent.find().filterProperty('componentName', 'HDFS_CLIENT');
  372. var hosts = [];
  373. clientsHosts.forEach(function (host_component) {
  374. hosts.push({
  375. group: "Default",
  376. hostName: host_component.get('host.id'),
  377. isInstalled: true
  378. });
  379. }, this);
  380. result.push({
  381. componentName: 'CLIENT',
  382. displayName: 'client',
  383. hosts: hosts,
  384. isInstalled: true
  385. })
  386. return result;
  387. },
  388. /**
  389. * Load master component hosts data for using in required step controllers
  390. */
  391. loadSlaveComponentHosts: function () {
  392. var slaveComponentHosts = App.db.getSlaveComponentHosts();
  393. if(!slaveComponentHosts){
  394. slaveComponentHosts = this.getSlaveComponentHosts();
  395. }
  396. this.set("content.slaveComponentHosts", slaveComponentHosts);
  397. console.log("AddHostController.loadSlaveComponentHosts: loaded hosts ", slaveComponentHosts);
  398. },
  399. /**
  400. * Save config properties
  401. * @param stepController Step7WizardController
  402. */
  403. saveServiceConfigProperties: function (stepController) {
  404. var serviceConfigProperties = [];
  405. stepController.get('stepConfigs').forEach(function (_content) {
  406. _content.get('configs').forEach(function (_configProperties) {
  407. var configProperty = {
  408. name: _configProperties.get('name'),
  409. value: _configProperties.get('value'),
  410. service: _configProperties.get('serviceName')
  411. };
  412. serviceConfigProperties.push(configProperty);
  413. }, this);
  414. }, this);
  415. App.db.setServiceConfigProperties(serviceConfigProperties);
  416. this.set('content.serviceConfigProperties', serviceConfigProperties);
  417. },
  418. /**
  419. * Load serviceConfigProperties to model
  420. */
  421. loadServiceConfigProperties: function () {
  422. var serviceConfigProperties = App.db.getServiceConfigProperties();
  423. this.set('content.serviceConfigProperties', serviceConfigProperties);
  424. console.log("AddHostController.loadServiceConfigProperties: loaded config ", serviceConfigProperties);
  425. },
  426. /**
  427. * Load information about hosts with clients components
  428. */
  429. loadClients: function(){
  430. var clients = App.db.getClientsForSelectedServices();
  431. this.set('content.clients', clients);
  432. console.log("AddHostController.loadClients: loaded list ", clients);
  433. },
  434. dataLoading: function(){
  435. var dfd = $.Deferred();
  436. this.connectOutlet('loading');
  437. var interval = setInterval(function(){
  438. if (App.router.get('clusterController.isLoaded')){
  439. dfd.resolve();
  440. clearInterval(interval);
  441. }
  442. },50);
  443. return dfd.promise();
  444. },
  445. /**
  446. * Generate clients list for selected services and save it to model
  447. * @param stepController step4WizardController
  448. */
  449. saveClients: function(){
  450. var clients = [];
  451. var serviceComponents = require('data/service_components');
  452. var hostComponents = App.HostComponent.find();
  453. this.get('content.services').filterProperty('isSelected',true).forEach(function (_service) {
  454. var client = serviceComponents.filterProperty('service_name', _service.serviceName).findProperty('isClient', true);
  455. if (client) {
  456. clients.pushObject({
  457. component_name: client.component_name,
  458. display_name: client.display_name,
  459. isInstalled: hostComponents.filterProperty('componentName', client.component_name).length > 0
  460. });
  461. }
  462. }, this);
  463. App.db.setClientsForSelectedServices(clients);
  464. this.set('content.clients', clients);
  465. console.log("AddHostController.saveClients: saved list ", clients);
  466. },
  467. /**
  468. * Load data for all steps until <code>current step</code>
  469. */
  470. loadAllPriorSteps: function () {
  471. var step = this.get('currentStep');
  472. switch (step) {
  473. case '8':
  474. case '7':
  475. case '6':
  476. case '5':
  477. case '4':
  478. this.loadServiceConfigProperties();
  479. case '3':
  480. this.loadClients();
  481. this.loadServices();
  482. this.loadMasterComponentHosts();
  483. this.loadSlaveComponentHosts();
  484. this.loadConfirmedHosts();
  485. case '2':
  486. this.loadServices();
  487. this.loadConfirmedHosts();
  488. case '1':
  489. this.loadInstallOptions();
  490. case '0':
  491. this.loadClusterInfo();
  492. }
  493. },
  494. loadAdvancedConfigs: function () {
  495. this.get('content.services').filterProperty('isSelected', true).mapProperty('serviceName').forEach(function (_serviceName) {
  496. this.loadAdvancedConfig(_serviceName);
  497. }, this);
  498. },
  499. /**
  500. * Generate serviceProperties save it to localdata
  501. * called form stepController step6WizardController
  502. */
  503. loadAdvancedConfig: function (serviceName) {
  504. var self = this;
  505. var url = (App.testMode) ? '/data/wizard/stack/hdp/version01/' + serviceName + '.json' : App.apiPrefix + '/stacks/HDP/version/1.2.0/services/' + serviceName; // TODO: get this url from the stack selected by the user in Install Options page
  506. var method = 'GET';
  507. $.ajax({
  508. type: method,
  509. url: url,
  510. async: false,
  511. dataType: 'text',
  512. timeout: App.timeout,
  513. success: function (data) {
  514. var jsonData = jQuery.parseJSON(data);
  515. console.log("TRACE: Step6 submit -> In success function for the loadAdvancedConfig call");
  516. console.log("TRACE: Step6 submit -> value of the url is: " + url);
  517. var serviceComponents = jsonData.properties;
  518. serviceComponents.setEach('serviceName', serviceName);
  519. var configs;
  520. if (App.db.getAdvancedServiceConfig()) {
  521. configs = App.db.getAdvancedServiceConfig();
  522. } else {
  523. configs = [];
  524. }
  525. configs = configs.concat(serviceComponents);
  526. self.set('content.advancedServiceConfig', configs);
  527. App.db.setAdvancedServiceConfig(configs);
  528. console.log('TRACE: servicename: ' + serviceName);
  529. },
  530. error: function (request, ajaxOptions, error) {
  531. console.log("TRACE: STep6 submit -> In error function for the loadAdvancedConfig call");
  532. console.log("TRACE: STep6 submit-> value of the url is: " + url);
  533. console.log("TRACE: STep6 submit-> error code status is: " + request.status);
  534. console.log('Step6 submit: Error message is: ' + request.responseText);
  535. },
  536. statusCode: require('data/statusCodes')
  537. });
  538. },
  539. /**
  540. * Invoke installation of selected services to the server and saves the request id returned by the server.
  541. * @param isRetry
  542. */
  543. installServices: function (isRetry) {
  544. if(!isRetry && this.get('content.cluster.requestId')){
  545. return;
  546. }
  547. var self = this;
  548. var clusterName = this.get('content.cluster.name');
  549. var url = (App.testMode) ? '/data/wizard/deploy/poll_1.json' : App.apiPrefix + '/clusters/' + clusterName + '/services?ServiceInfo/state=INIT';
  550. var method = (App.testMode) ? 'GET' : 'PUT';
  551. var data = '{"ServiceInfo": {"state": "INSTALLED"}}';
  552. $.ajax({
  553. type: method,
  554. url: url,
  555. data: data,
  556. async: false,
  557. dataType: 'text',
  558. timeout: App.timeout,
  559. success: function (data) {
  560. var jsonData = jQuery.parseJSON(data);
  561. var installSartTime = new Date().getTime();
  562. console.log("TRACE: STep8 -> In success function for the installService call");
  563. console.log("TRACE: STep8 -> value of the url is: " + url);
  564. if (jsonData) {
  565. var requestId = jsonData.href.match(/.*\/(.*)$/)[1];
  566. console.log('requestId is: ' + requestId);
  567. var clusterStatus = {
  568. status: 'PENDING',
  569. requestId: requestId,
  570. isInstallError: false,
  571. isCompleted: false,
  572. installStartTime: installSartTime
  573. };
  574. self.saveClusterStatus(clusterStatus);
  575. } else {
  576. console.log('ERROR: Error occurred in parsing JSON data');
  577. }
  578. },
  579. error: function (request, ajaxOptions, error) {
  580. console.log("TRACE: STep8 -> In error function for the installService call");
  581. console.log("TRACE: STep8 -> value of the url is: " + url);
  582. console.log("TRACE: STep8 -> error code status is: " + request.status);
  583. console.log('Step8: Error message is: ' + request.responseText);
  584. var clusterStatus = {
  585. status: 'PENDING',
  586. isInstallError: true,
  587. isCompleted: false
  588. };
  589. self.saveClusterStatus(clusterStatus);
  590. },
  591. statusCode: require('data/statusCodes')
  592. });
  593. },
  594. /**
  595. * Remove all loaded data.
  596. * Created as copy for App.router.clearAllSteps
  597. */
  598. clearAllSteps: function () {
  599. this.clearHosts();
  600. //todo it)
  601. },
  602. /**
  603. * Clear all temporary data
  604. */
  605. finish: function(){
  606. this.setCurrentStep('1', false);
  607. App.db.setService(undefined); //not to use this data at AddService page
  608. App.db.setHosts(undefined);
  609. App.db.setMasterComponentHosts(undefined);
  610. App.db.setSlaveComponentHosts(undefined);
  611. App.db.setClusterStatus(undefined);
  612. App.router.get('updateController').updateAll();
  613. }
  614. });