Fix Swift config for Ceilometer usage
Ceilometer filter was previously removed from the Swift configuration to avoid useless Ceilometer logs in the Swift ones. This was fixed by setting only warning log level for this Ceilometer part of the pipeline to keep only important ones. Change-Id: I8c41355bb98dbf3bb59ec792221b05ea936086b7 Partial-Bug: #1294789
This commit is contained in:
parent
4fcda870e6
commit
eedfdee060
12
lib/swift
12
lib/swift
@ -337,12 +337,12 @@ function configure_swift {
|
||||
iniset ${SWIFT_CONFIG_PROXY_SERVER} app:proxy-server node_timeout 120
|
||||
iniset ${SWIFT_CONFIG_PROXY_SERVER} app:proxy-server conn_timeout 20
|
||||
|
||||
# Skipped due to bug 1294789
|
||||
## Configure Ceilometer
|
||||
#if is_service_enabled ceilometer; then
|
||||
# iniset ${SWIFT_CONFIG_PROXY_SERVER} filter:ceilometer use "egg:ceilometer#swift"
|
||||
# SWIFT_EXTRAS_MIDDLEWARE_LAST="${SWIFT_EXTRAS_MIDDLEWARE_LAST} ceilometer"
|
||||
#fi
|
||||
# Configure Ceilometer
|
||||
if is_service_enabled ceilometer; then
|
||||
iniset ${SWIFT_CONFIG_PROXY_SERVER} filter:ceilometer "set log_level" "WARN"
|
||||
iniset ${SWIFT_CONFIG_PROXY_SERVER} filter:ceilometer use "egg:ceilometer#swift"
|
||||
SWIFT_EXTRAS_MIDDLEWARE_LAST="${SWIFT_EXTRAS_MIDDLEWARE_LAST} ceilometer"
|
||||
fi
|
||||
|
||||
# Restrict the length of auth tokens in the swift proxy-server logs.
|
||||
iniset ${SWIFT_CONFIG_PROXY_SERVER} filter:proxy-logging reveal_sensitive_prefix ${SWIFT_LOG_TOKEN_LENGTH}
|
||||
|
Loading…
Reference in New Issue
Block a user