Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1432213 - 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)
Summary: virt-builder fails with warning: log file /tmp/builder.log: Guestfs.Error("do...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libguestfs
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact:
URL:
Whiteboard:
Depends On: 1432219
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-03-14 19:18 UTC by Richard W.M. Jones
Modified: 2017-11-07 17:10 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-11-07 17:10:42 UTC
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.