Bug 1058720
| Summary: | Unable to complete install: ''virStream' object has no attribute 'upload'' | ||
|---|---|---|---|
| Product: | [Community] Virtualization Tools | Reporter: | Michal Privoznik <mprivozn> |
| Component: | virt-manager | Assignee: | Cole Robinson <crobinso> |
| Status: | CLOSED UPSTREAM | QA Contact: | |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | unspecified | CC: | acathrow, berrange, crobinso, gscrivan |
| 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: | 2014-01-28 15:02:31 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: | |||
This is actually a virt-manager bug. The 'upload' method is against the virStorageVol object instance, not the virStream instance. Due to a bug in the python code generator we had accidentally copied the 'upload' method to virStream class too, and this bug was fixed, thus removing this bogus duplicated methods. virt-manager needs to use vol.upload(stream....) not stream.upload(vol....) Fixed upstream now |
Description of problem: When trying to install a guest throught virt-manager I see this error: Unable to complete install: ''virStream' object has no attribute 'upload'' Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/asyncjob.py", line 91, in cb_wrapper callback(asyncjob, *args, **kwargs) File "/usr/share/virt-manager/virtManager/create.py", line 1948, in do_install guest.start_install(meter=meter) File "/usr/share/virt-manager/virtinst/guest.py", line 371, in start_install self._prepare_install(meter, dry) File "/usr/share/virt-manager/virtinst/guest.py", line 264, in _prepare_install util.make_scratchdir(self.conn, self.type)) File "/usr/share/virt-manager/virtinst/installer.py", line 199, in prepare self._prepare(guest, meter, scratchdir) File "/usr/share/virt-manager/virtinst/distroinstaller.py", line 438, in _prepare self._prepare_kernel_url(guest, fetcher) File "/usr/share/virt-manager/virtinst/distroinstaller.py", line 362, in _prepare_kernel_url fetcher.meter, kernel, initrd) File "/usr/share/virt-manager/virtinst/distroinstaller.py", line 289, in _upload_media kvol = _upload_file(conn, meter, pool, kernel) File "/usr/share/virt-manager/virtinst/distroinstaller.py", line 133, in _upload_file stream.upload(vol, offset, length, flags) AttributeError: 'virStream' object has no attribute 'upload' Version-Release number of selected component (if applicable): both libvirt-python and virt-manager are running current git HEAD: v1.2.1-rc2-1-gea9339c for libvirt-python v0.10.0-712-gffda1e8 for virt-manager How reproducible: Steps to Reproduce: 1. install a new guest via HTTP 2. 3. Actual results: Expected results: Additional info: