RequestContext should be serialized when sent via oslo.messaging. The
serializer is correctly used for the general RPC mechanism, but has been
forgotten in the notifier. This patch fixes that.
Thanks goes to eharney for noticing this and pointing it out!!!
Same bug existed in Nova (
1275771)
Change-Id: I99a571ef74bbcd13bf801313eea145ea69f821e1
Closes-Bug: #
1294724
TRANSPORT = messaging.get_transport(conf,
allowed_remote_exmods=exmods,
aliases=TRANSPORT_ALIASES)
- NOTIFIER = messaging.Notifier(TRANSPORT)
+ NOTIFIER = messaging.Notifier(TRANSPORT,
+ serializer=RequestContextSerializer(None))
def initialized():