Bug 916130

Summary: libguestfs can't rebuild in mock
Product: Red Hat Enterprise Linux 6 Reporter: Levente Farkas <lfarkas>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: CLOSED NOTABUG QA Contact: Virtualization Bugs <virt-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.4CC: bfan, leiwang, qguan, wshi
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libguestfs-1.20.9-5.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-06-28 11:05:23 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: 958183    
Bug Blocks:    
Attachments:
Description Flags
build.log
none
root.log none

Description Levente Farkas 2013-02-27 11:41:51 UTC
libguestfs-1.16.34-2.el6 can't rebuild in mock since gives this error
----------------------------------
libguestfs: [00044ms] begin building supermin appliance
libguestfs: [00044ms] run febootstrap-supermin-helper
libguestfs: [00044ms] febootstrap-supermin-helper --verbose -f ext2 /builddir/build/BUILD/libguestfs-1.16.34/appliance/supermin.d x86_64 /builddir/build/BUIL
D/libguestfs-1.16.34/guestfs.v8UCXK/kernel /builddir/build/BUILD/libguestfs-1.16.34/guestfs.v8UCXK/initrd /builddir/build/BUILD/libguestfs-1.16.34/guestfs.v8
UCXK/root
supermin helper [00000ms] whitelist = (not specified), host_cpu = x86_64, kernel = /builddir/build/BUILD/libguestfs-1.16.34/guestfs.v8UCXK/kernel, initrd = /
builddir/build/BUILD/libguestfs-1.16.34/guestfs.v8UCXK/initrd, appliance = /builddir/build/BUILD/libguestfs-1.16.34/guestfs.v8UCXK/root
supermin helper [00000ms] inputs[0] = /builddir/build/BUILD/libguestfs-1.16.34/appliance/supermin.d
checking modpath /lib/modules/2.6.32-358.el6.x86_64 is a directory
picked vmlinuz-2.6.32-358.el6.x86_64 because modpath /lib/modules/2.6.32-358.el6.x86_64 exists
supermin helper [00000ms] finished creating kernel
supermin helper [00076ms] finished mke2fs
supermin helper [00077ms] visiting /builddir/build/BUILD/libguestfs-1.16.34/appliance/supermin.d
supermin helper [00077ms] visiting /builddir/build/BUILD/libguestfs-1.16.34/appliance/supermin.d/base.img
supermin helper [02251ms] visiting /builddir/build/BUILD/libguestfs-1.16.34/appliance/supermin.d/daemon.img
supermin helper [02255ms] visiting /builddir/build/BUILD/libguestfs-1.16.34/appliance/supermin.d/hostfiles
supermin helper [03973ms] visiting /builddir/build/BUILD/libguestfs-1.16.34/appliance/supermin.d/init.img
supermin helper [03973ms] adding kernel modules
supermin helper [05483ms] closing ext2 filesystem
febootstrap-supermin-helper: symbol lookup error: febootstrap-supermin-helper: undefined symbol: ext2fs_close2
*stdin*:2: libguestfs: error: external command failed, see earlier error messages
libguestfs: trace: launch = -1 (error)
libguestfs: trace: close
libguestfs: closing guestfs handle 0x1ba6da0 (state 0)
FAIL: qemu-liveness.sh
----------------------------------

Comment 2 Richard W.M. Jones 2013-02-27 12:54:11 UTC
The error is caused by e2fsprogs-libs missing the new
symbol ext2fs_close2:

febootstrap-supermin-helper: symbol lookup error: febootstrap-supermin-helper: undefined symbol: ext2fs_close2
*stdin*:2: libguestfs: error: external command failed, see earlier error messages

I've no idea why that is, because there's not enough information
in this report.  Please supply the complete root.log and build.log
from mock.

Comment 3 Levente Farkas 2013-02-28 19:27:13 UTC
Created attachment 703938 [details]
build.log

Comment 4 Levente Farkas 2013-02-28 19:28:25 UTC
Created attachment 703939 [details]
root.log

Comment 5 Richard W.M. Jones 2013-02-28 19:59:25 UTC
Where does febootstrap come from?  e2fsprogs-libs 1.41.12-14
does not contain the new ext2fs_close2 symbol.  But for some
reason your copy of febootstrap is linked against that symbol,
so it must have been built against a newer / upstream e2fsprogs,
and not the version that is installed on your machine.

Comment 6 Levente Farkas 2013-02-28 23:18:58 UTC
you've got right.
sorry it was my fault:-(

Comment 8 Richard W.M. Jones 2013-06-28 11:05:23 UTC
General issues with libguestfs rebuilding in mock are fixed
by the rebase (bug 958183).

In this specific case it turned out to be not a bug related
to libguestfs.