python-tripleoclient/tripleoclient
Bogdan Dobrelya 5531e8bbbc Leverage log_file option to capture more UC logs
Undercloud deployment starts logging into its log file
too late, omitting log records from undercloud_config,
preflight checks. This is a problem as we want to log
at least the commands used for undercloud install/upgrade.
Ideally, messages in stdout/stderr should not miss the
log file.

Fix this via the added custom undercloud_log_file config
(use --log-file for standalone CLI). Use those to
configure logging to a file.

Fix missing formatting, like timestamps and source, for
undercloud config and preflight checks.

Write preflight/install/upgrade logs into the same
logfile.

Move the load oslo config method into shared utilities.
Add the configure logging shared utility for the classless
modules (w/o oslo_log supported). Such modules can
mimic oslo_log behavior defined for the main deployment
modules derived from openstack client classes, which
support logging to files natively and are not affected
by the subject issue. With an exception made for those
classless modules allowing them to log INFO+ be default.
So operators will have the pre-flight check
notes logged, for example.

Change-Id: I340be11bc9471df22f038629679634c3542d34d6
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
2018-06-25 15:57:57 +03:00
..
config Leverage log_file option to capture more UC logs 2018-06-25 15:57:57 +03:00
tests Leverage log_file option to capture more UC logs 2018-06-25 15:57:57 +03:00
v1 Leverage log_file option to capture more UC logs 2018-06-25 15:57:57 +03:00
workflows Remove validation workflow calls 2018-06-18 15:26:25 +00:00
__init__.py Add ReNo support 2016-10-08 00:28:43 +00:00
command.py Add each command to the history file 2017-11-27 15:37:00 +00:00
constants.py Leverage log_file option to capture more UC logs 2018-06-25 15:57:57 +03:00
exceptions.py Log errors with raised exceptions 2018-05-16 14:53:46 +02:00
heat_launcher.py Merge "Improve heat launcher user retrieval" 2018-05-16 02:20:49 +00:00
noauth_policy.json Add heat_launcher module to help launch heat-all 2017-02-08 15:49:24 -05:00
plugin.py Debug log the raw Zaqar message 2018-06-14 10:55:25 +01:00
utils.py Leverage log_file option to capture more UC logs 2018-06-25 15:57:57 +03:00