From 3e0d844d4dae5a0d5a66b7c970d1d474cd8d70e1 Mon Sep 17 00:00:00 2001 From: stephane Date: Fri, 26 Jun 2015 14:26:22 -0700 Subject: [PATCH] Log configuration options on ironic-conductor startup ironic-api presently logs its configuration on startup, but ironic-conductor doesn't, so add it. Change-Id: Ida8c8aa4270c97d0b890be4e114cdca55045358d Closes-Bug: #1398948 --- ironic/cmd/conductor.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ironic/cmd/conductor.py b/ironic/cmd/conductor.py index 77c7cc3da5..85a2e7bd68 100644 --- a/ironic/cmd/conductor.py +++ b/ironic/cmd/conductor.py @@ -19,10 +19,13 @@ The Ironic Management Service """ +import logging import sys from oslo_config import cfg +from oslo_log import log +from ironic.common.i18n import _LI from ironic.common import service as ironic_service from ironic.openstack.common import service @@ -36,5 +39,10 @@ def main(): mgr = ironic_service.RPCService(CONF.host, 'ironic.conductor.manager', 'ConductorManager') + + LOG = log.getLogger(__name__) + LOG.info(_LI("Configuration:")) + CONF.log_opt_values(LOG, logging.INFO) + launcher = service.launch(mgr) launcher.wait()