From 4b8611200bb02ee462898701e0d678535b0f748b Mon Sep 17 00:00:00 2001 From: Raphael Lima Date: Fri, 7 Jun 2024 17:26:20 -0300 Subject: [PATCH] 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 --- .../bootstrap/apply-manifest/templates/sysinv/sysinv.conf.j2 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/playbookconfig/src/playbooks/roles/bootstrap/apply-manifest/templates/sysinv/sysinv.conf.j2 b/playbookconfig/src/playbooks/roles/bootstrap/apply-manifest/templates/sysinv/sysinv.conf.j2 index 1b594ca7b..f958ddc80 100644 --- a/playbookconfig/src/playbooks/roles/bootstrap/apply-manifest/templates/sysinv/sysinv.conf.j2 +++ b/playbookconfig/src/playbooks/roles/bootstrap/apply-manifest/templates/sysinv/sysinv.conf.j2 @@ -1,5 +1,5 @@ [lldp] -drivers=ldpd +drivers=lldpd [DEFAULT] control_exchange=openstack @@ -14,7 +14,8 @@ logging_default_format_string=sysinv %(asctime)s.%(msecs)03d %(process)d %(level sysinv_api_bind_ip=:: auth_strategy=keystone sysinv_api_pxeboot_ip= -sysinv_api_workers=1 +sysinv_api_workers=2 +use_syslog=True [database] connection={{ database_connection }}