Bug 1108922

Summary: virt-install sometimes cannot create the disk
Product: [Community] Virtualization Tools Reporter: Richard W.M. Jones <rjones>
Component: virt-managerAssignee: Cole Robinson <crobinso>
Status: CLOSED UPSTREAM QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: berrange, crobinso, gscrivan, rbalakri
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-24 23:05:58 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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>