Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1279391

Summary: ceph.conf properties override qemu's command-line properties
Product: Red Hat Enterprise Linux 7 Reporter: Jan Kurik <jkurik>
Component: qemu-kvm-rhevAssignee: Stefan Hajnoczi <stefanha>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: unspecified Docs Contact:
Priority: high    
Version: 7.2CC: areis, huding, jdillama, jdurgin, jen, jkurik, juzhang, kdreyer, knoel, mazhang, mrezanin, rbalakri, stefanha, virt-bugs, virt-maint, xfu, xwei, yama
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: qemu-kvm-rhev-2.3.0-31.el7_2.2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1278447 Environment:
Last Closed: 2015-12-07 21:43:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1278447    
Bug Blocks:    

Description Jan Kurik 2015-11-09 11:10:14 UTC
This bug has been copied from bug #1278447 and has been proposed
to be backported to 7.2 z-stream (EUS).

Comment 5 Xiaoqing Wei 2015-11-13 08:19:07 UTC
[root@dhcp-11-50 qemu-kvm-rhev-2.3.0-30.el7]# qemu-img info rbd:qemu-kvm-pool/test.raw:mon_host=10.66.9.236
image: rbd:qemu-kvm-pool/test.raw:mon_host=10.66.9.236
file format: raw
virtual size: 10M (10485760 bytes)
disk size: unavailable
cluster_size: 4194304

[root@dhcp-11-50 ~]# cat /etc/ceph/ceph.conf 
[client]
rbd cache = true
admin socket = /var/run/ceph/$cluster-$type.$id.$pid.$cctid.asok
log file = /var/log/ceph/


-------------------------  vanilla brew build

[root@dhcp-11-50 qemu-kvm-rhev-2.3.0-30.el7]# /usr/libexec/qemu-kvm -M pc -S -monitor stdio -vnc none -smp 1 -m 1024 -net none -vga none -drive file=rbd:qemu-kvm-pool/test.raw:mon_host=10.66.9.236,id='rbd',format=raw,cache=none
QEMU 2.3.0 monitor - type 'help' for more information
(qemu) info version 
2.3.0 (qemu-kvm-rhev-2.3.0-30.el7)
(qemu) info block
rbd: rbd:qemu-kvm-pool/test.raw:mon_host=10.66.9.236 (raw)
    Cache mode:       writeback, direct



# ceph --admin-daemon /var/run/ceph/ceph-client.admin.31349.140277480660992.asok config show | grep rbd_cache
    "rbd_cache": "true",


====================== scratch brew build

[root@dhcp-11-50 qemu1279391]# /usr/libexec/qemu-kvm -M pc -S -monitor stdio -vnc none -smp 1 -m 1024 -net none -vga none -drive file=rbd:qemu-kvm-pool/test.raw:mon_host=10.66.9.236,id='rbd',format=raw,cache=none
QEMU 2.3.0 monitor - type 'help' for more information
(qemu) info version 
2.3.0 (qemu-kvm-rhev-2.3.0-31.el7.next.candidate)
(qemu) info block
rbd: rbd:qemu-kvm-pool/test.raw:mon_host=10.66.9.236 (raw)
    Cache mode:       writeback, direct

[root@dhcp-11-50 ~]# ceph --admin-daemon /var/run/ceph/ceph-client.admin.31468.140247995842560.asok config show | grep rbd_cache
    "rbd_cache": "false",




so with scratch build, qemu cli takes precedence

Comment 6 Miroslav Rezanina 2015-11-18 10:08:09 UTC
Fix included in qemu-kvm-rhev-2.3.0-31.el7_2.2

Comment 7 Xiaoqing Wei 2015-11-19 05:22:47 UTC
[root@dhcp-11-50 qemu-kvm-rhev-2.3.0-30.el7]# qemu-img info rbd:qemu-kvm-pool/test.raw:mon_host=10.66.9.236
image: rbd:qemu-kvm-pool/test.raw:mon_host=10.66.9.236
file format: raw
virtual size: 10M (10485760 bytes)
disk size: unavailable
cluster_size: 4194304

[root@dhcp-11-50 ~]# cat /etc/ceph/ceph.conf 
[client]
rbd cache = true
admin socket = /var/run/ceph/$cluster-$type.$id.$pid.$cctid.asok
log file = /var/log/ceph/


-------------------------  un-fixed version qemu-kvm-rhev-2.3.0-30.el7

[root@dhcp-11-50 qemu-kvm-rhev-2.3.0-30.el7]# /usr/libexec/qemu-kvm -M pc -S -monitor stdio -vnc none -smp 1 -m 1024 -net none -vga none -drive file=rbd:qemu-kvm-pool/test.raw:mon_host=10.66.9.236,id='rbd',format=raw,cache=none
QEMU 2.3.0 monitor - type 'help' for more information
(qemu) info version 
2.3.0 (qemu-kvm-rhev-2.3.0-30.el7)
(qemu) info block
rbd: rbd:qemu-kvm-pool/test.raw:mon_host=10.66.9.236 (raw)
    Cache mode:       writeback, direct



# ceph --admin-daemon /var/run/ceph/ceph-client.admin.31349.140277480660992.asok config show | grep rbd_cache
    "rbd_cache": "true",





========================= fixed version qemu-kvm-rhev-2.3.0-31.el7_2.2

[root@dhcp-11-50 linux-stable]# /usr/libexec/qemu-kvm -M pc -S -monitor stdio -vnc none -smp 1 -m 1024 -net none -vga none -drive file=rbd:qemu-kvm-pool/test.raw:mon_host=10.66.9.236,id='rbd',format=raw,cache=none
QEMU 2.3.0 monitor - type 'help' for more information
(qemu) info block
rbd: rbd:qemu-kvm-pool/test.raw:mon_host=10.66.9.236 (raw)
    Cache mode:       writeback, direct

ide1-cd0: [not inserted]
    Removable device: not locked, tray closed

floppy0: [not inserted]
    Removable device: not locked, tray closed

sd0: [not inserted]
    Removable device: not locked, tray closed
(qemu) 


[root@dhcp-11-50 qemu-kvm-rhev-2.3.0-31.el7_2.2]# ceph --admin-daemon /var/run/ceph/ceph-client.admin.13454.139944188624896.asok config show | grep rbd_cache\"
    "rbd_cache": "false",

Comment 11 errata-xmlrpc 2015-12-07 21:43:16 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/RHBA-2015-2555.html