summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Tantsur <divius.inside@gmail.com>2019-04-17 16:41:35 +0200
committerDmitry Tantsur <divius.inside@gmail.com>2019-04-24 11:14:07 +0000
commitfc1e64db627a78d6a7aacd31c2c99bce5eb3c115 (patch)
tree53990b25427f2b87d4f5326fe5da97ed0482717b
parent98a97307405baf4d765ebbf235e270f3384d14a8 (diff)
downloadironic-fc1e64db627a78d6a7aacd31c2c99bce5eb3c115.tar.gz
Make the JSON RPC server work with both IPv4 and IPv6
Binding to 0.0.0.0 by default results in inability to work with IPv6, which is a probable cause of Bifrost gate failures on some nodepool providers. Using :: solves it. Change-Id: Ic5c4c9b541c826ccf3025877f7c829fd34d0be6e (cherry picked from commit 18fdc447efe525c8d4edf75a401fbf7580a352ff)
-rw-r--r--ironic/conf/json_rpc.py2
-rw-r--r--releasenotes/notes/json-rpc-bind-a0348cc6f5efe812.yaml5
2 files changed, 6 insertions, 1 deletions
diff --git a/ironic/conf/json_rpc.py b/ironic/conf/json_rpc.py
index 6c5d00761..f11bb457f 100644
--- a/ironic/conf/json_rpc.py
+++ b/ironic/conf/json_rpc.py
@@ -23,7 +23,7 @@ opts = [
help=_('Authentication strategy used by JSON RPC. Defaults to '
'the global auth_strategy setting.')),
cfg.HostAddressOpt('host_ip',
- default='0.0.0.0',
+ default='::',
help=_('The IP address or hostname on which JSON RPC '
'will listen.')),
cfg.PortOpt('port',
diff --git a/releasenotes/notes/json-rpc-bind-a0348cc6f5efe812.yaml b/releasenotes/notes/json-rpc-bind-a0348cc6f5efe812.yaml
new file mode 100644
index 000000000..c5341166b
--- /dev/null
+++ b/releasenotes/notes/json-rpc-bind-a0348cc6f5efe812.yaml
@@ -0,0 +1,5 @@
+---
+fixes:
+ - |
+ The internal JSON RPC server now binds to ``::`` by default, allowing it to
+ work correctly with IPv6.