Bug 1186618 - kmod-compat has broken dependencies
Summary: kmod-compat has broken dependencies
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Distribution
Classification: openSUSE
Component: Upgrade Problems (show other bugs)
Version: Leap 15.3
Hardware: Other Other
: P5 - None : Normal with 5 votes (vote)
Target Milestone: ---
Assignee: Lubos Kocman
QA Contact: Jiri Srain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-28 14:48 UTC by Moritz Duge
Modified: 2022-08-09 10:17 UTC (History)
8 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---
martin.wilck: needinfo? (lubos.kocman)
martin.wilck: needinfo? (mlin)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Moritz Duge 2021-05-28 14:48:36 UTC
Bootet: openSUSE-Leap-15.3-KDE-Live-x86_64-Build9.88-Media.iso


# zypper in kmod-compat
Loading repository data...
Warning: Repository 'Update Repository (Non-Oss)' appears to be outdated. Consider using a different mirror or server.
Reading installed packages...
Resolving package dependencies...

Problem: nothing provides kmod = 25-6.7.1 needed by kmod-compat-25-6.7.1.x86_64
 Solution 1: do not install kmod-compat-25-6.7.1.x86_64
 Solution 2: break kmod-compat-25-6.7.1.x86_64 by ignoring some of its dependencies

Choose from above solutions by number or cancel [1/2/c/d/?] (c):


I guess this may be a simple problem in the specfile.
Comment 1 Martin Wilck 2021-06-04 13:21:28 UTC
kmod-compat is obsolete. So this behavior is correct.

# rpm -q --obsoletes kmod
kmod-compat < 28-2.1
module-init-tools < 3.16
# rpm -q --provides kmod
...
kmod-compat = 28-2.1

The problem, if any, is that kmod-compat still appears in the "oss" repository:

> http://download.opensuse.org/distribution/leap/15.3/repo/oss/x86_64/kmod-compat-25-6.7.1.x86_64.rpm

It probably should have been deleted. I can see that it does NOT show up in the SLE15-SP3 repos any more (but in SLE15-SP2). So most likely an oversight in the SLE->Leap port.

Not sure who would be the default assignee. Lubos?
Comment 2 Olli Savia 2021-10-22 08:16:04 UTC
Unfortunately this prevents me building images with KIWI

opensuse15-3:/usr/share/kiwi/custom_boot/oemboot # kiwi system build --description suse-SLES15 --set-repo 'dir:/datadisk/download.opensuse.org/distribution/leap/15.3/repo/oss' --target-dir /tmp/test

The problem can be found in log file /tmp/test/build/image-root.log

DEBUG: 11:06:42 | system: Problem: nothing provides 'kmod = 25-6.7.1' needed by the to be installed kmod-compat-25-6.7.1.x86_64
DEBUG: 11:06:42 | system:  Solution 1: do not install kmod-compat-25-6.7.1.x86_64
DEBUG: 11:06:42 | system:  Solution 2: break kmod-compat-25-6.7.1.x86_64 by ignoring some of its dependencies
DEBUG: 11:06:42 | system: Choose from above solutions by number or cancel [1/2/c/d/?] (c): c
ERROR: 11:06:42 | KiwiInstallPhaseFailed: System package installation failed: 
INFO: 11:06:42 | Cleaning up SystemPrepare instance
Comment 3 Martin Wilck 2021-11-04 15:59:02 UTC
Why is kmod-compat installed at all? It's certainly not part of a standard Leap 15.3 installation (or SLE15-SP3, for that matter).

Setting needinfo on David Cassany (Kiwi team).
Comment 4 David Cassany 2021-11-05 16:13:02 UTC
(In reply to Olli Savia from comment #2)
> Unfortunately this prevents me building images with KIWI
> 
> opensuse15-3:/usr/share/kiwi/custom_boot/oemboot # kiwi system build
> --description suse-SLES15 --set-repo
> 'dir:/datadisk/download.opensuse.org/distribution/leap/15.3/repo/oss'
> --target-dir /tmp/test
> 
> The problem can be found in log file /tmp/test/build/image-root.log
> 
> DEBUG: 11:06:42 | system: Problem: nothing provides 'kmod = 25-6.7.1' needed
> by the to be installed kmod-compat-25-6.7.1.x86_64
> DEBUG: 11:06:42 | system:  Solution 1: do not install
> kmod-compat-25-6.7.1.x86_64
> DEBUG: 11:06:42 | system:  Solution 2: break kmod-compat-25-6.7.1.x86_64 by
> ignoring some of its dependencies
> DEBUG: 11:06:42 | system: Choose from above solutions by number or cancel
> [1/2/c/d/?] (c): c
> ERROR: 11:06:42 | KiwiInstallPhaseFailed: System package installation
> failed: 
> INFO: 11:06:42 | Cleaning up SystemPrepare instance

I am not sure understand the use case... It looks like you are trying to build the images described in `kiwi-boot-descriptions` package directly by calling `kiwi system build` on them. Or you just did it for demoing purposes?

Those image descriptions are meant to be used for custom initrd creation for the oem images that they still use the old initrd creation approach. They should not be used to create a bootable system. They are referenced in `boot` attribute of in `<type>` section for oem images and they are used to create an old legacy initrd not based on dracut.

In order to use dracut based builds for OEM images you should have a `<type>` section in you config.xml that includes `initrd_system="dracut"` attribute and does **not** include the `boot` attribute.

Note that the old custom kiwi initrds are deprecated and are only in maintenance mode for pxe and oem images on SLE.

If for some reason the old oemboot code is needed (aka, you relay on some old oemboot code hooks) we need further details about the use case. The host distro, image distro or, ideally, the config.xml file you are trying to build.
Comment 5 Olli Savia 2021-11-15 09:50:45 UTC
Sorry for delayed response.

Yes, that was purely to demonstrate the problem.

In my real use case I was working with an old config file. I have now manged to convert it to dracut based initrd image and my problem is solved now. Thanks for the hint.

Anyway, the original problem (broken deps) is still valid.
Comment 6 Martin Wilck 2021-11-15 11:15:35 UTC
The only thing that's broken is that kmod-compat still lurks around in the repos. As long as you don't pull it in  you'll have no broken deps, and you won't be missing anything.

BUT: kmod-compat is *required* by "kiwi-boot-requires" and "yast2-sap-ha", and is *recommended* by "inxi" and "patterns-base-enhanced_base".

No SLE15-SP3 / Leap 15.3 package should pull in kmod-compat any more.

Adding lslezak for yast-sap-ha and maxlin for kiwi and patterns.
Comment 7 David Cassany 2021-11-15 11:40:41 UTC
(In reply to Olli Savia from comment #5)
> Sorry for delayed response.
> 
> Yes, that was purely to demonstrate the problem.
> 
> In my real use case I was working with an old config file. I have now manged
> to convert it to dracut based initrd image and my problem is solved now.
> Thanks for the hint.

I glad to know you are no longer blogged and that your is now solved.

> Anyway, the original problem (broken deps) is still valid.

I am having a look at it, I am slightly puzzled though, looking at the kmod spec looks like there should not a problem as in SP3 kmod obsoletes and provides kmod-compat, so I would have expected no issue on packaging solving...
Comment 8 Ladislav Slezák 2021-12-06 15:15:52 UTC
Peter, please check the kmod-compat dependency in yast2-sap-ha. Is it actually needed? Maybe there is a newer replacement for that...
Comment 9 Peter Varkoly 2021-12-07 15:24:49 UTC
(In reply to Ladislav Slezák from comment #8)
> Peter, please check the kmod-compat dependency in yast2-sap-ha. Is it
> actually needed? Maybe there is a newer replacement for that...
I've fixed the issue. Need review:
https://github.com/yast/yast-sap-ha/pull/8
https://github.com/yast/yast-sap-ha/pull/7
Comment 10 Ladislav Slezák 2021-12-13 13:45:47 UTC
Just some small notes: https://github.com/yast/yast-sap-ha/pull/8#pullrequestreview-830240400
Comment 11 Ladislav Slezák 2021-12-17 14:39:15 UTC
The YaST part has been fixed in the pull request above, the other packages (comment #6), might still need a fix...
Comment 16 Peter Varkoly 2022-06-13 14:44:46 UTC
FIXED
Comment 20 Swamp Workflow Management 2022-08-09 10:17:02 UTC
SUSE-RU-2022:2705-1: An update that has 6 recommended fixes can now be installed.

Category: recommended (moderate)
Bug References: 1158843,1186618,1190774,1197290,1199029,1200427
CVE References: 
JIRA References: 
Sources used:
SUSE Linux Enterprise Module for SAP Applications 15-SP2 (src):    yast2-sap-ha-1.0.15-150000.3.11.1
SUSE Linux Enterprise Module for SAP Applications 15-SP1 (src):    yast2-sap-ha-1.0.15-150000.3.11.1
SUSE Linux Enterprise Module for SAP Applications 15 (src):    yast2-sap-ha-1.0.15-150000.3.11.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.