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: