Fix Swift ring rebalance order
authorChristian Schwede <cschwede@redhat.com>
Thu, 8 Jun 2017 15:32:14 +0000 (17:32 +0200)
committerChristian Schwede <cschwede@redhat.com>
Fri, 9 Jun 2017 10:08:35 +0000 (12:08 +0200)
The current order is broken if there were changes to the account and
container devices, but not to the object devices. In these cases it can
happen that the rebalance happens before modifying devices.

Change-Id: I15641c32266939c9a00936cc471cc59b1bb54eec

manifests/profile/base/swift/ringbuilder.pp

index f7cfea4..f6f8f06 100644 (file)
@@ -130,8 +130,8 @@ class tripleo::profile::base::swift::ringbuilder (
       }
 
       Ring_object_device<| |> ~> Exec['rebalance_object']
-      Ring_object_device<| |> ~> Exec['rebalance_account']
-      Ring_object_device<| |> ~> Exec['rebalance_container']
+      Ring_account_device<| |> ~> Exec['rebalance_account']
+      Ring_container_device<| |> ~> Exec['rebalance_container']
     }
   }