Small tweaks to recreation of remote errors
The patch adds heat common exceptions to the list of trusted exceptions that can be re-spawned across RPC calls (this is the default behavior for all OS components). The patch adds the corresponding package to the declaration of the allowed_rpc_exception_modules as well as to the conf sample. Change-Id: Ib89d0bd4dd8f5240a9f3e973b8a04d0a5bfe2193
This commit is contained in:
parent
9004239b9f
commit
d0765af7c8
@ -277,7 +277,7 @@
|
||||
|
||||
# Modules of exceptions that are permitted to be recreatedupon
|
||||
# receiving exception data from an rpc call. (list value)
|
||||
#allowed_rpc_exception_modules=heat.openstack.common.exception,nova.exception,cinder.exception,exceptions
|
||||
#allowed_rpc_exception_modules=heat.openstack.common.exception,heat.common.exception,nova.exception,cinder.exception,exceptions
|
||||
|
||||
# If passed, use a fake RabbitMQ provider (boolean value)
|
||||
#fake_rabbit=false
|
||||
|
@ -116,14 +116,6 @@ cfg.CONF.register_opts(rpc_opts)
|
||||
cfg.CONF.register_group(paste_deploy_group)
|
||||
cfg.CONF.register_opts(paste_deploy_opts, group=paste_deploy_group)
|
||||
|
||||
# TODO(jianingy): I'll set allowed_rpc_exception_modules here for now.
|
||||
# after figure out why rpc_set_default was not called,
|
||||
# I'll move these settings into rpc_set_default()
|
||||
allowed_rpc_exception_modules = cfg.CONF.allowed_rpc_exception_modules
|
||||
allowed_rpc_exception_modules.append('heat.common.exception')
|
||||
cfg.CONF.set_default(name='allowed_rpc_exception_modules',
|
||||
default=allowed_rpc_exception_modules)
|
||||
|
||||
|
||||
def rpc_set_default():
|
||||
rpc.set_defaults(control_exchange='heat')
|
||||
|
@ -57,6 +57,7 @@ rpc_opts = [
|
||||
'Only supported by impl_zmq.'),
|
||||
cfg.ListOpt('allowed_rpc_exception_modules',
|
||||
default=['heat.openstack.common.exception',
|
||||
'heat.common.exception',
|
||||
'nova.exception',
|
||||
'cinder.exception',
|
||||
'exceptions',
|
||||
|
Loading…
Reference in New Issue
Block a user