[Pkg-libvirt-maintainers] Bug#736122: virtinst: Installing debian fails with "AttributeError: 'virStream' object has no attribute 'upload'"
Sami Liedes
sami.liedes at iki.fi
Sun Jan 19 22:30:27 UTC 2014
Package: virtinst
Version: 0.600.4-2
Severity: normal
Installing Debian from an URL like that suggested by the man page (but
with .us. replaced with .fi.) fails with the error mentioned in the
subject.
I also tried with virtinst from experimental (however this run is from
the unstable version).
Entire output:
------------------------------------------------------------
$ virt-install --debug --ram 2048 --name S2E --vcpus=4 --disk path=/var/lib/libvirt/images/S2E.raw,size=4,bus=virtio -l http://ftp.fi.debian.org/debian/dists/stable/main/installer-i386/
[Mon, 20 Jan 2014 00:26:39 virt-install 5252] DEBUG (cli:227) Launched with command line:
/usr/bin/virt-install --debug --ram 2048 --name S2E --vcpus=4 --disk path=/var/lib/libvirt/images/S2E.raw,size=4,bus=virtio -l http://ftp.fi.debian.org/debian/dists/stable/main/installer-i386/
[Mon, 20 Jan 2014 00:26:39 virt-install 5252] DEBUG (cli:332) Requesting libvirt URI default
[Mon, 20 Jan 2014 00:26:39 virt-install 5252] DEBUG (cli:334) Received libvirt URI qemu:///system
[Mon, 20 Jan 2014 00:26:39 virt-install 5252] DEBUG (virt-install:258) Requesting virt method 'default', hv type 'default'.
[Mon, 20 Jan 2014 00:26:39 virt-install 5252] DEBUG (virt-install:469) Received virt method 'hvm'
[Mon, 20 Jan 2014 00:26:39 virt-install 5252] DEBUG (virt-install:470) Hypervisor name is 'kvm'
[Mon, 20 Jan 2014 00:26:39 virt-install 5252] DEBUG (cli:941) DISPLAY is set: graphics defaulting to VNC.
[Mon, 20 Jan 2014 00:26:39 virt-install 5252] DEBUG (cli:959) --graphics compat generated: vnc
[Mon, 20 Jan 2014 00:26:39 virt-install 5252] DEBUG (VirtualDisk:240) Path '/var/lib/libvirt/images' is target for pool 'default'. Creating volume 'S2E.raw'.
[Mon, 20 Jan 2014 00:26:39 virt-install 5252] DEBUG (VirtualDisk:240) Path '/var/lib/libvirt/images' is target for pool 'default'. Creating volume 'S2E.raw'.
[Mon, 20 Jan 2014 00:26:39 virt-install 5252] DEBUG (DistroInstaller:215) DistroInstaller location is a network source.
[Mon, 20 Jan 2014 00:26:39 virt-install 5252] DEBUG (OSDistro:65) Attempting to detect distro:
[Mon, 20 Jan 2014 00:26:39 virt-install 5252] DEBUG (ImageFetcher:124) HTTP hasFile: didn't find http://ftp.fi.debian.org/debian/dists/stable/main/installer-i386/.treeinfo: HTTP Error 404: Not Found
[Mon, 20 Jan 2014 00:26:40 virt-install 5252] DEBUG (ImageFetcher:124) HTTP hasFile: didn't find http://ftp.fi.debian.org/debian/dists/stable/main/installer-i386/Fedora: HTTP Error 404: Not Found
[Mon, 20 Jan 2014 00:26:40 virt-install 5252] DEBUG (ImageFetcher:124) HTTP hasFile: didn't find http://ftp.fi.debian.org/debian/dists/stable/main/installer-i386/Server: HTTP Error 404: Not Found
[Mon, 20 Jan 2014 00:26:40 virt-install 5252] DEBUG (ImageFetcher:124) HTTP hasFile: didn't find http://ftp.fi.debian.org/debian/dists/stable/main/installer-i386/Client: HTTP Error 404: Not Found
[Mon, 20 Jan 2014 00:26:40 virt-install 5252] DEBUG (ImageFetcher:124) HTTP hasFile: didn't find http://ftp.fi.debian.org/debian/dists/stable/main/installer-i386/RedHat: HTTP Error 404: Not Found
[Mon, 20 Jan 2014 00:26:40 virt-install 5252] DEBUG (ImageFetcher:124) HTTP hasFile: didn't find http://ftp.fi.debian.org/debian/dists/stable/main/installer-i386/CentOS: HTTP Error 404: Not Found
[Mon, 20 Jan 2014 00:26:40 virt-install 5252] DEBUG (ImageFetcher:124) HTTP hasFile: didn't find http://ftp.fi.debian.org/debian/dists/stable/main/installer-i386/SL: HTTP Error 404: Not Found
[Mon, 20 Jan 2014 00:26:40 virt-install 5252] DEBUG (ImageFetcher:124) HTTP hasFile: didn't find http://ftp.fi.debian.org/debian/dists/stable/main/installer-i386/directory.yast: HTTP Error 404: Not Found
[Mon, 20 Jan 2014 00:26:40 virt-install 5252] DEBUG (ImageFetcher:83) Fetching URI: http://ftp.fi.debian.org/debian/dists/stable/main/installer-i386/current/images/MANIFEST
[Mon, 20 Jan 2014 00:26:40 virt-install 5252] DEBUG (ImageFetcher:94) Saved file to /var/tmp/virtinst-MANIFEST.BjZAEB
[Mon, 20 Jan 2014 00:26:40 virt-install 5252] DEBUG (OSDistro:948) Detected a Debian distro
[Mon, 20 Jan 2014 00:26:40 virt-install 5252] DEBUG (virt-install:626) Guest.has_install_phase: True
Starting install...
[Mon, 20 Jan 2014 00:26:40 virt-install 5252] DEBUG (Installer:182) scratchdir=/home/sliedes/.virtinst/boot
[Mon, 20 Jan 2014 00:26:40 virt-install 5252] DEBUG (OSDistro:65) Attempting to detect distro:
[Mon, 20 Jan 2014 00:26:40 virt-install 5252] DEBUG (ImageFetcher:124) HTTP hasFile: didn't find http://ftp.fi.debian.org/debian/dists/stable/main/installer-i386/.treeinfo: HTTP Error 404: Not Found
[Mon, 20 Jan 2014 00:26:40 virt-install 5252] DEBUG (ImageFetcher:124) HTTP hasFile: didn't find http://ftp.fi.debian.org/debian/dists/stable/main/installer-i386/Fedora: HTTP Error 404: Not Found
[Mon, 20 Jan 2014 00:26:40 virt-install 5252] DEBUG (ImageFetcher:124) HTTP hasFile: didn't find http://ftp.fi.debian.org/debian/dists/stable/main/installer-i386/Server: HTTP Error 404: Not Found
[Mon, 20 Jan 2014 00:26:40 virt-install 5252] DEBUG (ImageFetcher:124) HTTP hasFile: didn't find http://ftp.fi.debian.org/debian/dists/stable/main/installer-i386/Client: HTTP Error 404: Not Found
[Mon, 20 Jan 2014 00:26:40 virt-install 5252] DEBUG (ImageFetcher:124) HTTP hasFile: didn't find http://ftp.fi.debian.org/debian/dists/stable/main/installer-i386/RedHat: HTTP Error 404: Not Found
[Mon, 20 Jan 2014 00:26:40 virt-install 5252] DEBUG (ImageFetcher:124) HTTP hasFile: didn't find http://ftp.fi.debian.org/debian/dists/stable/main/installer-i386/CentOS: HTTP Error 404: Not Found
[Mon, 20 Jan 2014 00:26:41 virt-install 5252] DEBUG (ImageFetcher:124) HTTP hasFile: didn't find http://ftp.fi.debian.org/debian/dists/stable/main/installer-i386/SL: HTTP Error 404: Not Found
[Mon, 20 Jan 2014 00:26:41 virt-install 5252] DEBUG (ImageFetcher:124) HTTP hasFile: didn't find http://ftp.fi.debian.org/debian/dists/stable/main/installer-i386/directory.yast: HTTP Error 404: Not Found
[Mon, 20 Jan 2014 00:26:41 virt-install 5252] DEBUG (ImageFetcher:83) Fetching URI: http://ftp.fi.debian.org/debian/dists/stable/main/installer-i386/current/images/MANIFEST
[Mon, 20 Jan 2014 00:26:41 virt-install 5252] DEBUG (ImageFetcher:94) Saved file to /home/sliedes/.virtinst/boot/virtinst-MANIFEST.3DLKuH
Retrieving file MANIFEST... | 3.3 kB 00:00 ...
[Mon, 20 Jan 2014 00:26:41 virt-install 5252] DEBUG (OSDistro:948) Detected a Debian distro
[Mon, 20 Jan 2014 00:26:41 virt-install 5252] DEBUG (ImageFetcher:83) Fetching URI: http://ftp.fi.debian.org/debian/dists/stable/main/installer-i386/current/images/netboot/debian-installer/i386/linux
[Mon, 20 Jan 2014 00:26:41 virt-install 5252] DEBUG (ImageFetcher:94) Saved file to /home/sliedes/.virtinst/boot/virtinst-linux.6uuOnSs | 1.4 MB --:-- ETA
Retrieving file linux... | 4.8 MB 00:00 ...
[Mon, 20 Jan 2014 00:26:41 virt-install 5252] DEBUG (ImageFetcher:83) Fetching URI: http://ftp.fi.debian.org/debian/dists/stable/main/installer-i386/current/images/netboot/debian-installer/i386/initrd.gz
[Mon, 20 Jan 2014 00:26:43 virt-install 5252] DEBUG (ImageFetcher:94) Saved file to /home/sliedes/.virtinst/boot/virtinst-initrd.gz.ezrCuf8.4 MB 00:00 ETA
Retrieving file initrd.gz... | 20 MB 00:01 ...
[Mon, 20 Jan 2014 00:26:43 virt-install 5252] DEBUG (DistroInstaller:396) Auto detected OS type as: linux
[Mon, 20 Jan 2014 00:26:43 virt-install 5252] DEBUG (DistroInstaller:350) Uploading kernel/initrd media
[Mon, 20 Jan 2014 00:26:43 virt-install 5252] DEBUG (DistroInstaller:73) Existing pool 'boot-scratch' found for /var/lib/libvirt/boot
[Mon, 20 Jan 2014 00:26:43 virt-install 5252] DEBUG (VirtualDisk:240) Path '/var/lib/libvirt/boot' is target for pool 'boot-scratch'. Creating volume 'virtinst-linux.6uuOnS'.
[Mon, 20 Jan 2014 00:26:43 virt-install 5252] DEBUG (Storage:1196) Creating storage volume 'virtinst-linux.6uuOnS' with xml:
<volume>
<name>virtinst-linux.6uuOnS</name>
<capacity>2511200</capacity>
<allocation>0</allocation>
<target>
<format type='raw'/>
</target>
</volume>
Allocating 'virtinst-linux.6uuOnS' | 2.4 MB 00:00
[Mon, 20 Jan 2014 00:26:44 virt-install 5252] DEBUG (Storage:1220) Storage volume 'virtinst-linux.6uuOnS' install complete.
[Mon, 20 Jan 2014 00:26:44 virt-install 5252] ERROR (cli:445) 'virStream' object has no attribute 'upload'
[Mon, 20 Jan 2014 00:26:44 virt-install 5252] DEBUG (cli:448)
Traceback (most recent call last):
File "/usr/bin/virt-install", line 636, in start_install
noboot=options.noreboot)
File "/usr/lib/pymodules/python2.7/virtinst/Guest.py", line 1232, in start_install
self._prepare_install(meter, dry)
File "/usr/lib/pymodules/python2.7/virtinst/Guest.py", line 984, in _prepare_install
meter=meter)
File "/usr/lib/pymodules/python2.7/virtinst/DistroInstaller.py", line 452, in prepare
dev = self._prepare_kernel_and_initrd(guest, meter)
File "/usr/lib/pymodules/python2.7/virtinst/DistroInstaller.py", line 412, in _prepare_kernel_and_initrd
kernelfn, initrdfn)
File "/usr/lib/pymodules/python2.7/virtinst/DistroInstaller.py", line 353, in _upload_media
kvol = _upload_file(conn, meter, pool, kernel)
File "/usr/lib/pymodules/python2.7/virtinst/DistroInstaller.py", line 126, in _upload_file
stream.upload(vol, offset, length, flags)
AttributeError: 'virStream' object has no attribute 'upload'
[Mon, 20 Jan 2014 00:26:44 virt-install 5252] DEBUG (cli:457) Domain installation does not appear to have been successful.
If it was, you can restart your domain by running:
virsh --connect qemu:///system start S2E
otherwise, please restart your installation.
Domain installation does not appear to have been successful.
If it was, you can restart your domain by running:
virsh --connect qemu:///system start S2E
otherwise, please restart your installation.
------------------------------------------------------------
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.12.6 (SMP w/8 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages virtinst depends on:
ii python 2.7.5-5
ii python-libvirt 1.2.1-1
ii python-libxml2 2.9.1+dfsg1-3
ii python-support 1.0.15
ii python-urlgrabber 3.9.1-4
ii qemu-utils 1.7.0+dfsg-3
virtinst recommends no packages.
Versions of packages virtinst suggests:
ii virt-viewer 0.5.6-2
-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-libvirt-maintainers/attachments/20140120/d0dcaa95/attachment.sig>
More information about the Pkg-libvirt-maintainers
mailing list