fix bug of read from conf file is str instead of flag

1.fix bug of get config from conf file is a str
2.modify daisy default backend as kolla
3.modify daisy max os install num to 20

Change-Id: I9ebb0e9ec4ff100ec723544d10a15aebe78585f2
This commit is contained in:
zhouya 2017-04-28 10:50:35 +08:00
parent 686ef7c193
commit 27fb288f11
4 changed files with 8 additions and 7 deletions

View File

@ -441,7 +441,7 @@ def version_load_mcast(kolla_version_pkg_file, hosts_list):
# TODO: impl. daisy_conf_mcast_enabled
daisy_conf_mcast_enabled = _daisy_conf_mcast_flag()
if daisy_conf_mcast_enabled != True:
if daisy_conf_mcast_enabled != 'True':
return -1
mcobjset = []
mcobj = MulticastServerTask(kolla_version_pkg_file, hosts_list)

View File

@ -609,8 +609,8 @@ class KOLLAInstallTask(Thread):
raise exception.InstallException(self.message)
else:
self.progress = _calc_progress(self.log_file)
if execute_times >= 720:
self.message = "KOLLA deploy openstack timeout for an hour"
if execute_times >= 1440:
self.message = "KOLLA deploy openstack timeout"
LOG.error(self.message)
raise exception.InstallTimeoutException(
cluster_id=self.cluster_id)

View File

@ -48,10 +48,10 @@ workers = 4
# max_header_line = 16384
# Maximum number of hosts install os at the same time.
max_parallel_os_number = 10
max_parallel_os_number = 20
# Maximum number of hosts upgrade os at the same time.
max_parallel_os_upgrade_number = 10
max_parallel_os_upgrade_number = 20
# Role used to identify an authenticated user as administrator
#admin_role = admin

View File

@ -8,7 +8,7 @@ daisy_management_ip=
#If you want to create a cluster with more than one backend,
#all backend names should be provided for this configuration item,
#such as, default_backend_types=tecs,zenic,proton,kolla.
default_backend_types=tecs
default_backend_types=kolla
[OS]
#Default os install types of daisy
@ -34,5 +34,6 @@ client_ip_begin=99.99.1.50
client_ip_end=99.99.1.150
[multicast]
#enabled multicast or not.
#enabled multicast or not.if enabled multicast please set this to 'True'.
#such as daisy_conf_mcast_enabled=True
daisy_conf_mcast_enabled=False