Bug 712757

Summary: virt-install:when using cache=writeback/writethrough will cause xen error on xenfv
Product: Red Hat Enterprise Linux 5 Reporter: zhe peng <zpeng>
Component: python-virtinstAssignee: Cole Robinson <crobinso>
Status: CLOSED WONTFIX QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.7CC: dyuan, mzhan
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-12 23:51:52 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description zhe peng 2011-06-13 03:13:32 UTC
Description of problem:
using cache=writeback or cache=writethrough in --disk option will get an error on xenfv of virt-install

Version-Release number of selected component (if applicable):
python-virtinst-0.400.3-12.el5

How reproducible:
always

Steps to Reproduce:
1. run command line:
#virt-install -n demo -r 1024 --disk path=/tmp/demo.img,size=5,device=disk,cache=writeback --hvm -c /dev/cdrom
 or run command line:
#virt-install -n demo -r 1024 --disk path=/tmp/demo.img,size=5,device=disk,cache=writethrough --hvm -c /dev/cdrom
  
Actual results:
ERROR    POST operation failed: xend_post: error from xen daemon: (xend.err 'Error creating domain: Block device type "qemu" is invalid.')
Domain installation may not have been
 successful.  If it was, you can restart your domain
 by running 'virsh start demo'; otherwise, please
 restart your installation.
ERROR    POST operation failed: xend_post: error from xen daemon: (xend.err 'Error creating domain: Block device type "qemu" is invalid.')
Traceback (most recent call last):
  File "/usr/sbin/virt-install", line 895, in ?
    main()
  File "/usr/sbin/virt-install", line 757, in main
    start_time, guest.start_install)
  File "/usr/sbin/virt-install", line 819, in do_install
    dom = install_func(conscb, progresscb, wait=(not wait))
  File "/usr/lib/python2.4/site-packages/virtinst/Guest.py", line 541, in start_install
    return self._do_install(consolecb, meter, removeOld, wait)
  File "/usr/lib/python2.4/site-packages/virtinst/Guest.py", line 633, in _do_install
    self.domain = self.conn.createLinux(install_xml, 0)
  File "/usr/lib64/python2.4/site-packages/libvirt.py", line 1277, in createLinux
    if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self)
libvirtError: POST operation failed: xend_post: error from xen daemon: (xend.err 'Error creating domain: Block device type "qemu" is invalid.')


Expected results:
install will be successful

Additional info:

Comment 1 zhe peng 2011-06-13 03:16:52 UTC
this issue only occurred on xenfv, not happened on xenpv or kvm

Comment 2 Cole Robinson 2011-07-12 23:51:52 UTC
Thanks, fixed upstream:

http://git.fedorahosted.org/git?p=python-virtinst.git;a=commit;h=63476238e7099779c79bdf50134df8a1fb313b55

However given that this is pretty low impact, and cache modes don't even apply to xen anyways, I don't think this is worth fixing at this point in RHEL5. Closing WONTFIX