From a3184b11285b11780278071e51cd288f495154e0 Mon Sep 17 00:00:00 2001 From: Armando Migliaccio Date: Tue, 28 Jun 2016 11:44:40 -0700 Subject: [PATCH] Use AFTER_INIT in lieu of AFTER_CREATE AFTER_CREATE should be dedicated to data store operations. Change-Id: I2b17ee41a9bfc020099c4f2f251afa32bb48b290 Depends-on: I9e717e9e4ae4414067477712ac02870fe1041e70 --- vmware_nsx/nsxlib/v3/cluster.py | 2 +- vmware_nsx/plugins/nsx_v/plugin.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vmware_nsx/nsxlib/v3/cluster.py b/vmware_nsx/nsxlib/v3/cluster.py index 088cfcb085..33d6560bcd 100644 --- a/vmware_nsx/nsxlib/v3/cluster.py +++ b/vmware_nsx/nsxlib/v3/cluster.py @@ -258,7 +258,7 @@ class ClusteredAPI(object): # reinitialize upon fork for api workers to ensure each # process has its own keepalive loops + state registry.subscribe( - _init_cluster, resources.PROCESS, events.AFTER_CREATE) + _init_cluster, resources.PROCESS, events.AFTER_INIT) def _init_endpoints(self, providers, min_conns_per_pool, max_conns_per_pool): diff --git a/vmware_nsx/plugins/nsx_v/plugin.py b/vmware_nsx/plugins/nsx_v/plugin.py index 5898f28b42..8193e4e3e2 100644 --- a/vmware_nsx/plugins/nsx_v/plugin.py +++ b/vmware_nsx/plugins/nsx_v/plugin.py @@ -172,7 +172,7 @@ class NsxVPluginV2(addr_pair_db.AllowedAddressPairsMixin, self.init_is_complete = False registry.subscribe(self.init_complete, resources.PROCESS, - events.AFTER_CREATE) + events.AFTER_INIT) self.metadata_proxy_handler = None config.validate_nsxv_config_options() neutron_extensions.append_api_extensions_path(