Bug 1215586 - guestfs regression: non functional network due to missing sysconfig-netconfig
Summary: guestfs regression: non functional network due to missing sysconfig-netconfig
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Virtualization:Tools (show other bugs)
Version: Current
Hardware: x86-64 Linux
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Charles Arnold
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-21 20:31 UTC by Olaf Hering
Modified: 2024-01-11 22:59 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Olaf Hering 2023-09-21 20:31:00 UTC
At some point in the past, virt-builder and other tools had proper networking with-in the appliance. This still works by luck in SLE15, but it broke in Tumbleweed.

The reason is the transformation of appliance/packagelist.in into /usr/lib64/guestfs/supermin.d/packages. During build the packagelist is passed to supermin, which writes the packages file. In case a package is unavailable during build, it will be missing from the packages file. Also 'systemd' is transformed into 'systemd-mini' (which is not really an issue because other packages require 'systemd').

In case of networking: if the host does not have 'dhcp-client' installed, the network will not start inside the appliance. Once dhcp-client gets installed, it will be put into the appliance. But the dhcp-client scripts expect a functional /sbin/netconfig, which is provided by sysconfig-netconfig. That package is listed in packagelist.in, but will not be written to packages because it is not in BuildRequires.

I think most packages from packagelist.in are "lost" during build because they are not in BuildRequires, or because nothing requires them. It feels wrong to put each and every binary which is potentially called by guestfsd into BuildRequires.

Instead the "packages" file should be overwritten manually with the list of packages which may be used, if it is installed on the host.
Comment 1 Olaf Hering 2023-09-22 14:07:18 UTC
I think this can be solved with 'sort -u appliance/packagelist > %buildroot%_libdir/guestfs/supermin.d/packages' somewhere in %install.
Comment 2 Charles Arnold 2023-09-25 22:05:24 UTC
(In reply to Olaf Hering from comment #1)
> I think this can be solved with 'sort -u appliance/packagelist >
> %buildroot%_libdir/guestfs/supermin.d/packages' somewhere in %install.

I'll look into doing this. In the meantime, I've added sysconfig-netconfig to
the BuildRequires for the quick fix.
Comment 4 OBSbugzilla Bot 2023-09-26 00:35:06 UTC
This is an autogenerated message for OBS integration:
This bug (1215586) was mentioned in
https://build.opensuse.org/request/show/1113550 Factory / libguestfs
Comment 5 Maintenance Automation 2023-10-16 12:30:03 UTC
SUSE-RU-2023:4088-1: An update that has five fixes can now be installed.

Category: recommended (moderate)
Bug References: 1212972, 1215461, 1215543, 1215586, 1215664
Sources used:
SUSE Linux Enterprise Micro 5.5 (src): libguestfs-1.48.6-150500.3.8.1
Server Applications Module 15-SP5 (src): libguestfs-1.48.6-150500.3.8.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 6 Charles Arnold 2024-01-11 22:59:39 UTC
Spec file updated.