mongodb, db2: do not print full URL in logs

The full URL used to connect to MongoDB or DB2 might contains sensitive
information such as username and password, so it's better to not print
it at all.
Instead, just print the hosts that are being connected to.

Fixes-Bug: #1244476

Change-Id: I092be52a760cc97a9c3e6357d19609b8886e3175
Cleanup tests.publisher tests

- Fix misleading header comment for test_file and test_rpc_publisher
- Drop usage of maxstubout in favor of fixtures.MonkeyPatch

Change-Id: I29eaa0b55e2888bab60880d1b0dca9993abf2ada
Sync log from oslo

5fef5a8105 allow keeping of existing loggers with fileConfig
fb8075a19d Add amqp=WARN,qpid=WARN to default_log_levels
4654a5d247 Don't override default value for eventlet.wsgi.server logging
41ddd7a975 _get_log_file_path explictly return, when logfile/logdire unset
e12e6b45f8 Make openstack.common.log Python 3 compatible

DocImpact

Change-Id: I19228304dcef8a4f7e6022d97eb652da647df879
Add an insecure option for Keystone client

Change-Id: I05cea4c79ad89d2c55008ea0d7ba9eefa5908fa2
Closes-Bug: #1232437
Merge "Cleanup tests.publisher tests"
Replace mox with mocks in tests.compute.pollsters

Change-Id: Iea844b86e64e7bf4a231406cd7532dd5c28002dc
Fix failing nova_tests tests

Mock also compute.conductor_api.instance_destroy() to return an instance
instead of a MagickMock object.

Change-Id: I518e063abfdd568f7d9ef970bc371eced2198adf
Replace mox with mocks in test_inspector

Change-Id: I660bf0708a0bb1de4fb30917a4020a4434b17b91
Merge "Replace mox with mocks in tests.compute.pollsters"
Replace mox with mock in tests.network

Change-Id: Ic25e4c1e1e17ef5d2a7d256fafb9a5a75396cd87
Stop using openstack.common.exception

The openstack.common.exception has been deprecated and removed from
oslo-incubator. Therefore, Ceilometer should follow the recommendation
and stop the usage of this file altogether.

Closes-Bug: #1208734
Change-Id: Ida4530d2f966f97b980db333f08a990250b7b68d
Use better predicates from testtools instead of plain assert

Change-Id: I8c9b05db59cc08a5668871d4ce305856c659b833
Merge "Replace mox with mock in tests.network"
Merge "Replace mox with mocks in test_inspector"
Corrected import order

Enabled H306 in tox.ini and corrected the import order.

Change-Id: If77984e8c62b0ec0cfb3d068e9c1b0d4d7c3583d
Merge "Stop using openstack.common.exception"
Merge "Add an insecure option for Keystone client"
Replace mox with mock in tests.api.v2.test_compute

tests/api/v2/test_compute_duration_by_resource_scenarios.py

Change-Id: Iced06504b1ac292bc9be0397e92f68067c53f1e2
Replace mox with mock in tests.api.v1

Change-Id: I2a8f4647a383aed64771cb5d273c1712f8ff8c19
Merge "Sync log from oslo"