Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1233181 - database.event_connection details not masked in logs
database.event_connection details not masked in logs
Status: CLOSED ERRATA
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-ceilometer (Show other bugs)
7.0 (Kilo)
Unspecified Unspecified
unspecified Severity unspecified
: ga
: 7.0 (Kilo)
Assigned To: Pradeep Kilambi
Yurii Prokulevych
:
Depends On:
Blocks: 1149057
  Show dependency treegraph
 
Reported: 2015-06-18 07:44 EDT by Yurii Prokulevych
Modified: 2015-08-05 09:27 EDT (History)
8 users (show)

See Also:
Fixed In Version: openstack-ceilometer-2015.1.0-5.el7ost
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-08-05 09:27:41 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Launchpad 1456263 None None None Never
Red Hat Product Errata RHEA-2015:1548 normal SHIPPED_LIVE Red Hat Enterprise Linux OpenStack Platform Enhancement Advisory 2015-08-05 13:07:06 EDT

  None (edit)
Description Yurii Prokulevych 2015-06-18 07:44:57 EDT
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 04:20:26 EDT
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 09:27:41 EDT
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.