From 2bd8d906813679cfc22f5bc62882a289906a64af Mon Sep 17 00:00:00 2001 From: Attila Fazekas Date: Thu, 13 Oct 2016 08:24:57 +0200 Subject: [PATCH] Objects versions new style config allow_versions is going to be a deprecated option. Setting up the object versining in the new way. [1] http://docs.openstack.org/developer/swift/overview_object_versioning.html Change-Id: Ia520fbb6eb535b08ce83c0cb4bea31e7bba55eb3 --- lib/swift | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/swift b/lib/swift index f9ea028cea..b175f2e5c1 100644 --- a/lib/swift +++ b/lib/swift @@ -397,6 +397,9 @@ 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 + # Versioned Writes + iniset ${SWIFT_CONFIG_PROXY_SERVER} filter:versioned_writes allow_versioned_writes true + # Configure Ceilometer if is_service_enabled ceilometer; then iniset ${SWIFT_CONFIG_PROXY_SERVER} filter:ceilometer "set log_level" "WARN" @@ -489,8 +492,6 @@ EOF generate_swift_config_services ${swift_node_config} ${node_number} $(( CONTAINER_PORT_BASE + 10 * (node_number - 1) )) container iniuncomment ${swift_node_config} DEFAULT bind_ip iniset ${swift_node_config} DEFAULT bind_ip ${SWIFT_SERVICE_LISTEN_ADDRESS} - iniuncomment ${swift_node_config} app:container-server allow_versions - iniset ${swift_node_config} app:container-server allow_versions "true" swift_node_config=${SWIFT_CONF_DIR}/account-server/${node_number}.conf cp ${SWIFT_DIR}/etc/account-server.conf-sample ${swift_node_config}