Listen on :: by default

On most target systems it will make it available on both V4 and V6.

Change-Id: Ie918bc8572ff7f0ce2712cbb248e8ee9bf4c3d20
This commit is contained in:
Dmitry Tantsur 2020-08-07 12:15:43 +02:00
parent bd16d80005
commit 6a8d46b33b
4 changed files with 8 additions and 4 deletions

View File

@ -4,8 +4,8 @@
Bare Metal Introspection API Bare Metal Introspection API
============================ ============================
By default **ironic-inspector** listens on ``0.0.0.0:5050``, port By default **ironic-inspector** listens on ``[::]:5050``, host and port
can be changed in configuration. Protocol is JSON over HTTP. can be changed in the configuration file. Protocol is JSON over HTTP.
.. rest_expand_all:: .. rest_expand_all::

View File

@ -319,7 +319,6 @@ function configure_inspector {
configure_auth_token_middleware $IRONIC_INSPECTOR_CONF_FILE $IRONIC_INSPECTOR_ADMIN_USER $IRONIC_INSPECTOR_AUTH_CACHE_DIR/api configure_auth_token_middleware $IRONIC_INSPECTOR_CONF_FILE $IRONIC_INSPECTOR_ADMIN_USER $IRONIC_INSPECTOR_AUTH_CACHE_DIR/api
inspector_iniset DEFAULT listen_port $IRONIC_INSPECTOR_PORT inspector_iniset DEFAULT listen_port $IRONIC_INSPECTOR_PORT
inspector_iniset DEFAULT listen_address 0.0.0.0 # do not change
inspector_iniset pxe_filter driver $IRONIC_INSPECTOR_DHCP_FILTER inspector_iniset pxe_filter driver $IRONIC_INSPECTOR_DHCP_FILTER
inspector_iniset iptables dnsmasq_interface $IRONIC_INSPECTOR_INTERFACE inspector_iniset iptables dnsmasq_interface $IRONIC_INSPECTOR_INTERFACE

View File

@ -20,7 +20,7 @@ from ironic_inspector.common.i18n import _
_OPTS = [ _OPTS = [
cfg.StrOpt('listen_address', cfg.StrOpt('listen_address',
default='0.0.0.0', default='::',
help=_('IP to listen on.')), help=_('IP to listen on.')),
cfg.PortOpt('listen_port', cfg.PortOpt('listen_port',
default=5050, default=5050,

View File

@ -0,0 +1,5 @@
---
upgrade:
- |
API now listens on ``::`` by default, change the ``listen_address``
configuration option to modify.