Bug 1037519 - qemu-kvm should not allow boot guest by gluster native with discard=on option until we support it
Summary: qemu-kvm should not allow boot guest by gluster native with discard=on option...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qemu-kvm
Version: 7.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Hai Huang
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-03 10:22 UTC by mazhang
Modified: 2016-09-20 04:39 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-22 18:23:05 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description mazhang 2013-12-03 10:22:22 UTC
Description of problem:
Glusterfs backend does not support discard now(see bz1037503), but now can boot guest by gluster native with discard=on/off option.

Version-Release number of selected component (if applicable):


How reproducible:
100%

Steps to Reproduce:
1.cli:
#/usr/libexec/qemu-kvm \
-M pc \
-cpu SandyBridge \
-m 4G \
-smp 4,sockets=2,cores=2,threads=1,maxcpus=16 \
-enable-kvm \
-name rhel7 \
-uuid 990ea161-6b67-47b2-b803-19fb01d30d12 \
-smbios type=1,manufacturer='Red Hat',product='RHEV Hypervisor',version=el6,serial=koTUXQrb,uuid=feebc8fd-f8b0-4e75-abc3-e63fcdb67170 \
-k en-us \
-rtc base=localtime,clock=host,driftfix=slew \
-nodefaults \
-monitor stdio \
-qmp tcp:0:6666,server,nowait \
-boot menu=on \
-bios /usr/share/seabios/bios.bin \
-vga qxl \
-spice port=5900,disable-ticketing \
-global PIIX4_PM.disable_s3=0 \
-global PIIX4_PM.disable_s4=0 \
-drive file=gluster://rhs/gv0/rhel7-64-con.qcow2,if=none,id=drive-virtio-disk0,format=qcow2,cache=none,werror=stop,rerror=stop,aio=threads \
-device virtio-blk-pci,scsi=off,bus=pci.0,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 \
-drive file=gluster://rhs/gv0/storage.qcow2,if=none,id=drive-virtio-disk1,format=qcow2,cache=none,werror=stop,rerror=stop,aio=threads,discard=on \
-device virtio-blk-pci,scsi=off,bus=pci.0,drive=drive-virtio-disk1,id=virtio-disk1 \
-netdev tap,id=hostnet0,vhost=on \
-device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:39:13:2c \

2.reboot qemu-kvm with following command line
-drive file=gluster://rhs/gv0/storage.qcow2,if=none,id=drive-virtio-disk1,format=qcow2,cache=none,werror=stop,rerror=stop,aio=threads,discard=on \

3.

Actual results:
Can boot up qemu-kvm.

Expected results:
Quit with warning before we support gluster native with discard option.

Additional info:

Comment 2 Hai Huang 2013-12-03 13:42:15 UTC
If bz1037503 (https://bugzilla.redhat.com/show_bug.cgi?id=1037503)
will be backported to RHEL7.0 to support discard in glusterfs, 
then there is no need to explicitly disallow this operation.

Comment 6 juzhang 2014-01-24 01:55:43 UTC
Thanks Paolo's explanation. Remove needinfo


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