Bug 1208805 - Dependency issue to kmod l2tp_ppp.ko
Summary: Dependency issue to kmod l2tp_ppp.ko
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: xl2tpd
Version: 20
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Paul Wouters
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1208809 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-04-03 09:00 UTC by Ali Akcaagac
Modified: 2015-04-28 12:57 UTC (History)
4 users (show)

Fixed In Version: xl2tpd-1.3.6-10.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-04-28 12:57:55 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Ali Akcaagac 2015-04-03 09:00:44 UTC
Error: Package: xl2tpd-1.3.6-8.fc20.i686 (updates-testing)
           Requires: kmod(l2tp_ppp.ko)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

Since yesterday on Fedora 20. Updating not possible. Please fix if possible.

rpm -q kernel
kernel-3.19.3-100.fc20.i686

Comment 1 Justin M. Forbes 2015-04-06 13:49:32 UTC
That module is in kernel-modules-extra, you might need to install this package.

Comment 2 Ali Akcaagac 2015-04-06 15:38:10 UTC
The problem here is, that it would be good, if the spec adds a dependency to kernel-modules-extra. otherwise things like:

yum group install "gnome-desktop" --installroot=/whatever

ends up with above error if the host (main os) doesn't provide kernel-modules-extra. It would be better to have a depdendency added to it, so rather than failing with this bug, that it resolves the missing package and/or install it on demand.

Another view might be, if the requirements of kernel-modules-extra (where extra sounds more or less "optional") becomes a mandatory part of every fedora installation that way.

By the way while I was typing this:

Dependencies Resolved

================================================================================
 Package                 Arch    Version               Repository          Size
================================================================================
Installing:
 kernel-modules-extra    i686    3.19.3-100.fc20       updates-testing    2.0 M

Transaction Summary
================================================================================
Install  1 Package

Total download size: 2.0 M
Installed size: 5.7 M
Is this ok [y/d/N]: y
Downloading packages:
kernel-modules-extra-3.19.3-100.fc20.i686.rpm               | 2.0 MB  00:02     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction (shutdown inhibited)
  Installing : kernel-modules-extra-3.19.3-100.fc20.i686                    1/1 
  Verifying  : kernel-modules-extra-3.19.3-100.fc20.i686                    1/1 

Installed:
  kernel-modules-extra.i686 0:3.19.3-100.fc20                                   

Complete!
-bash-4.2$ sudo yum install xl2tpd
Loaded plugins: langpacks
Resolving Dependencies
--> Running transaction check
---> Package xl2tpd.i686 0:1.3.6-8.fc20 will be installed
--> Processing Dependency: kmod(l2tp_ppp.ko) for package: xl2tpd-1.3.6-8.fc20.i686
--> Finished Dependency Resolution
Error: Package: xl2tpd-1.3.6-8.fc20.i686 (updates-testing)
           Requires: kmod(l2tp_ppp.ko)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
-bash-4.2$

Comment 3 Ali Akcaagac 2015-04-06 15:43:50 UTC
Neither "depmod -a" nor "modprobe l2tp_ppp" (which sucessfully loads the module) solved that issue. Probably requires running dracut and reboot ?

Comment 4 Ali Akcaagac 2015-04-06 16:39:45 UTC
Adding to my last comment:

1) sudo dracut --force --strip --xz --printsize

2) reboot

3) sudo lsinitrd | grep -i "ppp"
   (returns nothing)

4) ls -1 /usr/lib/modules/3.19.3-100.fc20.i686/extra/net/l2tp/

l2tp_debugfs.ko
l2tp_eth.ko
l2tp_ip.ko
l2tp_netlink.ko
l2tp_ppp.ko

5) sudo yum install xl2tpd

Loaded plugins: langpacks
Resolving Dependencies
--> Running transaction check
---> Package xl2tpd.i686 0:1.3.6-8.fc20 will be installed
--> Processing Dependency: kmod(l2tp_ppp.ko) for package: xl2tpd-1.3.6-8.fc20.i686
--> Finished Dependency Resolution
Error: Package: xl2tpd-1.3.6-8.fc20.i686 (updates-testing)
           Requires: kmod(l2tp_ppp.ko)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

Now comming back to my previous explaination with different installroot. I hope I could explain what I like to solve:

Let's assume this:

1) root = /        <--- the host fc20 without xl2tpd/kernel-modules-extras
2) root = /opt/tmp <--- a chroot new environment that I like to install

Now it doesn't matter whether all works as expected. This is just to explain something. How I understand xl2tpd as is now is as follows. The requirements for l2tp_ppp.ko is for the host fc20 installation [1]. So if [1] (which was "/") has that kernel module installed, it then proceeds resolving and installs xl2tpd on the [1] system.

Now assuming this. I continue not having xl2tpd and kernel-modules-extras on [1], which is a legal condition by the way, but like to install "yum group install "gnome-desktop" on [2] using [1]

yum group install "gnome-desktop" --installroot=/opt/tmp

now when processing all depdenendies "xl2tpd" will fail again because it can't find l2tp_ppp.ko on [1]. Ignoring that I want it to install on [2].

What I wish (and that probably should be the case) that xl2tpd resolves the requirements for "kernel-modules-extras" as dependency for the installation in [2] (chroot). Since xl2tpd doesn't even resolve a depdenency for a normal kernel-modules-extras requirements such as in:

yum update xl2tpd
yum install xl2tpd

That this won't happen for the chroot either. Not speaking about that even for a normal update on the host system (the running one [1]). That it ends up with above error message.

Comment 5 Ali Akcaagac 2015-04-06 19:47:29 UTC
Ok I think I can explain the issue here.

First of all what have I done meanwhile:

1) I tried installing this xl2tpd package via rpm only and it fails the same.
2) I tried rebulding the xl2tpd source package via rpmbuild --rebuild. The package builds, but installation failed.
3) I tried rebulding the xl2tpd source package with a hacked spec file (removing the PPP_DIE flag from the build define. Package builds. Installation fails.

But then ... hours later ...

http://koji.fedoraproject.org/koji/rpminfo?rpmID=6064822
http://koji.fedoraproject.org/koji/rpminfo?rpmID=6120787

When comparing the two builds of kernel-modules-extra. One time for f20 and for f21, then you see that for Fedora >= 21 the kernel-modules-extra package provides kmod signatures (how I call it now) where the f20 package *DOES NOT*. So basicly xl2ptd will fail of course, because these signatures are missing in the f20 package.

At least its a guess from my side :)

Comment 6 Paul Wouters 2015-04-06 21:17:09 UTC
This is https://bugzilla.redhat.com/show_bug.cgi?id=1025301

I'm still waiting on a fix of the kernel packaging people basically. I dont know of a proper fix right now.

Comment 7 Ali Akcaagac 2015-04-06 21:40:34 UTC
How about something like this ?

-bash-4.2$ diff -ruN xl2tpd.orig xl2tpd.spec
--- xl2tpd.orig	2015-04-06 23:31:17.000000000 +0200
+++ xl2tpd.spec	2015-04-06 23:33:08.560660100 +0200
@@ -14,7 +14,8 @@
 Patch2: xl2tpd-1.3.6-md5-fips.patch
 Patch3: xl2tpd-1.3.6-saref.patch
 
-Requires: ppp >= 2.4.5-18, kmod(l2tp_ppp.ko)
+Requires: kernel-modules-extra
+Requires: ppp >= 2.4.5-18
 # If you want to authenticate against a Microsoft PDC/Active Directory
 # Requires: samba-winbind
 BuildRequires: libpcap-devel
-bash-4.2$ 

If it colides with head spec, then wrap some if's around it.

-bash-4.2$ diff -ruN xl2tpd.orig xl2tpd.spec
--- xl2tpd.orig	2015-04-06 23:31:17.000000000 +0200
+++ xl2tpd.spec	2015-04-06 23:39:54.030044580 +0200
@@ -13,8 +13,12 @@
 Patch1: xl2tpd-1.3.6-conf.patch
 Patch2: xl2tpd-1.3.6-md5-fips.patch
 Patch3: xl2tpd-1.3.6-saref.patch
-
-Requires: ppp >= 2.4.5-18, kmod(l2tp_ppp.ko)
+%if 0%{?fedora} <= 20
+Requires: kernel-modules-extra
+%else
+Requires: kmod(l2tp_ppp.ko)
+%endif
+Requires: ppp >= 2.4.5-18
 # If you want to authenticate against a Microsoft PDC/Active Directory
 # Requires: samba-winbind
 BuildRequires: libpcap-devel
-bash-4.2$ 

Not tested yet. But to give some idea.

Comment 8 Josh Boyer 2015-04-09 12:35:46 UTC
*** Bug 1208809 has been marked as a duplicate of this bug. ***

Comment 9 Fedora Update System 2015-04-12 20:24:25 UTC
xl2tpd-1.3.6-10.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/xl2tpd-1.3.6-10.fc20

Comment 10 Fedora Update System 2015-04-18 09:56:27 UTC
Package xl2tpd-1.3.6-10.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing xl2tpd-1.3.6-10.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-6402/xl2tpd-1.3.6-10.fc20
then log in and leave karma (feedback).

Comment 11 Fedora Update System 2015-04-28 12:57:55 UTC
xl2tpd-1.3.6-10.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.


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