The basic problem here is that an object (VolumeMetadata) is being serialized into an AMQP message directly, but it needs to be converted first with something like jsonutils.to_primitive().
The basic problem here is that an object (VolumeMetadata) is being serialized into an AMQP message directly, but it needs to be converted first with something like jsonutils. to_primitive( ).