update devstack plugin for ipv6

Set listen address to devstack variable SERVICE_LISTEN_ADDRESS
to override the default 0.0.0.0 (which does not listen to ipv6 addresses).

Change-Id: I1bbc3539a751f7c0c0f54ec046f88a847b4647f9
Story: #2005477
This commit is contained in:
Eric K 2019-08-05 16:39:20 -07:00
parent 41363e4597
commit 5d8d0e7c7e
2 changed files with 2 additions and 0 deletions

View File

@ -29,6 +29,7 @@ from congress import version
LOG = logging.getLogger(__name__)
core_opts = [
# TODO(ipv6): consider changing default to '::' for ipv6, breaks ipv4-only
cfg.HostAddressOpt('bind_host', default='0.0.0.0',
help="The host IP to bind to"),
cfg.PortOpt('bind_port', default=1789,

View File

@ -55,6 +55,7 @@ function configure_congress {
cp -r $CONGRESS_DIR/library/* $CONGRESS_LIBRARY_DIR
# Update either configuration file
iniset $CONGRESS_CONF DEFAULT bind_host $(ipv6_unquote $SERVICE_LISTEN_ADDRESS)
iniset $CONGRESS_CONF DEFAULT debug $ENABLE_DEBUG_LOG_LEVEL
iniset $CONGRESS_CONF DEFAULT auth_strategy $CONGRESS_AUTH_STRATEGY
iniset $CONGRESS_CONF DEFAULT datasource_sync_period 30