Merge "Add MongoDB config server port to cfg"
This commit is contained in:
commit
dfa7e86265
@ -241,7 +241,7 @@ volume_support = True
|
||||
device_path = /dev/vdb
|
||||
|
||||
[mongodb]
|
||||
tcp_ports = 2500, 27017
|
||||
tcp_ports = 2500, 27017, 27019
|
||||
volume_support = True
|
||||
device_path = /dev/vdb
|
||||
num_config_servers_per_cluster = 1
|
||||
|
@ -918,7 +918,7 @@ mongodb_group = cfg.OptGroup(
|
||||
'mongodb', title='MongoDB options',
|
||||
help="Oslo option group designed for MongoDB datastore")
|
||||
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 '
|
||||
'in the security group (only applicable '
|
||||
'if trove_security_groups_support is True).'),
|
||||
|
@ -255,7 +255,7 @@ class MongoDBApp(object):
|
||||
def add_config_servers(self, config_server_hosts):
|
||||
"""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])
|
||||
LOG.info(_("Setting config servers: %s") % config_servers_string)
|
||||
self.configuration_manager.apply_system_override(
|
||||
|
Loading…
Reference in New Issue
Block a user