diff --git a/api-ref/source/index.rst b/api-ref/source/index.rst index eb3a508b5..212bdf058 100644 --- a/api-ref/source/index.rst +++ b/api-ref/source/index.rst @@ -4,8 +4,8 @@ Bare Metal Introspection API ============================ -By default **ironic-inspector** listens on ``0.0.0.0:5050``, port -can be changed in configuration. Protocol is JSON over HTTP. +By default **ironic-inspector** listens on ``[::]:5050``, host and port +can be changed in the configuration file. Protocol is JSON over HTTP. .. rest_expand_all:: diff --git a/devstack/plugin.sh b/devstack/plugin.sh index 1b00473ce..e61b7449e 100644 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -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 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 iptables dnsmasq_interface $IRONIC_INSPECTOR_INTERFACE diff --git a/ironic_inspector/conf/default.py b/ironic_inspector/conf/default.py index f34ed74f7..921ac191d 100644 --- a/ironic_inspector/conf/default.py +++ b/ironic_inspector/conf/default.py @@ -20,7 +20,7 @@ from ironic_inspector.common.i18n import _ _OPTS = [ cfg.StrOpt('listen_address', - default='0.0.0.0', + default='::', help=_('IP to listen on.')), cfg.PortOpt('listen_port', default=5050, diff --git a/releasenotes/notes/listen-v6-effec95455e900f8.yaml b/releasenotes/notes/listen-v6-effec95455e900f8.yaml new file mode 100644 index 000000000..90e2db9d4 --- /dev/null +++ b/releasenotes/notes/listen-v6-effec95455e900f8.yaml @@ -0,0 +1,5 @@ +--- +upgrade: + - | + API now listens on ``::`` by default, change the ``listen_address`` + configuration option to modify.