swift/test/unit/cli
Alistair Coles 035d91dce5 Modify log_name in internal clients' pipeline configs
Modify the 'log_name' option in the InternalClient wsgi config for the
following services: container-sharder, container-reconciler,
container-deleter, container-sync and object-expirer.

Previously the 'log_name' value for all internal client instances
sharing a single internal-client.conf file took the value configured
in the conf file, or would default to 'swift'. This resulted in no
distinction between logs from each internal client, and no association
with the service using a particular internal client.

With this change the 'log_name' value will typically be <log_route>-ic
where <log_route> is the service's conf file section name. For
example, 'container-sharder-ic'.

Note: any 'log_name' value configured in an internal client conf file
will now be ignored for these services unless the option key is
preceded by 'set'.

Note: by default, the logger's StatdsClient uses the log_name as its
tail_prefix when composing metrics' names. However, the proxy-logging
middleware overrides the tail_prefix with the hard-coded value
'proxy-server'. This change to log_name therefore does not change the
statsd metric names emitted by the internal client's proxy-logging.

This patch does not change the logging of the services themselves,
just their internal clients.

Change-Id: I844381fb9e1f3462043d27eb93e3fa188b206d05
Related-Change: Ida39ec7eb02a93cf4b2aa68fc07b7f0ae27b5439
2022-01-12 11:07:25 +00:00
..
__init__.py Add some tests for bin/swift-recon 2014-01-31 15:34:37 +00:00
test_container_deleter.py Modify log_name in internal clients' pipeline configs 2022-01-12 11:07:25 +00:00
test_default_output_id_assigned.stub Add Composite Ring Functionality 2017-05-15 16:42:00 -07:00
test_default_output.stub Add Composite Ring Functionality 2017-05-15 16:42:00 -07:00
test_default_sorted_output.stub Order devices in the output of swift-ring-builder 2017-06-22 16:06:48 -07:00
test_dispersion_report.py Test placeholder for dispersion_report module 2017-09-13 16:49:00 -06:00
test_form_signature.py pep8: Turn on E305 2020-04-03 21:22:38 +02:00
test_info.py swift-get-nodes: move --path-as-is to end of curl commands 2021-05-12 12:41:20 +01:00
test_ipv6_output.stub Add Composite Ring Functionality 2017-05-15 16:42:00 -07:00
test_manage_shard_ranges.py sharder: add more validation checks on config 2021-07-08 12:42:16 +01:00
test_recon.py Add and pipe reconstructor stats through recon 2021-08-20 00:03:40 +00:00
test_relinker.py Remove support for --link-check-limit 2021-07-14 14:57:11 -07:00
test_ring_builder_analyzer.py Use more specific asserts in test/unit/cli tests 2016-08-03 12:19:40 +00:00
test_ringbuilder.py Treat add/remove/rebalance during part-power increase as error 2020-07-23 17:00:16 -07:00
test_ringcomposer.py Py3: Port test/unit/test_ringcomposer.py 2018-12-01 03:28:52 +01:00