RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1277248 - ceph.conf properties override qemu's command-line properties
Summary: ceph.conf properties override qemu's command-line properties
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qemu-kvm
Version: 7.1
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: rc
: 7.2
Assignee: Stefan Hajnoczi
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks: 1278447 1279389 1288337
TreeView+ depends on / blocked
 
Reported: 2015-11-02 19:38 UTC by Ken Dreyer (Red Hat)
Modified: 2016-11-03 20:07 UTC (History)
14 users (show)

Fixed In Version: qemu-kvm-1.5.3-106.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1278447 1279389 (view as bug list)
Environment:
Last Closed: 2016-11-03 20:07:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2016:2585 0 normal SHIPPED_LIVE Moderate: qemu-kvm security, bug fix, and enhancement update 2016-11-03 12:09:03 UTC

Description Ken Dreyer (Red Hat) 2015-11-02 19:38:51 UTC
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

Comment 8 Miroslav Rezanina 2016-01-13 11:17:46 UTC
Fix included in qemu-kvm-1.5.3-106.el7

Comment 10 jingzhao 2016-05-19 06:36:53 UTC
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",

Comment 11 Stefan Hajnoczi 2016-06-08 09:38:13 UTC
What is the status of this bug?  Should it be set to VERIFIED?

Comment 12 jingzhao 2016-06-08 09:40:08 UTC
(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

Comment 14 errata-xmlrpc 2016-11-03 20:07:10 UTC
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


Note You need to log in before you can comment on or make changes to this bug.