Bug 504604

Summary: virtinst ignores VirtualDisk(sparse = False) and doesn't pre-allocate the disk image
Product: [Fedora] Fedora Reporter: Mark McLoughlin <markmc>
Component: python-virtinstAssignee: Daniel Berrangé <berrange>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: berrange, crobinso, erikj, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-09-03 19:03:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 480594    

Description Mark McLoughlin 2009-06-08 13:40:29 UTC
python-virtinst-0.400.3-8.fc11.noarch

If you use e.g. virt-install --nonsparse, notice that the disk image isn't pre-allocated.

This is due to:

    if self.sparse:
        alloc = 0
    else:
        #alloc = cap
        # XXX: disable setting managed storage as nonsparse
        # XXX: since it hoses libvirtd (for now)
        alloc = 0

This is removed upstream:

http://hg.et.redhat.com/cgi-bin/hg-virt.cgi/applications/virtinst--devel/rev/e34de678f53a

It looks like it needs this libvirt-0.6.3 change:

http://git.et.redhat.com/?p=libvirt.git;a=commitdiff;h=5aed3bcdda

So we can:

  a) backport the libvirt commit to F-11 and re-enable nonsparse in
     virtinst or

  b) just move this bug to F-12 and close when F-12 gets the next
     virtinst release

Comment 1 Cole Robinson 2009-09-03 19:03:26 UTC
Since I haven't heard any complaints about forcing sparse files, I think we can just closed this as current release for F12. The libvirt change is fairly sized, so I don't think the backport and coordinated updates are worth it.

Closing as RAWHIDE.