Fixup the start of swift services
authormarios <marios@redhat.com>
Wed, 2 Nov 2016 14:23:30 +0000 (16:23 +0200)
committerMarios Andreou <marios@redhat.com>
Thu, 3 Nov 2016 07:33:40 +0000 (07:33 +0000)
Seems the conditional has changed and we should pickup the
tripleo::profile::base::swift::storage::enable_swift_storage
hiera data.

After controller nodes are upgraded the swift services were down
even though there was no stand-alone swift node (the current
conditional was failing as that hiera isn't set any more)

Closes-Bug: 1638821
Change-Id: Id1383c1e54f9cae13fd375e90da525230e5d23eb

extraconfig/tasks/pacemaker_common_functions.sh

index 4f17b69..2c7dfc3 100755 (executable)
@@ -284,7 +284,7 @@ function systemctl_swift {
             services=$(systemctl | grep openstack-swift- | grep running | awk '{print $1}')
             ;;
         start)
-            enable_swift_storage=$(hiera -c /etc/puppet/hiera.yaml 'enable_swift_storage')
+            enable_swift_storage=$(hiera -c /etc/puppet/hiera.yaml tripleo::profile::base::swift::storage::enable_swift_storage)
             if [[ $enable_swift_storage != "true" ]]; then
                 services=( openstack-swift-proxy )
             fi