no host and tecs need install ,clean cluster-list
Change-Id: Ie661a4c8128b2a608962bb74f2841fe6c382a119
This commit is contained in:
parent
ea5a0f2471
commit
5806974017
@ -113,7 +113,7 @@ class InstallTask(object):
|
||||
self.req, self.cluster_id, BACKENDS_INSTALL_ORDER)
|
||||
if not backends:
|
||||
LOG.info(_("No backends need to install."))
|
||||
return
|
||||
return self.cluster_id
|
||||
for backend in backends:
|
||||
backend_driver = driver.load_deployment_driver(backend)
|
||||
backend_driver.install(self.req, self.cluster_id)
|
||||
@ -147,7 +147,12 @@ class InstallTask(object):
|
||||
else:
|
||||
LOG.info(_("No host need to install os, begin to install "
|
||||
"backends for cluster %s." % self.cluster_id))
|
||||
self._backends_install()
|
||||
return_value = self._backends_install()
|
||||
if self.cluster_id == return_value:
|
||||
if daisy_cmn.in_cluster_list(self.cluster_id):
|
||||
LOG.info("No host need install, "
|
||||
"clear install global variables")
|
||||
daisy_cmn.cluster_list_delete(self.cluster_id)
|
||||
return
|
||||
|
||||
run_once_flag = True
|
||||
|
Loading…
x
Reference in New Issue
Block a user