Hide Forgot
Description of problem: There is a bug in qemu which caused ceph.conf config properties to overwrite qemu command-line properties. If you have "rbd cache = true" in ceph.conf, it will override "cache=none" in your qemu command-line. Version-Release number of selected component (if applicable): qemu-kvm-1.5.3-105.el7 Steps to Reproduce: 1. Set "rbd cache = true" in ceph.conf 2. Run qemu with RBD and "cache=none" Actual results: RBD admin socket will show caching is disabled Expected results: RBD admin socket should show caching is enabled Additional info: The qemu patches which fix this have been merged upstream. See https://lists.nongnu.org/archive/html/qemu-devel/2015-06/msg03078.html
Fix included in qemu-kvm-1.5.3-106.el7
1.Reproduced with qemu-kvm-1.5.3-105.el7.x86_64 [root@intel-3323-24-2 qemu2]# /usr/libexec/qemu-kvm -M pc -S -monitor stdio -vnc none -smp 1 -m 4096 -vga none -drive file=rbd:libvirt-pool/rhel72.raw:mon_host=10.66.144.75,id='rbd',format=raw,cache=none QEMU 1.5.3 monitor - type 'help' for more information (qemu) info block rbd: removable=0 io-status=ok file=rbd:libvirt-pool/rhel72.raw:mon_host=10.66.144.75 ro=0 drv=raw encrypted=0 bps=0 bps_rd=0 bps_wr=0 iops=0 iops_rd=0 iops_wr=0 ide1-cd0: removable=1 locked=0 tray-open=0 io-status=ok [not inserted] floppy0: removable=1 locked=0 tray-open=0 [not inserted] sd0: removable=1 locked=0 tray-open=0 [not inserted] [root@intel-3323-24-2 ceph]# ceph --admin-daemon /var/run/ceph/ceph-client.admin.5734.140180343873536.asok config show |grep rbd_cache "rbd_cache": "true", 2. Verified with qemu-kvm-1.5.3-112.el7.x86_64 [root@localhost qemu]# /usr/libexec/qemu-kvm -M pc -S -monitor stdio -vnc none -smp 1 -m 4096 -vga none -drive file=rbd:libvirt-pool/rhel7.raw:mon_host=10.66.144.75,id='rbd',format=raw,cache=none QEMU 1.5.3 monitor - type 'help' for more information (qemu) info block rbd: removable=0 io-status=ok file=rbd:libvirt-pool/rhel7.raw:mon_host=10.66.144.75 ro=0 drv=raw encrypted=0 bps=0 bps_rd=0 bps_wr=0 iops=0 iops_rd=0 iops_wr=0 ide1-cd0: removable=1 locked=0 tray-open=0 io-status=ok [not inserted] floppy0: removable=1 locked=0 tray-open=0 [not inserted] sd0: removable=1 locked=0 tray-open=0 [not inserted] [root@localhost ceph]# ceph --admin-daemon /var/run/ceph/ceph-client.admin.18290.140539423318016.asok config show |grep rbd_cache "rbd_cache": "false",
What is the status of this bug? Should it be set to VERIFIED?
(In reply to Stefan Hajnoczi from comment #11) > What is the status of this bug? Should it be set to VERIFIED? According to comment10, I think you can set to VERIFIED. Thanks Jing Zhao
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, 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://rhn.redhat.com/errata/RHSA-2016-2585.html