Browse code

Revert "Swift: configure Ceilometer when it is enabled"

This reverts commit f208aafa35996c98de40c1388bbebf326ab2ed20. This
commit broke swift functional tests because the ceilometer middleware
changes HTTP 404 responses into zero byte responses. This results in
BadStatusLine exceptions. Back out the use of ceilometer middleware
until it can be fixed.

Change-Id: Ie25269b58334c40dc1ecae985326af1cf29c3af4

Clark Boylan authored on 2013/09/11 08:39:18
Showing 1 changed files
... ...
@@ -61,10 +61,6 @@ SWIFT_LOOPBACK_DISK_SIZE=${SWIFT_LOOPBACK_DISK_SIZE:-1000000}
61 61
 # Default is ``staticweb, tempurl, formpost``
62 62
 SWIFT_EXTRAS_MIDDLEWARE=${SWIFT_EXTRAS_MIDDLEWARE:-tempurl formpost staticweb}
63 63
 
64
-# Set ``SWIFT_EXTRAS_MIDDLEWARE_LAST`` to extras middlewares that need to be at
65
-# the end of the pipeline.
66
-SWIFT_EXTRAS_MIDDLEWARE_LAST=${SWIFT_EXTRAS_MIDDLEWARE_LAST}
67
-
68 64
 # The ring uses a configurable number of bits from a path’s MD5 hash as
69 65
 # a partition index that designates a device. The number of bits kept
70 66
 # from the hash is known as the partition power, and 2 to the partition
... ...
@@ -256,12 +252,6 @@ function configure_swift() {
256 256
     iniuncomment ${SWIFT_CONFIG_PROXY_SERVER} DEFAULT bind_port
257 257
     iniset ${SWIFT_CONFIG_PROXY_SERVER} DEFAULT bind_port ${SWIFT_DEFAULT_BIND_PORT:-8080}
258 258
 
259
-    # Configure Ceilometer
260
-    if is_service_enabled ceilometer; then
261
-        iniset ${SWIFT_CONFIG_PROXY_SERVER} filter:ceilometer use "egg:ceilometer#swift"
262
-        SWIFT_EXTRAS_MIDDLEWARE_LAST="${SWIFT_EXTRAS_MIDDLEWARE_LAST} ceilometer"
263
-    fi
264
-
265 259
     # By default Swift will be installed with keystone and tempauth middleware
266 260
     # and add the swift3 middleware if its configured for it. The token for
267 261
     # tempauth would be prefixed with the reseller_prefix setting TEMPAUTH_ the
... ...
@@ -271,7 +261,6 @@ function configure_swift() {
271 271
     fi
272 272
     swift_pipeline+=" authtoken keystoneauth tempauth "
273 273
     sed -i "/^pipeline/ { s/tempauth/${swift_pipeline} ${SWIFT_EXTRAS_MIDDLEWARE}/ ;}" ${SWIFT_CONFIG_PROXY_SERVER}
274
-    sed -i "/^pipeline/ { s/proxy-server/${SWIFT_EXTRAS_MIDDLEWARE_LAST} proxy-server/ ; }" ${SWIFT_CONFIG_PROXY_SERVER}
275 274
 
276 275
     iniuncomment ${SWIFT_CONFIG_PROXY_SERVER} filter:tempauth account_autocreate
277 276
     iniset ${SWIFT_CONFIG_PROXY_SERVER} app:proxy-server account_autocreate true