Hide Forgot
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:
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.
Thanks Paolo's explanation. Remove needinfo