Bug 1108922 - virt-install sometimes cannot create the disk
Summary: virt-install sometimes cannot create the disk
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Virtualization Tools
Classification: Community
Component: virt-manager
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Cole Robinson
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-06-12 20:57 UTC by Richard W.M. Jones
Modified: 2015-03-24 23:05 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-03-24 23:05:58 UTC
Embargoed:


Attachments (Terms of Use)

Description Richard W.M. Jones 2014-06-12 20:57:55 UTC
Description of problem:

Here is the command:

virt-install --name=tmp-97a42dab --ram=2048 --os-type=linux --os-variant=fedora18 --initrd-inject=/tmp/tmp.N9rWbXOFBW '--extra-args=ks=file:/tmp.N9rWbXOFBW console=tty0 console=ttyS0,115200 proxy=http://cache.home.annexia.org:3128/' --disk /home/rjones/d/libguestfs/builder/website/fedora-19,size=6 --serial pty --location=http://mirror.bytemark.co.uk/fedora/linux/releases/19/Fedora/x86_64/os/ --nographics --noreboot

Sometimes, perhaps 50% of the time, it fails to create the
disk image (which doesn't exist already):

ERROR    Error: --disk /home/rjones/d/libguestfs/builder/website/fedora-19,size=6: cannot stat file '/home/rjones/d/libguestfs/builder/website/fedora-19': No such file or directory

And yet the rest of the time it creates the disk OK and continues
running.

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

virt-install-1.0.1-3.fc20.noarch

How reproducible:

I have seen the same thing happen on two different computers
both with the same version of virt-install.  However it is
certainly not 100% reproducible.  It may happen about half
the time or less.

Steps to Reproduce:
1. See above.

Comment 1 Giuseppe Scrivano 2014-06-13 16:08:15 UTC
there is a patch upstream for libvirt that should fix this problem:

commit d6e92bfa38d2d2dffa2ec38373e2922268d32b51
Author: Giuseppe Scrivano <gscrivan>
Date:   Fri Jun 13 16:48:15 2014 +0200

    storage: report VIR_ERR_NO_STORAGE_VOL when the file doesn't exist
    
    Report VIR_ERR_NO_STORAGE_VOL instead of a system error when lstat
    fails because the file doesn't exist.
    
    Fixes this problem in virt-install:
    
      https://bugzilla.redhat.com/show_bug.cgi?id=1108922
    
    Signed-off-by: Giuseppe Scrivano <gscrivan>


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