Bug 712757 - virt-install:when using cache=writeback/writethrough will cause xen error on xenfv
Summary: virt-install:when using cache=writeback/writethrough will cause xen error on ...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: python-virtinst
Version: 5.7
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Cole Robinson
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-13 03:13 UTC by zhe peng
Modified: 2011-07-12 23:51 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-07-12 23:51:52 UTC
Target Upstream Version:


Attachments (Terms of Use)

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


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