Bug 493256

Summary: F10 virt-manager needs to depend on the latest python-virtinst: "Permission denied: '/var/lib/libvirt/boot/virtinst-.treeinfo.XIYNd_"
Product: [Fedora] Fedora Reporter: Jens Petersen <petersen>
Component: virt-managerAssignee: Daniel Berrangé <berrange>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 10CC: berrange, crobinso, hbrock, markmc, mishu, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 0.6.1-3.fc10 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-09-15 07:36:55 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:

Description Jens Petersen 2009-04-01 06:09:32 UTC
Description of problem:
When trying to do an install via "Network install tree" I get a backtrace about 

Version-Release number of selected component (if applicable):
virt-manager-0.6.1-1.fc10

How reproducible:
every time

Steps to Reproduce:
1. try to do a network install of rawhide:

2.
3.
  
Actual results:
Unable to complete install '<type 'exceptions.OSError'> [Errno 13] Permission denied: '/var/lib/libvirt/boot/virtinst-.treeinfo.XIYNd_'
Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/create.py", line 717, in do_install
    dom = guest.start_install(False, meter = meter)
  File "/usr/lib/python2.5/site-packages/virtinst/Guest.py", line 730, in start_install
    self._prepare_install(meter)
  File "/usr/lib/python2.5/site-packages/virtinst/FullVirtGuest.py", line 315, in _prepare_install
    distro = self.os_distro)
  File "/usr/lib/python2.5/site-packages/virtinst/DistroManager.py", line 269, in prepare
    self._prepare_kernel_and_initrd(guest, distro, meter)
  File "/usr/lib/python2.5/site-packages/virtinst/DistroManager.py", line 235, in _prepare_kernel_and_initrd
    arch=arch)
  File "/usr/lib/python2.5/site-packages/virtinst/DistroManager.py", line 109, in acquireKernel
    scratchdir=scratchdir, arch=arch)
  File "/usr/lib/python2.5/site-packages/virtinst/DistroManager.py", line 90, in _storeForDistro
    if store.isValidStore(fetcher, progresscb):
  File "/usr/lib/python2.5/site-packages/virtinst/OSDistro.py", line 200, in isValidStore
    if self._hasTreeinfo(fetcher, progresscb):
  File "/usr/lib/python2.5/site-packages/virtinst/OSDistro.py", line 66, in _hasTreeinfo
    tmptreeinfo = fetcher.acquireFile(".treeinfo", progresscb)
  File "/usr/lib/python2.5/site-packages/virtinst/ImageFetcher.py", line 98, in acquireFile
    tmpname = self.saveTemp(file, prefix=base + ".")
  File "/usr/lib/python2.5/site-packages/virtinst/ImageFetcher.py", line 43, in saveTemp
    (fd, fn) = tempfile.mkstemp(prefix="virtinst-" + prefix, dir=self.scratchdir)
  File "/usr/lib64/python2.5/tempfile.py", line 302, in mkstemp
    return _mkstemp_inner(dir, prefix, suffix, flags)
  File "/usr/lib64/python2.5/tempfile.py", line 236, in _mkstemp_inner
    fd = _os.open(file, flags, 0600)
OSError: [Errno 13] Permission denied: '/var/lib/libvirt/boot/virtinst-.treeinfo.XIYNd_'
'

Expected results:
no backtrace

Additional info:
This has been happening for a while now...
I am not sure about in rawhide, and don't have a bare metal rawhide box with vt right now.

Comment 1 Mark McLoughlin 2009-04-03 10:32:45 UTC
Jens, does this work with SELinux in permissive mode? If so, could you post the SELinux errors? Thanks

Comment 2 Cole Robinson 2009-04-06 19:42:46 UTC
Also, what virtinst version are you using?

Are you launching virt-manager as root?

Comment 3 Jens Petersen 2009-04-07 09:57:49 UTC
(In reply to comment #1)
> Jens, does this work with SELinux in permissive mode?

My F10 box is essentially permissive for running virt...


(In reply to comment #2)
> Also, what virtinst version are you using?

python-virtinst-0.400.0-5.fc10

> Are you launching virt-manager as root?  

Yes, I give the root passwd to access the local libvirtd.

Comment 4 Cole Robinson 2009-05-03 17:19:46 UTC
*** Bug 498762 has been marked as a duplicate of this bug. ***

Comment 5 Cole Robinson 2009-05-03 17:21:34 UTC
Can you reproduce with the latest version of python-virtinst from updates testing?

Comment 6 Jens Petersen 2009-05-05 01:02:59 UTC
(In reply to comment #5)
> Can you reproduce with the latest version of python-virtinst from updates
> testing?  

No that seems to fix it, thanks.

Comment 7 Cole Robinson 2009-05-05 01:26:59 UTC
I'll update virt-manager in updates-testing to depend on the latest python-virtinst.

Comment 8 Fedora Update System 2009-09-14 16:30:32 UTC
virt-manager-0.6.1-3.fc10 has been submitted as an update for Fedora 10.
http://admin.fedoraproject.org/updates/virt-manager-0.6.1-3.fc10

Comment 9 Fedora Update System 2009-09-15 07:36:49 UTC
virt-manager-0.6.1-3.fc10 has been pushed to the Fedora 10 stable repository.  If problems still persist, please make note of it in this bug report.