virt-install fails on bionic

Bug #1763609 reported by Frank Heimes
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu on IBM z Systems
Medium
Christian Ehrhardt 
virt-manager (Debian)
Fix Released
Unknown
virt-manager (Ubuntu)
Undecided
Unassigned

Bug Description

virt-install does not work on bionic and ends up with python error:
$ sudo virt-install -d --name ubu-test1 --vcpus 2 --memory 2048 --disk size=8,bus=virtio,format=qcow2 --boot cdrom,hd --network bridge=virbr0 --graphics none --console pty,target_type=sclp --location /var/lib/libvirt/images/bionic-server-s390x.iso --initrd-inject=/var/lib/libvirt/images/preseed.cfg --extra-args="locale=en_US auto=true priority=critical s390-netdevice/choose_networktype=virtio netcfg/use_autoconfig=true netcfg/disable_dhcp=false netcfg/get_hostname=ubu-test1 netcfg/get_domain=domain.com network-console/password=instpass network-console/start=true file=file:/preseed.cfg"
...
OSError: [Errno 2] No such file or directory
...

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu Bionic Beaver (development branch)
Release: 18.04
Codename: bionic
$ dpkg -l virtinst
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
ii virtinst 1:1.5.0-0ubu all Programs to create and clone virt

similar call and setup on artful works:
$ sudo virt-install -d --name ubu-test6 --vcpus 2 --memory 2048 --disk size=4,bus=virtio,format=qcow2,pool=images --boot cdrom,hd --network bridge=virbr0 --graphics none --console pty,target_type=sclp --location /var/lib/libvirt/images/ubuntu-17.10-server-s390x.iso --initrd-inject=/var/lib/libvirt/images/preseed.cfg --extra-args="locale=en_US auto=true priority=critical s390-netdevice/choose_networktype=virtio netcfg/use_autoconfig=true netcfg/disable_dhcp=false netcfg/get_hostname=ubu-test6 netcfg/get_domain=domain.com network-console/password=instpass network-console/start=true file=file:/preseed.cfg"

see output / log for more details

Related branches

Revision history for this message
Frank Heimes (fheimes) wrote :
description: updated
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Thanks for the bug, we found this on debugging:

Starting install...
[Fri, 13 Apr 2018 03:31:36 virt-install 12481] DEBUG (urlfetcher:56) Using scratchdir=/var/lib/libvirt/boot
[Fri, 13 Apr 2018 03:31:36 virt-install 12481] DEBUG (urlfetcher:503) Finding distro store for location=/var/lib/libvirt/images/bionic-server-s390x.iso
[Fri, 13 Apr 2018 03:31:36 virt-install 12481] DEBUG (urlfetcher:345) Running isoinfo: ['isoinfo', '-J', '-i', '/var/lib/libvirt/images/bionic-server-s390x.iso', '-x', '/.treeinfo']
[Fri, 13 Apr 2018 03:31:36 virt-install 12481] DEBUG (urlfetcher:89) Fetching URI: /.treeinfo
Retrieving file .treeinfo... | 0 B 00:00:00
[Fri, 13 Apr 2018 03:31:36 virt-install 12481] DEBUG (urlfetcher:164) Saved file to /var/lib/libvirt/boot/virtinst-.treeinfo.2131Dc
[Fri, 13 Apr 2018 03:31:36 virt-install 12481] DEBUG (urlfetcher:404) Did not find 'family' section in treeinfo
[Fri, 13 Apr 2018 03:31:36 virt-install 12481] DEBUG (urlfetcher:345) Running isoinfo: ['isoinfo', '-J', '-i', '/var/lib/libvirt/images/bionic-server-s390x.iso', '-x', '/content']
[Fri, 13 Apr 2018 03:31:36 virt-install 12481] DEBUG (urlfetcher:89) Fetching URI: /content
Retrieving file content... | 0 B 00:00:00
[Fri, 13 Apr 2018 03:31:36 virt-install 12481] DEBUG (urlfetcher:1144) No treearch found in uri, defaulting to arch=i386
[Fri, 13 Apr 2018 03:31:36 virt-install 12481] DEBUG (urlfetcher:357) Running isoinfo: ['isoinfo', '-J', '-i', '/var/lib/libvirt/images/bionic-server-s390x.iso', '-f']
[Fri, 13 Apr 2018 03:31:36 virt-install 12481] DEBUG (urlfetcher:144) hasFile(/current/images/MANIFEST) returning False
[Fri, 13 Apr 2018 03:31:36 virt-install 12481] DEBUG (urlfetcher:144) hasFile(/daily/MANIFEST) returning False
[Fri, 13 Apr 2018 03:31:36 virt-install 12481] DEBUG (urlfetcher:144) hasFile(/.disk/info) returning True
[Fri, 13 Apr 2018 03:31:36 virt-install 12481] DEBUG (urlfetcher:345) Running isoinfo: ['isoinfo', '-J', '-i', '/var/lib/libvirt/images/bionic-server-s390x.iso', '-x', '/.disk/info']
[Fri, 13 Apr 2018 03:31:36 virt-install 12481] DEBUG (urlfetcher:89) Fetching URI: /.disk/info

TL;DR - it needs isoinfo but is not part of the dependencies yet.

Changed in virt-manager (Ubuntu):
status: New → In Progress
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Reported to Debian so that they do not face the same issue but can fix it when merging 1.5
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=895594

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :
Changed in virt-manager (Debian):
status: Unknown → New
Frank Heimes (fheimes)
Changed in ubuntu-z-systems:
status: New → In Progress
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Pushed to Bionic.
We are late, so it needs an approval of the release team now.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package virt-manager - 1:1.5.1-0ubuntu1

---------------
virt-manager (1:1.5.1-0ubuntu1) bionic; urgency=medium

  * d/control: virtinst needs isoinfo to introspect images. To fix that
    add a dependency to genisoimage to virtinst (LP: #1763609)
  * Merge with latest upstream stable release (LP: #1763618):
    - Fixes potential crash with libxml2 error callbacks
    - Fixes disk/net/mem VM graphs

 -- Christian Ehrhardt <email address hidden> Fri, 13 Apr 2018 09:36:46 +0200

Changed in virt-manager (Ubuntu):
status: In Progress → Fix Released
Frank Heimes (fheimes)
Changed in ubuntu-z-systems:
status: In Progress → Fix Released
Changed in virt-manager (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.