oslo.serialization/releasenotes/notes
Sofia Enriquez 02037330d8 Fix json to_primitive when using IO OBjects
Currently, using Cinder's backup service with RBD the
backup-create operation gets stuck when logging
('use_json=True' must be set in the config file).

The oslo.log JSONFormatter gets stuck when passing an
RBDVolumeIOWrapper from os-brick. This happens via os-brick's
utils.trace() method which passes a connector containing
{'path': RBDVolumeIOWrapper}.
The oslo.log JSONFormatter format() method calls
oslo_serialization's jsonutils.to_primitive and passes in
this RBDVolumeIOWrapper object.
 
Therefore the to_primitive method eventually calls
RBDVolumeIOWrapper.read(). In order to fix this the current
path avoids mapping io.IOBase objects and fallback the wrapper
RBD volume object.

Co-authored-by: Eric Harney <eharney@redhat.com>
Closes-Bug: #1908607
Change-Id: I3c416e855cb5f0dc32d14b2749ba92aba8964574
2021-01-18 21:54:02 +00:00
..
add-reno-996dd44974d53238.yaml Add reno for release notes management 2016-11-03 20:44:36 +08:00
bug-1908607-fix-json-to_primitive-IO-OBjects-04faff4a1b5cf48f.yaml Fix json to_primitive when using IO OBjects 2021-01-18 21:54:02 +00:00
deprecate-yamlutils-module-96eee55f7ae57382.yaml Add releasenote to deprecate the yamlutils module 2020-02-21 10:31:30 +01:00
drop-python27-support-185668eec068ffa5.yaml reword releasenote for py27 support dropping 2020-02-06 11:02:58 +01:00
remove-yamlutils-94c921247ab33003.yaml Remove the yamlutils module. 2020-06-08 11:44:27 +02:00