Skip to content

Commit

Permalink
provitioning multiple zookeeper 4 snmp & topology
Browse files Browse the repository at this point in the history
Build 2697: On multi node setup, when zookeeper on one of the db
nodes goes down, contrail-topology/snmp collector not able to
connect to remote zookeeper
Closes-Bug: 1533597

Change-Id: I8045ee5aacbf4579d027baf2c0603a1f97b8b72c
  • Loading branch information
tedghose committed Jan 15, 2016
1 parent 4071fb7 commit d31d409
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contrail_provisioning/collector/setup.py
Expand Up @@ -157,7 +157,7 @@ def fixup_contrail_snmp_collector(self):
local("echo 'mibs +ALL' > /etc/snmp/snmp.conf")
local("[ -f %s ] || > %s" % (conf_fl, conf_fl))
self.set_config(conf_fl, 'DEFAULTS', 'zookeeper',
self.cassandra_server_list[0][0] + ':2181')
','.join('%s:2181' % cs[0] for cs in self.cassandra_server_list))
self.set_config(conf_fl, 'DISCOVERY', 'disc_server_ip',
self._args.cfgm_ip)
self.set_config(conf_fl, 'DISCOVERY', 'disc_server_port', '5998')
Expand All @@ -182,7 +182,7 @@ def fixup_contrail_topology(self):
with settings(warn_only=True):
local("[ -f %s ] || > %s" % (conf_fl, conf_fl))
self.set_config(conf_fl, 'DEFAULTS', 'zookeeper',
self.cassandra_server_list[0][0] + ':2181')
','.join('%s:2181' % cs[0] for cs in self.cassandra_server_list))
self.set_config('/etc/contrail/supervisord_analytics_files/' +\
'contrail-topology.ini',
'program:contrail-topology',
Expand Down

0 comments on commit d31d409

Please sign in to comment.