summaryrefslogtreecommitdiff
path: root/ironic/conf/default.py
diff options
context:
space:
mode:
authorDmitry Tantsur <divius.inside@gmail.com>2019-01-24 13:22:34 +0100
committerDmitry Tantsur <divius.inside@gmail.com>2019-02-14 12:56:20 +0100
commit7efbbcc2d9460c087f0950fa1fbb8a9e015d5584 (patch)
tree96606e110196a2019012bc71d92bb7e887c41386 /ironic/conf/default.py
parente34941c3279907a013b2b6ae023a089e58c3ed11 (diff)
downloadironic-7efbbcc2d9460c087f0950fa1fbb8a9e015d5584.tar.gz
Support using JSON-RPC instead of oslo.messaging
Using AMQP-based RPC can be an overkill in case of ironic, especially when used standalone. This change allows using a built-in JSON RPC implementation instead. This implementation does not currently support the object indirection API, which does not seem to be used anywhere anyway. The standalone and API test jobs are changed to use JSON RPC. Story: #2004874 Task: #29141 Change-Id: I7cc95935d6bdae43fab5dfbd544c8e6d65fcc38d
Diffstat (limited to 'ironic/conf/default.py')
-rw-r--r--ironic/conf/default.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/ironic/conf/default.py b/ironic/conf/default.py
index 86ec8c06d..0a835beaa 100644
--- a/ironic/conf/default.py
+++ b/ironic/conf/default.py
@@ -315,6 +315,12 @@ service_opts = [
'When doing a rolling upgrade from version N to version '
'N+1, set (to pin) this to N. To unpin (default), leave '
'it unset and the latest versions will be used.')),
+ cfg.StrOpt('rpc_transport',
+ default='oslo',
+ choices=[('oslo', _('use oslo.messaging transport')),
+ ('json-rpc', _('use JSON RPC transport'))],
+ help=_('Which RPC transport implementation to use between '
+ 'conductor and API services')),
]
utils_opts = [