Comment 1 for bug 1908607

Revision history for this message
Eric Harney (eharney) wrote : Re: [Ceph] utils.py don't display well the json logs

Some notes on what is failing here:

The oslo.log JSONFormatter gets stuck when passed 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.

The to_primitive method eventually calls RBDVolumeIOWrapper.read() which I suspect is not intended.

This can be replicated without the oslo.log layers by adding the following into os-brick's utils.trace method just before the '<== %(func)s' line:
     jsonutils.to_primitive(mask_result, fallback=repr)