since validatios_libs 1.8.0 openstack CLI emits extra logging for each command in an env without syslog

Bug #1999553 reported by Balazs Gibizer
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
tripleo
New
Undecided
Unassigned

Bug Description

In validations_libs 1.8.0 a logger is added that expects that syslog always exists[1]. And if not it prints to the standard output.

This causes that if the openstack CLI is used in a container that has no syslog then each CLI command will result in extra output appearing in the terminal:

sh-5.1$ openstack project list
2022-12-13 17:31:40,021 logger Journal socket does not exist. Logs will not be processed by syslog.
Journal socket does not exist. Logs will not be processed by syslog.
2022-12-13 17:31:40,027 logger Journal socket does not exist. Logs will not be processed by syslog.
Journal socket does not exist. Logs will not be processed by syslog.
+----------------------------------+---------+
| ID | Name |
+----------------------------------+---------+
| 0ae18ad5d3b74470ab33cb95ddb64c4f | admin |
| c46b2cdeada444bdafed34a2ef751f3c | service |
+----------------------------------+---------+

Versions:

sh-5.1$ dnf list installed | grep validations
openstack-tripleo-validations.noarch 16.0.1-0.20221201172823.6c654eb.el9 @delorean-component-validation
python3-validations-libs.noarch 1.8.1-0.20221201171416.0464162.el9 @delorean-component-validation
validations-common.noarch 1.8.1-0.20221201134850.899b8f5.el9 @delorean-component-validation
sh-5.1$

sh-5.1$ openstack --version
openstack 6.0.0

[1] https://github.com/openstack/validations-libs/commit/bb98dea0677cbd45c4111fbb06fcdd8c1f956114

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.