Merge "Add MongoDB config server port to cfg"

This commit is contained in:
Jenkins 2016-03-18 13:59:47 +00:00 committed by Gerrit Code Review
commit dfa7e86265
3 changed files with 3 additions and 3 deletions

View File

@ -241,7 +241,7 @@ volume_support = True
device_path = /dev/vdb device_path = /dev/vdb
[mongodb] [mongodb]
tcp_ports = 2500, 27017 tcp_ports = 2500, 27017, 27019
volume_support = True volume_support = True
device_path = /dev/vdb device_path = /dev/vdb
num_config_servers_per_cluster = 1 num_config_servers_per_cluster = 1

View File

@ -918,7 +918,7 @@ mongodb_group = cfg.OptGroup(
'mongodb', title='MongoDB options', 'mongodb', title='MongoDB options',
help="Oslo option group designed for MongoDB datastore") help="Oslo option group designed for MongoDB datastore")
mongodb_opts = [ mongodb_opts = [
cfg.ListOpt('tcp_ports', default=["2500", "27017"], cfg.ListOpt('tcp_ports', default=["2500", "27017", "27019"],
help='List of TCP ports and/or port ranges to open ' help='List of TCP ports and/or port ranges to open '
'in the security group (only applicable ' 'in the security group (only applicable '
'if trove_security_groups_support is True).'), 'if trove_security_groups_support is True).'),

View File

@ -255,7 +255,7 @@ class MongoDBApp(object):
def add_config_servers(self, config_server_hosts): def add_config_servers(self, config_server_hosts):
"""Set config servers on a query router (mongos) instance. """Set config servers on a query router (mongos) instance.
""" """
config_servers_string = ','.join(['%s:27019' % host config_servers_string = ','.join(['%s:%s' % (host, CONFIGSVR_PORT)
for host in config_server_hosts]) for host in config_server_hosts])
LOG.info(_("Setting config servers: %s") % config_servers_string) LOG.info(_("Setting config servers: %s") % config_servers_string)
self.configuration_manager.apply_system_override( self.configuration_manager.apply_system_override(