From ff1356a6d038d0682de39772ac6b978e8fb72866 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Tue, 29 Nov 2022 14:41:15 +0900 Subject: [PATCH] Ensure options are dumped in debug logs This change makes the following processes dump loaded options when the processes start. - octavia-driver-agent - octavia-health-manager - octavia-house-keeping The actual options used by services are useful for debugging. The loaded options are already logged by api and worker(*1), so this ensures all daemons provide the consistent capability. (*1) octavia-worker depends on the cotyledon library, which internally calls the (same) oslo.config functionality to dump options. Change-Id: I79331dff469c6c81dd5afe04a950cdfd16abc3c1 --- octavia/cmd/driver_agent.py | 2 ++ octavia/cmd/health_manager.py | 3 +++ octavia/cmd/house_keeping.py | 2 ++ 3 files changed, 7 insertions(+) diff --git a/octavia/cmd/driver_agent.py b/octavia/cmd/driver_agent.py index b4473b1229..943234ec9b 100644 --- a/octavia/cmd/driver_agent.py +++ b/octavia/cmd/driver_agent.py @@ -94,6 +94,8 @@ def _start_provider_agents(exit_event): def main(): service.prepare_service(sys.argv) + LOG.debug('Full set of CONF:') + CONF.log_opt_values(LOG, logging.DEBUG) gmr.TextGuruMeditation.setup_autorun(version) diff --git a/octavia/cmd/health_manager.py b/octavia/cmd/health_manager.py index a917bbe06c..e7eb8508b0 100644 --- a/octavia/cmd/health_manager.py +++ b/octavia/cmd/health_manager.py @@ -87,6 +87,9 @@ def _handle_mutate_config(listener_proc_pid, check_proc_pid, *args, **kwargs): def main(): service.prepare_service(sys.argv) + LOG.debug('Full set of CONF:') + CONF.log_opt_values(LOG, logging.DEBUG) + gmr.TextGuruMeditation.setup_autorun(version) processes = [] diff --git a/octavia/cmd/house_keeping.py b/octavia/cmd/house_keeping.py index 868c5443ef..7da433ddc6 100644 --- a/octavia/cmd/house_keeping.py +++ b/octavia/cmd/house_keeping.py @@ -78,6 +78,8 @@ def _mutate_config(*args, **kwargs): def main(): service.prepare_service(sys.argv) + LOG.debug('Full set of CONF:') + CONF.log_opt_values(LOG, logging.DEBUG) gmr.TextGuruMeditation.setup_autorun(version)