Bug 1233181 - database.event_connection details not masked in logs
Summary: database.event_connection details not masked in logs
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-ceilometer
Version: 7.0 (Kilo)
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ga
: 7.0 (Kilo)
Assignee: Pradeep Kilambi
QA Contact: Yurii Prokulevych
URL:
Whiteboard:
Depends On:
Blocks: 1149057
TreeView+ depends on / blocked
 
Reported: 2015-06-18 11:44 UTC by Yurii Prokulevych
Modified: 2023-02-22 23:02 UTC (History)
7 users (show)

Fixed In Version: openstack-ceilometer-2015.1.0-5.el7ost
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-08-05 13:27:41 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1456263 0 None None None Never
Red Hat Product Errata RHEA-2015:1548 0 normal SHIPPED_LIVE Red Hat Enterprise Linux OpenStack Platform Enhancement Advisory 2015-08-05 17:07:06 UTC

Description Yurii Prokulevych 2015-06-18 11:44:57 UTC
Description of problem:
event_connection details (user/passwd/host/db) are not masked agent-notification.log and collector.log:

2015-06-18 13:38:51.205 90638 DEBUG ceilometer.openstack.common.service [-] database.db_retry_interval     = 1 log_opt_values /usr/lib/python2.7/site-packages/oslo_config/cfg.py:2199
2015-06-18 13:38:51.205 90638 DEBUG ceilometer.openstack.common.service [-] database.event_connection      = mongodb://127.0.0.1:27017/dedicatedevent log_opt_values /usr/lib/python2.7/site-packages/oslo_config
/cfg.py:2199
2015-06-18 13:38:51.205 90638 DEBUG ceilometer.openstack.common.service [-] database.event_time_to_live    = -1 log_opt_values /usr/lib/python2.7/site-packages/oslo_config/cfg.py:2199

Expected results:
Connection details are masked like with regular connection:


2015-06-18 13:38:51.203 90638 DEBUG ceilometer.openstack.common.service [-] database.connection            = **** log_opt_values /usr/lib/python2.7/site-packages/oslo_config/cfg.py:2199
2015-06-18 13:38:51.203 90638 DEBUG ceilometer.openstack.common.service [-] database.connection_debug      = 0 log_opt_values /usr/lib/python2.7/site-packages/oslo_config/cfg.py:2199

Bug was fixed upstream.

Comment 5 Yurii Prokulevych 2015-06-29 08:20:26 UTC
Verified in next logs: central.log/compute.log/collector.log/alarm-notifier.log/alarm-evaluator.log/agent-notification.log/polling.log

Excerpt from log files:
...
ceilometer.openstack.common.service [-] database.alarm_connection      = **** log_opt_values /usr/lib/python2.7/site-packages/oslo_config/cfg.py:2199
ceilometer.openstack.common.service [-] database.event_connection      = **** log_opt_values /usr/lib/python2.7/site-packages/oslo_config/cfg.py:2199
ceilometer.openstack.common.service [-] database.metering_connection   = **** log_opt_values /usr/lib/python2.7/site-packages/oslo_config/cfg.py:2199

Comment 7 errata-xmlrpc 2015-08-05 13:27:41 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2015:1548


Note You need to log in before you can comment on or make changes to this bug.