]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Big Switch: Remove consistency hash on full sync
authorKevin Benton <blak111@gmail.com>
Mon, 9 Jun 2014 19:20:18 +0000 (12:20 -0700)
committerKevin Benton <blak111@gmail.com>
Wed, 16 Jul 2014 19:38:52 +0000 (12:38 -0700)
Clears the consistency hash before performing a full
backend synchronization. Since all of the data is being
replaced, there is no reason to include this and it
currently requires special-casing to handle.

Closes-Bug: #1328233
Change-Id: Iace766d869dc78b041d3a5464e728b872c8347c2

neutron/plugins/bigswitch/servermanager.py

index f02748248ac9c4baa16d0a2914a648f027e1be3a..fdce8a48984d0d78e9070e3dc9b231c82cb6a17b 100644 (file)
@@ -421,6 +421,8 @@ class ServerPool(object):
                 if not self.get_topo_function:
                     raise cfg.Error(_('Server requires synchronization, '
                                       'but no topology function was defined.'))
+                # The hash was incorrect so it needs to be removed
+                hash_handler.put_hash('')
                 data = self.get_topo_function(**self.get_topo_function_args)
                 active_server.rest_call('PUT', TOPOLOGY_PATH, data,
                                         timeout=None)