Skip to content

Commit

Permalink
Run introspect server after the config services
Browse files Browse the repository at this point in the history
gets elected as master, so that the conllector
conection flap can be avoided.

Change-Id: Id754123061c9580bd9c646fab1ba06f320e8af97
Closes-Bug: 1682683
  • Loading branch information
cijohnson committed Apr 25, 2017
1 parent 5d58f5b commit e9a9ef7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/config/common/vnc_logger.py
Expand Up @@ -140,6 +140,9 @@ def sandesh_init(self, http_server_port=None):
staticmethod(ConnectionState.get_process_state_cb),
NodeStatusUVE, NodeStatus, self.table)

def introspect_init(self):
self._sandesh.run_introspect_server(int(self._args.http_server_port))

def sandesh_reconfig_collectors(self, args):
self._sandesh.reconfig_collectors(args.random_collectors)
# end sandesh_reconfig_collectors
2 changes: 1 addition & 1 deletion src/config/device-manager/device_manager/device_manager.py
Expand Up @@ -572,7 +572,7 @@ def main(args_str=None):

def run_device_manager(dm_logger, args):
dm_logger.notice("Elected master Device Manager node. Initializing... ")
dm_logger.sandesh_init()
dm_logger.introspect_init()
DeviceManager(dm_logger, args)
# end run_device_manager

Expand Down
2 changes: 1 addition & 1 deletion src/config/schema-transformer/to_bgp.py
Expand Up @@ -615,7 +615,7 @@ def run_schema_transformer(st_logger, args):
global _vnc_lib

st_logger.notice("Elected master Schema Transformer node. Initializing...")
st_logger.sandesh_init()
st_logger.introspect_init()

def connection_state_update(status, message=None):
ConnectionState.update(
Expand Down
2 changes: 1 addition & 1 deletion src/config/svc-monitor/svc_monitor/svc_monitor.py
Expand Up @@ -869,7 +869,7 @@ def parse_args(args_str):

def run_svc_monitor(sm_logger, args=None):
sm_logger.notice("Elected master SVC Monitor node. Initializing... ")
sm_logger.sandesh_init()
sm_logger.introspect_init()

monitor = SvcMonitor(sm_logger, args)
monitor._zookeeper_client = _zookeeper_client
Expand Down

0 comments on commit e9a9ef7

Please sign in to comment.