Add use_syslog=True to sysinv.conf

When bootstrapping a system, the sysinv.conf does not have the
use_syslog option set in the sysinv.conf. Because of that,
sysinv.log and sysinv-api.log files are not created until the
host unlock, when the configuration file is overridden and the
option is set.
This commit adds the use_syslog=True option in the sysinv.conf
template used to bootstrap the system.

Test plan:
1. PASS: Bootstrap a DC system with three subclouds.
2. PASS: During the bootstrap process, verify that the
sysinv.log file is created after sysinv.conf is generated.
3. PASS: During the bootstrap process, verify that the
sysinv-api.log file is created after the "Saving config
in sysinv database" step.

Closes-Bug: 2068767

Change-Id: I7ce56aa56114fb3e5234913bfe8a081bc6851612
Signed-off-by: Raphael Lima <Raphael.Lima@windriver.com>
This commit is contained in:
Raphael Lima 2024-06-07 17:26:20 -03:00
parent 5ff94d6cc8
commit 4b8611200b

View File

@ -1,5 +1,5 @@
[lldp] [lldp]
drivers=ldpd drivers=lldpd
[DEFAULT] [DEFAULT]
control_exchange=openstack control_exchange=openstack
@ -14,7 +14,8 @@ logging_default_format_string=sysinv %(asctime)s.%(msecs)03d %(process)d %(level
sysinv_api_bind_ip=:: sysinv_api_bind_ip=::
auth_strategy=keystone auth_strategy=keystone
sysinv_api_pxeboot_ip= sysinv_api_pxeboot_ip=
sysinv_api_workers=1 sysinv_api_workers=2
use_syslog=True
[database] [database]
connection={{ database_connection }} connection={{ database_connection }}