Bug 1211198

Summary: unattended installation of Fedora 20 doesn't work
Product: Red Hat Enterprise Linux 7 Reporter: Vladimir Benes <vbenes>
Component: gnome-boxesAssignee: Zeeshan Ali <zeenix>
Status: CLOSED ERRATA QA Contact: Desktop QE <desktop-qa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2CC: mclasen, tpelka, vbenes, vehrlich
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: gnome-boxes-3.14.3.1-4.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-19 08:55:26 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:

Description Vladimir Benes 2015-04-13 09:55:25 UTC
Description of problem:
I cannot express install F20. It is correctly recognized, I can enter user and password but then I see that error occurred during preparation and express installation is switched back to normal box creation.

Version-Release number of selected component (if applicable):
gnome-boxes-3.14.3.1-99.lcov.el7.x86_64
libosinfo-0.2.11-4.el7.x86_64
libvirt-1.2.8-16.el7.x86_64


How reproducible:
always

Steps to Reproduce:
1.create machine from F20 GOLD url
2.enter user and password
3.start express installation

Actual results:
error

Expected results:
installed box

Additional info:
 G_MESSAGES_DEBUG=Boxes /usr/bin/gnome-boxes
(gnome-boxes:4196): Boxes-DEBUG: libvirt-system-importer.vala:45: Connected to system libvirt, now fetching domains..
(gnome-boxes:4196): Boxes-DEBUG: media-manager.vala:107: No read access to '/dev/sr0', ignoring..
(gnome-boxes:4196): Boxes-DEBUG: tracker-iso-query.vala:21: Tracker SPARQL query: SELECT nie:url(?iso)   nie:title(?iso)
       osinfo:id(?iso) osinfo:mediaId(?iso) osinfo:language(?iso)
{ ?iso nfo:isBootable true }
(gnome-boxes:4196): Boxes-DEBUG: libvirt-system-importer.vala:49: Fetched 1 domains from system libvirt.
(gnome-boxes:4196): Boxes-DEBUG: util-app.vala:248: check_cpu_vt_capability: yes
(gnome-boxes:4196): Boxes-DEBUG: util-app.vala:268: check_module_kvm_loaded: yes
(gnome-boxes:4196): Boxes-DEBUG: unattended-installer.vala:677: No media language, using en_US locale
(gnome-boxes:4196): Boxes-DEBUG: downloader.vala:181: Fedora 20 has logo 'https://people.gnome.org/~zeeshanak/logos/fedora.svg'.
(gnome-boxes:4196): Boxes-DEBUG: downloader.vala:84: 'https://people.gnome.org/~zeeshanak/logos/fedora.svg' already available locally at '/home/test/.cache/gnome-boxes/logos/fedora.svg'. Not downloading.
(gnome-boxes:4196): Boxes-DEBUG: media-manager.vala:107: No read access to '/dev/sr0', ignoring..
(gnome-boxes:4196): Boxes-DEBUG: media-manager.vala:107: No read access to '/dev/sr0', ignoring..
(gnome-boxes:4196): Boxes-DEBUG: tracker-iso-query.vala:21: Tracker SPARQL query: SELECT nie:url(?iso)   nie:title(?iso)
       osinfo:id(?iso) osinfo:mediaId(?iso) osinfo:language(?iso)
{ ?iso nfo:isBootable true }
(gnome-boxes:4196): Boxes-DEBUG: tracker-iso-query.vala:21: Tracker SPARQL query: SELECT nie:url(?iso)   nie:title(?iso)
       osinfo:id(?iso) osinfo:mediaId(?iso) osinfo:language(?iso)
{ ?iso nfo:isBootable true }
(gnome-boxes:4196): Boxes-DEBUG: unattended-installer.vala:677: No media language, using en_US locale
(gnome-boxes:4196): Boxes-DEBUG: unattended-installer.vala:677: No media language, using en_US locale
(gnome-boxes:4196): Boxes-DEBUG: unattended-installer.vala:677: No media language, using en_US locale
(gnome-boxes:4196): Boxes-DEBUG: downloader.vala:181: Fedora 20 has logo 'https://people.gnome.org/~zeeshanak/logos/fedora.svg'.
(gnome-boxes:4196): Boxes-DEBUG: downloader.vala:84: 'https://people.gnome.org/~zeeshanak/logos/fedora.svg' already available locally at '/home/test/.cache/gnome-boxes/logos/fedora.svg'. Not downloading.
(gnome-boxes:4196): Boxes-DEBUG: unattended-installer.vala:388: Creating disk image for unattended installation at '/home/test/.cache/gnome-boxes/fedora20-unattended.img'..
(gnome-boxes:4196): Boxes-DEBUG: unattended-installer.vala:390: Floppy image for unattended installation created at '/home/test/.cache/gnome-boxes/fedora20-unattended.img'
(gnome-boxes:4196): Boxes-DEBUG: iso-extractor.vala:12: Extracting 'isolinux/vmlinuz' from '/home/test/Downloads/Fedora-20-x86_64-DVD.iso' at path '/home/test/.cache/gnome-boxes/fedora20-kernel'..
(gnome-boxes:4196): Boxes-DEBUG: archive-reader.vala:87: Extracted file '/home/test/.cache/gnome-boxes/fedora20-kernel' from archive '/home/test/Downloads/Fedora-20-x86_64-DVD.iso'.
(gnome-boxes:4196): Boxes-DEBUG: iso-extractor.vala:15: Extracted 'isolinux/vmlinuz' from '/home/test/Downloads/Fedora-20-x86_64-DVD.iso' at path '/home/test/.cache/gnome-boxes/fedora20-kernel'.
(gnome-boxes:4196): Boxes-DEBUG: iso-extractor.vala:12: Extracting 'isolinux/initrd.img' from '/home/test/Downloads/Fedora-20-x86_64-DVD.iso' at path '/home/test/.cache/gnome-boxes/fedora20-initrd'..
(gnome-boxes:4196): Boxes-DEBUG: archive-reader.vala:72: Following hardlink of 'isolinux/initrd.img' to 'images/pxeboot/initrd.img'.
(gnome-boxes:4196): Boxes-DEBUG: archive-reader.vala:87: Extracted file '/home/test/.cache/gnome-boxes/fedora20-initrd' from archive '/home/test/Downloads/Fedora-20-x86_64-DVD.iso'.
(gnome-boxes:4196): Boxes-DEBUG: iso-extractor.vala:15: Extracted 'isolinux/initrd.img' from '/home/test/Downloads/Fedora-20-x86_64-DVD.iso' at path '/home/test/.cache/gnome-boxes/fedora20-initrd'.
(gnome-boxes:4196): Boxes-DEBUG: unattended-file.vala:19: Copying unattended file 'fedora.ks' into disk drive/image '/home/test/.cache/gnome-boxes/fedora20-unattended.img'
(gnome-boxes:4196): Boxes-DEBUG: util.vala:188: Removing '/home/test/.cache/gnome-boxes/fedora20-unattended.img'..
(gnome-boxes:4196): Boxes-DEBUG: util.vala:190: Removed '/home/test/.cache/gnome-boxes/fedora20-unattended.img'.
(gnome-boxes:4196): Boxes-DEBUG: util.vala:188: Removing '/home/test/.cache/gnome-boxes/fedora20-kernel'..
(gnome-boxes:4196): Boxes-DEBUG: util.vala:190: Removed '/home/test/.cache/gnome-boxes/fedora20-kernel'.
(gnome-boxes:4196): Boxes-DEBUG: util.vala:188: Removing '/home/test/.cache/gnome-boxes/fedora20-initrd'..
(gnome-boxes:4196): Boxes-DEBUG: util.vala:190: Removed '/home/test/.cache/gnome-boxes/fedora20-initrd'.
(gnome-boxes:4196): Boxes-DEBUG: vm-creator.vala:50: Disabling unattended installation: Unrecognized archive format
(gnome-boxes:4196): Boxes-DEBUG: util.vala:188: Removing '/home/test/.cache/gnome-boxes/fedora.ks'..
(gnome-boxes:4196): Boxes-DEBUG: util.vala:190: Removed '/home/test/.cache/gnome-boxes/fedora.ks'.
(gnome-boxes:4196): Boxes-DEBUG: vm-creator.vala:377: Creating volume 'fedora20'..
(gnome-boxes:4196): Boxes-DEBUG: vm-creator.vala:379: Created volume 'fedora20'.
(gnome-boxes:4196): Boxes-DEBUG: vm-configurator.vala:275: Using virtio controller for the main disk
(gnome-boxes:4196): Boxes-DEBUG: vm-configurator.vala:453: Adding bridge network to (null)
(gnome-boxes:4196): Boxes-DEBUG: libvirt-machine.vala:115: new libvirt machine: fedora20
(gnome-boxes:4196): Boxes-DEBUG: machine.vala:60: State of 'Fedora 20' changed to BOXES_MACHINE_MACHINE_STATE_STOPPED
(gnome-boxes:4196): Boxes-DEBUG: libvirt-broker.vala:119: New domain 'fedora20'
(gnome-boxes:4196): Boxes-DEBUG: libvirt-machine.vala:393: delete libvirt machine: Fedora 20
(gnome-boxes:4196): Boxes-DEBUG: machine.vala:517: Could not delete screenshot: no uuid, cannot build screenshot filename
(gnome-boxes:4196): Boxes-DEBUG: libvirt-machine.vala:311: disable statistics for Fedora 20
(gnome-boxes:4196): Boxes-DEBUG: libvirt-machine.vala:420: Unable to stop domain: Domain not found: no domain with matching uuid 'd1043d3a-37fe-4928-95c8-285f935c87d8' (fedora20)
(gnome-boxes:4196): Boxes-DEBUG: libvirt-machine.vala:393: delete libvirt machine: Fedora 20
(gnome-boxes:4196): Boxes-DEBUG: machine.vala:517: Could not delete screenshot: no uuid, cannot build screenshot filename
(gnome-boxes:4196): Boxes-DEBUG: libvirt-machine.vala:311: disable statistics for Fedora 20
(gnome-boxes:4196): Boxes-DEBUG: collection-view.vala:179: item not in view or already removed
(gnome-boxes:4196): Boxes-DEBUG: media-manager.vala:107: No read access to '/dev/sr0', ignoring..
(gnome-boxes:4196): Boxes-DEBUG: tracker-iso-query.vala:21: Tracker SPARQL query: SELECT nie:url(?iso)   nie:title(?iso)
       osinfo:id(?iso) osinfo:mediaId(?iso) osinfo:language(?iso)
{ ?iso nfo:isBootable true }
(gnome-boxes:4196): Boxes-DEBUG: unattended-installer.vala:677: No media language, using en_US locale
(gnome-boxes:4196): Boxes-DEBUG: app.vala:426: Suspending running boxes
(gnome-boxes:4196): Boxes-DEBUG: app.vala:454: Running boxes suspended

Comment 1 Vladimir Benes 2015-04-13 10:35:09 UTC
[test@hp-z400-02 ~]$ gnome-boxes --checks
? The CPU is capable of virtualization: yes
? The KVM module is loaded: yes
? Libvirt KVM guest available: yes
? Boxes storage pool available: yes
? The SELinux context is default: yes

Comment 2 Vladimir Benes 2015-04-13 10:35:43 UTC
using this iso:
http://dl.fedoraproject.org/pub/fedora/linux/releases/20/Fedora/x86_64/iso/

Comment 3 Zeeshan Ali 2015-05-19 19:18:43 UTC
I don't have a clue at first look what could be it. Some info for the record needed:

1. Which version of libarchive was this reproduced against?
2. Do I recall correctly that you said it works fine on Fedora 21 with exact same version of components (including libarchive)?

Comment 4 Zeeshan Ali 2015-05-19 19:30:32 UTC
Also could you please ensure that ISO was downloaded completely and has correct checksum?

Comment 5 Zeeshan Ali 2015-05-19 21:18:27 UTC
FWIW, I tried to reproduce on a F21 host (a VM) but failed. Versions:

gnome-boxes: 3.14.3.1-1.fc21
libosinfo: 0.2.11-2.fc21
libvirt-daemon: 1.2.9.2-1.fc21
libarchive: 3.1.2-10.fc21

All of x86_64.

Comment 6 Zeeshan Ali 2015-05-29 18:09:55 UTC
(In reply to Zeeshan Ali from comment #4)
> Also could you please ensure that ISO was downloaded completely and has
> correct checksum?

If those checks out, could you please check if you can reproduce against libosinfo 0.2.12 that I have already made part of this errata: https://errata.devel.redhat.com/advisory/20644 ?

Comment 7 Vladimir Benes 2015-06-01 08:08:13 UTC
no, I've tried the new libosinfo, checked correct checksum but still not working

Comment 8 Zeeshan Ali 2015-06-15 14:06:38 UTC
(In reply to Vladimir Benes from comment #7)
> no, I've tried the new libosinfo, checked correct checksum but still not
> working

What version of libarchive do we have on 7.2 btw?

Comment 9 Vladimir Benes 2015-06-16 08:45:45 UTC
libarchive-3.1.2-7.el7.x86_64

Comment 10 Matthias Clasen 2015-07-06 15:46:31 UTC
Zeeshan, the question was answered - does the answer help in tracking this down ?

Comment 11 Zeeshan Ali 2015-07-08 13:24:48 UTC
(In reply to Matthias Clasen from comment #10)
> Zeeshan, the question was answered - does the answer help in tracking this
> down ?

Not at all, quite the opposite I'm afraid. :( I'll need to reproduce locally and see what the hell is going on.

Comment 12 Zeeshan Ali 2015-07-17 15:17:53 UTC
So I finally got to investigate this. The issue is a check failing in finding the most specific mime-type for .img file. This is most likely because of shared-mime-info not being recent enough. I think we should update shared-mime-info to same version as shipped in Fedora 21.

Comment 13 Matthias Clasen 2015-07-17 16:44:11 UTC
I think we just need to cherry-pick this commit:

http://cgit.freedesktop.org/xdg/shared-mime-info/commit/?id=33bce05a5fed6ca8d85ff4c7e0205c9a1ed32e25

Comment 14 Zeeshan Ali 2015-07-17 16:59:14 UTC
(In reply to Matthias Clasen from comment #13)
> I think we just need to cherry-pick this commit:
> 
> http://cgit.freedesktop.org/xdg/shared-mime-info/commit/
> ?id=33bce05a5fed6ca8d85ff4c7e0205c9a1ed32e25

Nm, I already have a Boxes patch but let's update shared-mime-info in 7.3.

Comment 17 Vaclav Ehrlich 2015-09-23 13:05:09 UTC
Box created, user created, password set up...expressly.
Verified on gnome-boxes-3.14.3.1-7.el7.x86_64

Comment 18 errata-xmlrpc 2015-11-19 08:55:26 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-2253.html