Bug 1432213

Summary: virt-builder fails with warning: log file /tmp/builder.log: Guestfs.Error("download: call launch before using this function\n(in guestfish, don't forget to use the 'run' command)") (ignored)
Product: [Community] Virtualization Tools Reporter: Richard W.M. Jones <rjones>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: ptoscano, rbalakri
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-11-07 17:10:42 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:
Bug Depends On: 1432219    
Bug Blocks:    

Description Richard W.M. Jones 2017-03-14 19:18:48 UTC
Description of problem:

[   0.4] Downloading: http://libguestfs.org/download/builder/fedora-25.xz
[   1.1] Planning how to build this image
[   1.1] Uncompressing
[  10.3] Resizing (using virt-resize) to expand the disk to 30.0G
[  51.9] Opening the new disk
[  60.8] Setting a random seed
[  60.8] Setting the hostname: rawhide
[  60.8] Linking: /etc/systemd/system/tmp.mount -> /dev/null
[  60.9] Installing packages: fedora-repos-rawhide
[ 125.0] Editing: /etc/yum.repos.d/fedora-rawhide.repo
[ 125.0] Installing packages: bash dnf dnf-plugins-core emacs mlocate net-tools nfs-utils ntp sudo telnet
virt-builder: warning: log file /tmp/builder.log: Guestfs.Error("download: 
call launch before using this function\n(in guestfish, don't forget to use 
the 'run' command)") (ignored)
virt-builder: error: dnf -y install 'bash' 'dnf' 'dnf-plugins-core' 'emacs' 
'mlocate' 'net-tools' 'nfs-utils' 'ntp' 'sudo' 'telnet': command exited 
with an error

If reporting bugs, run virt-builder with debugging enabled and include the 
complete output:

  virt-builder -v -x [...]

Version-Release number of selected component (if applicable):

libguestfs-tools-c-1.36.2-1.fc25.x86_64

How reproducible:

100%

Steps to Reproduce:

Not exactly sure at the moment...

Comment 1 Richard W.M. Jones 2017-03-14 19:42:11 UTC
I don't have a reproducer, but I understand what's happening.

The first 'dnf' command is killed by the appliance kernel oom-killer.  That
either kills the appliance or else makes the appliance unusable in
some way, so when we try to download the builder.log file it fails
as shown.

The root cause is that dnf is somehow using loads more memory in Rawhide.

Comment 2 Richard W.M. Jones 2017-11-07 17:10:42 UTC
Closing as this appears to have been fixed in F26+ dnf.