[Bug 1134426] New: libvirt IndexError: string index out of range
http://bugzilla.suse.com/show_bug.cgi?id=1134426 Bug ID: 1134426 Summary: libvirt IndexError: string index out of range Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.0 Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: KVM Assignee: kvm-bugs@suse.de Reporter: ktsamis@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Libvirt threw this error but I have no idea which string it means: Unable to complete install: 'string index out of range' Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/asyncjob.py", line 88, in cb_wrapper callback(asyncjob, *args, **kwargs) File "/usr/share/virt-manager/virtManager/create.py", line 2368, in _do_async_install guest.start_install(meter=meter) File "/usr/share/virt-manager/virtinst/guest.py", line 489, in start_install self._prepare_install(meter, dry) File "/usr/share/virt-manager/virtinst/guest.py", line 313, in _prepare_install self.installer.prepare(self, meter) File "/usr/share/virt-manager/virtinst/installer.py", line 200, in prepare self._prepare(guest, meter) File "/usr/share/virt-manager/virtinst/distroinstaller.py", line 222, in _prepare self._prepare_kernel_url(guest, fetcher) File "/usr/share/virt-manager/virtinst/distroinstaller.py", line 129, in _prepare_kernel_url store = self._get_store(guest, fetcher) File "/usr/share/virt-manager/virtinst/distroinstaller.py", line 116, in _get_store self._cached_store = urlfetcher.getDistroStore(guest, fetcher) File "/usr/share/virt-manager/virtinst/urlfetcher.py", line 536, in getDistroStore dist = _distroFromSUSEContent(fetcher, arch, _type) File "/usr/share/virt-manager/virtinst/urlfetcher.py", line 487, in _distroFromSUSEContent distro_version = _parse_sle_distribution(distribution) File "/usr/share/virt-manager/virtinst/urlfetcher.py", line 475, in _parse_sle_distribution if item[2].isdigit(): IndexError: string index out of range I was trying to install a SLES12SP4 new VM. rpm -qa | grep libvirt libvirt-daemon-driver-storage-iscsi-4.0.0-lp150.7.10.4.x86_64 libvirt-daemon-config-nwfilter-4.0.0-lp150.7.10.4.x86_64 libvirt-4.0.0-lp150.7.10.4.x86_64 libvirt-glib-1_0-0-1.0.0-lp150.1.9.x86_64 libvirt-daemon-driver-uml-4.0.0-lp150.7.10.4.x86_64 libvirt-daemon-driver-nwfilter-4.0.0-lp150.7.10.4.x86_64 libvirt-daemon-driver-libxl-4.0.0-lp150.7.10.4.x86_64 libvirt-daemon-driver-storage-rbd-4.0.0-lp150.7.10.4.x86_64 libvirt-daemon-driver-nodedev-4.0.0-lp150.7.10.4.x86_64 libvirt-daemon-driver-interface-4.0.0-lp150.7.10.4.x86_64 python2-libvirt-python-4.0.0-lp150.1.2.x86_64 libvirt-libs-4.0.0-lp150.7.10.4.x86_64 libvirt-daemon-driver-storage-mpath-4.0.0-lp150.7.10.4.x86_64 libvirt-daemon-driver-network-4.0.0-lp150.7.10.4.x86_64 libvirt-daemon-driver-storage-disk-4.0.0-lp150.7.10.4.x86_64 libvirt-daemon-driver-storage-scsi-4.0.0-lp150.7.10.4.x86_64 libvirt-client-4.0.0-lp150.7.10.4.x86_64 libvirt-daemon-driver-storage-logical-4.0.0-lp150.7.10.4.x86_64 python3-libvirt-python-4.0.0-lp150.1.2.x86_64 libvirt-daemon-config-network-4.0.0-lp150.7.10.4.x86_64 libvirt-daemon-driver-qemu-4.0.0-lp150.7.10.4.x86_64 libvirt-daemon-driver-storage-core-4.0.0-lp150.7.10.4.x86_64 libvirt-daemon-qemu-4.0.0-lp150.7.10.4.x86_64 libvirt-daemon-4.0.0-lp150.7.10.4.x86_64 libvirt-daemon-driver-vbox-4.0.0-lp150.7.10.4.x86_64 libvirt-daemon-driver-secret-4.0.0-lp150.7.10.4.x86_64 libvirt-daemon-driver-lxc-4.0.0-lp150.7.10.4.x86_64 libvirt-daemon-driver-storage-4.0.0-lp150.7.10.4.x86_64 Maybe affects sle as well depending on which versions of libvirt we have there. At least the traceback should be translated into a useful message. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1134426 Liang Yan <lyan@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jfehlig@suse.com, | |lyan@suse.com Component|KVM |Virtualization:Tools -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1134426 http://bugzilla.suse.com/show_bug.cgi?id=1134426#c2 James Fehlig <jfehlig@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |carnold@suse.com, | |ktsamis@suse.com Flags| |needinfo?(ktsamis@suse.com) --- Comment #2 from James Fehlig <jfehlig@suse.com> --- (In reply to Konstantinos Tsamis from comment #0)
Libvirt threw this error but I have no idea which string it means:
Why do you think the error comes from libvirt? The entire traceback comes from virt-manager. What are your virt-manager and virt-install versions? Did the problem occur after updating some packages? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1134426 http://bugzilla.suse.com/show_bug.cgi?id=1134426#c3 Konstantinos Tsamis <ktsamis@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(ktsamis@suse.com) | --- Comment #3 from Konstantinos Tsamis <ktsamis@suse.com> --- (In reply to James Fehlig from comment #2)
You are right, it does seem to be virt-manager instead of libvirt. Here are the versions of the installed packages: rpm -qa | grep virt- libvirt-daemon-driver-storage-iscsi-4.0.0-lp150.7.10.4.x86_64 libvirt-daemon-config-nwfilter-4.0.0-lp150.7.10.4.x86_64 libvirt-4.0.0-lp150.7.10.4.x86_64 libvirt-glib-1_0-0-1.0.0-lp150.1.9.x86_64 libvirt-daemon-driver-uml-4.0.0-lp150.7.10.4.x86_64 libvirt-daemon-driver-nwfilter-4.0.0-lp150.7.10.4.x86_64 libvirt-daemon-driver-libxl-4.0.0-lp150.7.10.4.x86_64 libvirt-daemon-driver-storage-rbd-4.0.0-lp150.7.10.4.x86_64 libvirt-daemon-driver-nodedev-4.0.0-lp150.7.10.4.x86_64 libvirt-daemon-driver-interface-4.0.0-lp150.7.10.4.x86_64 python2-libvirt-python-4.0.0-lp150.1.2.x86_64 virt-manager-common-1.5.1-lp150.6.10.1.noarch libvirt-libs-4.0.0-lp150.7.10.4.x86_64 libvirt-daemon-driver-storage-mpath-4.0.0-lp150.7.10.4.x86_64 virt-install-1.5.1-lp150.6.10.1.noarch libvirt-daemon-driver-network-4.0.0-lp150.7.10.4.x86_64 libvirt-daemon-driver-storage-disk-4.0.0-lp150.7.10.4.x86_64 libvirt-daemon-driver-storage-scsi-4.0.0-lp150.7.10.4.x86_64 libvirt-client-4.0.0-lp150.7.10.4.x86_64 libvirt-daemon-driver-storage-logical-4.0.0-lp150.7.10.4.x86_64 python3-libvirt-python-4.0.0-lp150.1.2.x86_64 virt-manager-1.5.1-lp150.6.10.1.noarch libvirt-daemon-config-network-4.0.0-lp150.7.10.4.x86_64 libvirt-daemon-driver-qemu-4.0.0-lp150.7.10.4.x86_64 libvirt-daemon-driver-storage-core-4.0.0-lp150.7.10.4.x86_64 libvirt-daemon-qemu-4.0.0-lp150.7.10.4.x86_64 libvirt-daemon-4.0.0-lp150.7.10.4.x86_64 libvirt-daemon-driver-vbox-4.0.0-lp150.7.10.4.x86_64 virt-viewer-6.0-lp150.1.4.x86_64 libvirt-daemon-driver-secret-4.0.0-lp150.7.10.4.x86_64 libvirt-daemon-driver-lxc-4.0.0-lp150.7.10.4.x86_64 libvirt-daemon-driver-storage-4.0.0-lp150.7.10.4.x86_64 terraform-provider-libvirt-0.5.0+git.1542698041.34c84ded-lp150.1.1.x86_64 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1134426 Charles Arnold <carnold@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|kvm-bugs@suse.de |carnold@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1134426 http://bugzilla.suse.com/show_bug.cgi?id=1134426#c4 Charles Arnold <carnold@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags| |needinfo?(ktsamis@suse.com) --- Comment #4 from Charles Arnold <carnold@suse.com> --- (In reply to Konstantinos Tsamis from comment #0) ...
I'm having difficulty reproducing this and the final line number specified in the stack trace doesn't match the code from the version of virt-manager in comment #3. Could you attach the entire virt-manager.log file? Found at ~/.cache/virt-manager/virt-manager.log Thanks -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1134426 http://bugzilla.suse.com/show_bug.cgi?id=1134426#c5 Konstantinos Tsamis <ktsamis@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(ktsamis@suse.com) | --- Comment #5 from Konstantinos Tsamis <ktsamis@suse.com> --- Created attachment 806640 --> http://bugzilla.suse.com/attachment.cgi?id=806640&action=edit virt-manager.log Looking into the log I don't see anything relevant about the IndexError but take a look. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1134426 http://bugzilla.suse.com/show_bug.cgi?id=1134426#c6 Charles Arnold <carnold@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags| |needinfo?(ktsamis@suse.com) --- Comment #6 from Charles Arnold <carnold@suse.com> --- (In reply to Konstantinos Tsamis from comment #5)
The most recent entry in this log file is from Wed, 27 Feb 2019 so it can't be the log for the virt-manager you were running when the error occurred. There are a couple possibilities for this discrepancy. 1) Are you using ssh to log into another machine and launching virt-manager from there? In this case the version of virt-manager and log file would be different than what is found on your local host. 2) The log file is found in a different home directory. If you are launching virt-manager as root, it is in /root/.cache/virt-manager/virt-manager.log. If you are launching as a user and entering the root password then the log file is in /home/<your user name>/.cache/virt-manager/virt-manager.log -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1134426 http://bugzilla.suse.com/show_bug.cgi?id=1134426#c7 Konstantinos Tsamis <ktsamis@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(ktsamis@suse.com) | --- Comment #7 from Konstantinos Tsamis <ktsamis@suse.com> --- Created attachment 806729 --> http://bugzilla.suse.com/attachment.cgi?id=806729&action=edit virt-manager log valid Sorry for the confusion. I forgot it happened on a server instead of my local machine. This is the log with the error. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1134426 Liang Yan <lyan@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jfehlig@suse.com, | |lyan@suse.com Component|KVM |Virtualization:Tools -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1134426 http://bugzilla.suse.com/show_bug.cgi?id=1134426#c2 James Fehlig <jfehlig@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |carnold@suse.com, | |ktsamis@suse.com Flags| |needinfo?(ktsamis@suse.com) --- Comment #2 from James Fehlig <jfehlig@suse.com> --- (In reply to Konstantinos Tsamis from comment #0)
Libvirt threw this error but I have no idea which string it means:
Why do you think the error comes from libvirt? The entire traceback comes from virt-manager. What are your virt-manager and virt-install versions? Did the problem occur after updating some packages? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1134426 http://bugzilla.suse.com/show_bug.cgi?id=1134426#c3 Konstantinos Tsamis <ktsamis@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(ktsamis@suse.com) | --- Comment #3 from Konstantinos Tsamis <ktsamis@suse.com> --- (In reply to James Fehlig from comment #2)
You are right, it does seem to be virt-manager instead of libvirt. Here are the versions of the installed packages: rpm -qa | grep virt- libvirt-daemon-driver-storage-iscsi-4.0.0-lp150.7.10.4.x86_64 libvirt-daemon-config-nwfilter-4.0.0-lp150.7.10.4.x86_64 libvirt-4.0.0-lp150.7.10.4.x86_64 libvirt-glib-1_0-0-1.0.0-lp150.1.9.x86_64 libvirt-daemon-driver-uml-4.0.0-lp150.7.10.4.x86_64 libvirt-daemon-driver-nwfilter-4.0.0-lp150.7.10.4.x86_64 libvirt-daemon-driver-libxl-4.0.0-lp150.7.10.4.x86_64 libvirt-daemon-driver-storage-rbd-4.0.0-lp150.7.10.4.x86_64 libvirt-daemon-driver-nodedev-4.0.0-lp150.7.10.4.x86_64 libvirt-daemon-driver-interface-4.0.0-lp150.7.10.4.x86_64 python2-libvirt-python-4.0.0-lp150.1.2.x86_64 virt-manager-common-1.5.1-lp150.6.10.1.noarch libvirt-libs-4.0.0-lp150.7.10.4.x86_64 libvirt-daemon-driver-storage-mpath-4.0.0-lp150.7.10.4.x86_64 virt-install-1.5.1-lp150.6.10.1.noarch libvirt-daemon-driver-network-4.0.0-lp150.7.10.4.x86_64 libvirt-daemon-driver-storage-disk-4.0.0-lp150.7.10.4.x86_64 libvirt-daemon-driver-storage-scsi-4.0.0-lp150.7.10.4.x86_64 libvirt-client-4.0.0-lp150.7.10.4.x86_64 libvirt-daemon-driver-storage-logical-4.0.0-lp150.7.10.4.x86_64 python3-libvirt-python-4.0.0-lp150.1.2.x86_64 virt-manager-1.5.1-lp150.6.10.1.noarch libvirt-daemon-config-network-4.0.0-lp150.7.10.4.x86_64 libvirt-daemon-driver-qemu-4.0.0-lp150.7.10.4.x86_64 libvirt-daemon-driver-storage-core-4.0.0-lp150.7.10.4.x86_64 libvirt-daemon-qemu-4.0.0-lp150.7.10.4.x86_64 libvirt-daemon-4.0.0-lp150.7.10.4.x86_64 libvirt-daemon-driver-vbox-4.0.0-lp150.7.10.4.x86_64 virt-viewer-6.0-lp150.1.4.x86_64 libvirt-daemon-driver-secret-4.0.0-lp150.7.10.4.x86_64 libvirt-daemon-driver-lxc-4.0.0-lp150.7.10.4.x86_64 libvirt-daemon-driver-storage-4.0.0-lp150.7.10.4.x86_64 terraform-provider-libvirt-0.5.0+git.1542698041.34c84ded-lp150.1.1.x86_64 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1134426 Charles Arnold <carnold@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|kvm-bugs@suse.de |carnold@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1134426 http://bugzilla.suse.com/show_bug.cgi?id=1134426#c4 Charles Arnold <carnold@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags| |needinfo?(ktsamis@suse.com) --- Comment #4 from Charles Arnold <carnold@suse.com> --- (In reply to Konstantinos Tsamis from comment #0) ...
I'm having difficulty reproducing this and the final line number specified in the stack trace doesn't match the code from the version of virt-manager in comment #3. Could you attach the entire virt-manager.log file? Found at ~/.cache/virt-manager/virt-manager.log Thanks -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1134426 http://bugzilla.suse.com/show_bug.cgi?id=1134426#c5 Konstantinos Tsamis <ktsamis@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(ktsamis@suse.com) | --- Comment #5 from Konstantinos Tsamis <ktsamis@suse.com> --- Created attachment 806640 --> http://bugzilla.suse.com/attachment.cgi?id=806640&action=edit virt-manager.log Looking into the log I don't see anything relevant about the IndexError but take a look. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1134426 http://bugzilla.suse.com/show_bug.cgi?id=1134426#c6 Charles Arnold <carnold@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags| |needinfo?(ktsamis@suse.com) --- Comment #6 from Charles Arnold <carnold@suse.com> --- (In reply to Konstantinos Tsamis from comment #5)
The most recent entry in this log file is from Wed, 27 Feb 2019 so it can't be the log for the virt-manager you were running when the error occurred. There are a couple possibilities for this discrepancy. 1) Are you using ssh to log into another machine and launching virt-manager from there? In this case the version of virt-manager and log file would be different than what is found on your local host. 2) The log file is found in a different home directory. If you are launching virt-manager as root, it is in /root/.cache/virt-manager/virt-manager.log. If you are launching as a user and entering the root password then the log file is in /home/<your user name>/.cache/virt-manager/virt-manager.log -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1134426 http://bugzilla.suse.com/show_bug.cgi?id=1134426#c7 Konstantinos Tsamis <ktsamis@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(ktsamis@suse.com) | --- Comment #7 from Konstantinos Tsamis <ktsamis@suse.com> --- Created attachment 806729 --> http://bugzilla.suse.com/attachment.cgi?id=806729&action=edit virt-manager log valid Sorry for the confusion. I forgot it happened on a server instead of my local machine. This is the log with the error. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com