Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1233181

Summary: database.event_connection details not masked in logs
Product: Red Hat OpenStack Reporter: Yurii Prokulevych <yprokule>
Component: openstack-ceilometerAssignee: Pradeep Kilambi <pkilambi>
Status: CLOSED ERRATA QA Contact: Yurii Prokulevych <yprokule>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0 (Kilo)CC: eglynn, jruzicka, pbrady, pkilambi, rrosa, sclewis, yeylon
Target Milestone: ga   
Target Release: 7.0 (Kilo)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
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 13:27:41 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1149057    

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