diff --git a/masakari/conf/service.py b/masakari/conf/service.py index 7a955613..7db7f7e0 100644 --- a/masakari/conf/service.py +++ b/masakari/conf/service.py @@ -18,7 +18,7 @@ import socket from oslo_config import cfg service_opts = [ - cfg.StrOpt('host', + cfg.HostAddressOpt('host', default=socket.gethostname(), help=''' Hostname, FQDN or IP address of this host. Must be valid within AMQP key. @@ -48,7 +48,7 @@ Possible values: cfg.BoolOpt('use_ssl', default=False, help='Use APIs with SSL enabled'), - cfg.StrOpt('masakari_api_listen', + cfg.HostAddressOpt('masakari_api_listen', default="0.0.0.0", help='The IP address on which the Masakari API will listen.'), cfg.IntOpt('masakari_api_listen_port', diff --git a/requirements.txt b/requirements.txt index 1410c34a..6cdcb00b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8,7 +8,7 @@ jsonschema!=2.5.0,<3.0.0,>=2.0.0 # MIT keystoneauth1>=2.10.0 # Apache-2.0 keystonemiddleware!=4.5.0,>=4.2.0 # Apache-2.0 microversion-parse>=0.1.2 # Apache-2.0 -oslo.config>=3.10.0 # Apache-2.0 +oslo.config>=3.22.0 # Apache-2.0 oslo.db>=4.1.0 # Apache-2.0 oslo.messaging>=5.11.0 # Apache-2.0 oslo.i18n>=2.1.0 # Apache-2.0