librbd-based clients support a new "rbd_compression_hint" configuration option that can be set to "none" (default), "compressible", or "incompressible". This configuration option can be set globally in the cluster, per-pool, or per-image. Support to add this to krbd will be forthcoming in a future upstream kernel release.
Please specify the severity of this bug. Severity is defined here: https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity.
pool level and global level config are not set steps: 1. [ceph: root@magna021 ~]# rbd config global get global rbd_compression_hint compressible 2. [ceph: root@magna021 ~]# ceph osd pool get comp_pool compression_mode compression_mode: passive 3. Run librbd write observed: debug 2021-03-12T00:11:32.310+0000 7fcf37de6700 15 bluestore(/var/lib/ceph/osd/ceph-16) _set_alloc_hint 27.19_head #27:9aef75b5:::rbd_data.438c81590dd.0000000000000000:head# object_size 4194304 write_size 4194304 flags - debug 2021-03-12T00:11:32.310+0000 7fcf37de6700 10 bluestore(/var/lib/ceph/osd/ceph-16) _set_alloc_hint 27.19_head #27:9aef75b5:::rbd_data.438c81590dd.0000000000000000:head# object_size 4194304 write_size 4194304 flags - = 0 expected:(seen on image level config) debug 2021-03-10T00:50:55.092+0000 7fcf37de6700 15 bluestore(/var/lib/ceph/osd/ceph-16) _set_alloc_hint 27.19_head #27:9aef75b5:::rbd_data.438c81590dd.0000000000000000:head# object_size 4194304 write_size 4194304 flags compressible debug 2021-03-10T00:50:55.092+0000 7fcf37de6700 10 bluestore(/var/lib/ceph/osd/ceph-16) _set_alloc_hint 27.19_head #27:9aef75b5:::rbd_data.438c81590dd.0000000000000000:head# object_size 4194304 write_size 4194304 flags compressible = 0
It looks like you left the image-level override on the image: $ # rbd config image ls comp_pool/comp_image There are 77 values: Name Value Source ... snip ... rbd_compression_hint none image
Working as expected logs: debug 2021-03-12T01:08:22.288+0000 7fcf37de6700 15 bluestore(/var/lib/ceph/osd/ceph-16) _set_alloc_hint 27.19_head #27:9aef75b5:::rbd_data.438c81590dd.0000000000000000:head# object_size 4194304 write_size 4194304 flags incompressible debug 2021-03-12T01:08:22.288+0000 7fcf37de6700 10 bluestore(/var/lib/ceph/osd/ceph-16) _set_alloc_hint 27.19_head #27:9aef75b5:::rbd_data.438c81590dd.0000000000000000:head# object_size 4194304 write_size 4194304 flags incompressible = 0 debug 2021-03-10T00:50:55.092+0000 7fcf37de6700 15 bluestore(/var/lib/ceph/osd/ceph-16) _set_alloc_hint 27.19_head #27:9aef75b5:::rbd_data.438c81590dd.0000000000000000:head# object_size 4194304 write_size 4194304 flags compressible debug 2021-03-10T00:50:55.092+0000 7fcf37de6700 10 bluestore(/var/lib/ceph/osd/ceph-16) _set_alloc_hint 27.19_head #27:9aef75b5:::rbd_data.438c81590dd.0000000000000000:head# object_size 4194304 write_size 4194304 flags compressible = 0
Hi Greg, Please set the rdt flat to ? and provide the doc text information as this needs to be included in the Release Notes 5.0. Thanks Amrita
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Red Hat Ceph Storage 5.0 bug fix and enhancement), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2021:3294