From d899ac3deb80baf908eca9aa9fa655c60fbc42d3 Mon Sep 17 00:00:00 2001 From: Christian Schwede Date: Thu, 21 Sep 2017 15:54:22 +0200 Subject: [PATCH] Fix Swift deployment due to missing directory A recent change in Swift will now check if the storage directories are existing, and return an error if not. This requires that the storage directory required by Swift is created in advance. Closes-Bug: 1718454 Change-Id: I3b42dbc7185ee1c6f9f848ff0a491160f081c4eb --- elements/puppet-stack-config/puppet-stack-config.pp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/elements/puppet-stack-config/puppet-stack-config.pp b/elements/puppet-stack-config/puppet-stack-config.pp index 55cda6e2c..19e38aa21 100644 --- a/elements/puppet-stack-config/puppet-stack-config.pp +++ b/elements/puppet-stack-config/puppet-stack-config.pp @@ -450,6 +450,13 @@ if(!defined(File['/srv/node'])) { require => Package['swift'], } } +# This is no longer automatically created by Swift itself +file { '/srv/node/1': + ensure => directory, + owner => 'swift', + group => 'swift', + require => File['/srv/node'], +} $swift_components = ['account', 'container', 'object'] swift::storage::filter::recon { $swift_components : } swift::storage::filter::healthcheck { $swift_components : }