Merge "Fix Swift config for Ceilometer usage"
This commit is contained in:
commit
c856f51ed7
12
lib/swift
12
lib/swift
@ -339,12 +339,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