Bug 713678

Summary: Not all febootstrap messages are redirected to log callbacks
Product: [Community] Virtualization Tools Reporter: Marek Goldmann <mgoldman>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: CLOSED UPSTREAM QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: mbooth, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-10-19 09:28:35 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Marek Goldmann 2011-06-16 08:18:37 UTC
Description of problem:

Some messages aren't redirected to log callback, but instead they are print to stdout. This is not really a bug, but a minor annoyance.

For example:

supermin helper [00000ms] whitelist = (not specified), host_cpu = x86_64, kernel = (null), initrd = (null), appliance = (null)
supermin helper [00003ms] inputs[0] = /usr/lib64/guestfs/supermin.d
checking modpath /lib/modules/2.6.38.6-27.fc15.x86_64 is a directory
picked vmlinuz-2.6.38.6-27.fc15.x86_64 because modpath /lib/modules/2.6.38.6-27.fc15.x86_64 exists
checking modpath /lib/modules/2.6.38.7-30.fc15.x86_64 is a directory
picked vmlinuz-2.6.38.7-30.fc15.x86_64 because modpath /lib/modules/2.6.38.7-30.fc15.x86_64 exists
supermin helper [00006ms] finished creating kernel
supermin helper [00007ms] visiting /usr/lib64/guestfs/supermin.d
supermin helper [00007ms] visiting /usr/lib64/guestfs/supermin.d/base.img
supermin helper [00007ms] visiting /usr/lib64/guestfs/supermin.d/daemon.img
supermin helper [00007ms] visiting /usr/lib64/guestfs/supermin.d/hostfiles
supermin helper [00054ms] visiting /usr/lib64/guestfs/supermin.d/init.img
supermin helper [00178ms] finished creating appliance

Comment 1 Richard W.M. Jones 2011-06-16 08:35:49 UTC
This happens because we run febootstrap-supermin-helper
as an external process without fully capturing its stdout and
stderr and redirecting those through the event system, eg
in the following two places:

http://git.annexia.org/?p=libguestfs.git;a=blob;f=src/appliance.c;h=56838825855027ef4ff575f81a0f943f36f330fa;hb=HEAD#l198

http://git.annexia.org/?p=libguestfs.git;a=blob;f=src/appliance.c;h=56838825855027ef4ff575f81a0f943f36f330fa;hb=HEAD#l598

Comment 2 Richard W.M. Jones 2012-10-19 09:28:35 UTC
Fixed upstream (libguestfs >= 1.19.53) by the
following commits:

2e90f4312928f332f8997b52be3fe54f20920242
8d4f3f85f2bdf38a2868ea785cf66efa65af25f3