Bug 431179 - iproute does not work with the XEN kernel or kernel < 2.6.23
Summary: iproute does not work with the XEN kernel or kernel < 2.6.23
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: iproute
Version: rawhide
Hardware: x86_64
OS: Linux
high
high
Target Milestone: ---
Assignee: Marcela Mašláňová
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 377711 (view as bug list)
Depends On: 431182
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-02-01 10:40 UTC by Harald Hoyer
Modified: 2011-08-16 20:34 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-02-06 15:10:56 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Harald Hoyer 2008-02-01 10:40:57 UTC
iproute is missing a
Conflicts: kernel < 2.6.23

otherwise you end up with a non-functional system, because even the lo interface
cannot be brought up.

Comment 1 Marcela Mašláňová 2008-02-01 11:24:34 UTC
Thank you for your report. The build of iproute is at the moment dependent on
the rhbz#431182. I hope that I'll build it soon with updated spec file.

Comment 2 Marcela Mašláňová 2008-02-06 13:05:46 UTC
Now I fix the building problem in rawhide, but add conflicts into spec isn't
solution.
Testcase on my computer:
rpm -q iproute kernel
iproute-2.6.22-4.fc9
kernel-2.6.23.14-107.fc8

but I have reported problems in KVM with
kernel-2.6.21 and iproute-2.6.23

Iproute should be backward compatible. Could you tell me more about versions,
which were tested and aren't working?
rpm -q kernel kernel-xen iproute
uname -a


Comment 3 Harald Hoyer 2008-02-06 13:36:06 UTC
just take rawhide:

iproute-2.6.23-1
kernel-xen-2.6.21.7*

this is x86_64

note, that rawhide's iproute is newer than your 
iproute-2.6.22-4.fc9

Comment 4 Michal Schmidt 2008-02-06 14:18:13 UTC
I've hit the bug in current Rawhide in Xen.
It is fixed in upstream iproute already. I tested the patch and it helped. (I
had to comment out the generation of documentation in the specfile to workaround
the TeX problem).

commit 66e529f579f45351828fc82d6ba2629cc6eb3ddd
Author: Patrick McHardy <kaber>
Date:   Thu Oct 25 19:46:29 2007 +0200

    iproute 2.6.23 incompatibility
    
    Arkadiusz Miskiewicz wrote:
    > People are reporting that
    >> ip link set multicast on dev eth0 (Invalid argument)
    >> no longer works when using iproute 2.6.23 on kernel 2.6.21.
    >>
    >> On my testing machine it also fails:
    >> # ./ip link set eth0 multicast on
    >> RTNETLINK answers: Invalid argument
    
    It seems it fails to properly detect that your kernel is missing
    RTM_NEWLINK support. Apparently the reason is that the kernels
    I tested with return a different error in this situation.
    
    
    Signed-off-by: Patrick McHardy <kaber>
    Signed-off-by: Stephen Hemminger <shemminger>

diff --git a/ip/iplink.c b/ip/iplink.c
index 8e0ed2a..f28f91c 100644
--- a/ip/iplink.c
+++ b/ip/iplink.c
@@ -107,7 +107,8 @@ static int accept_msg(const struct sockaddr_nl *who,
 {
        struct nlmsgerr *err = (struct nlmsgerr *)NLMSG_DATA(n);
 
-       if (n->nlmsg_type == NLMSG_ERROR && err->error == -EOPNOTSUPP)
+       if (n->nlmsg_type == NLMSG_ERROR &&
+           (err->error == -EOPNOTSUPP || err->error == -EINVAL))
                have_rtnl_newlink = 0;
        else
                have_rtnl_newlink = 1;

Comment 5 Marcela Mašláňová 2008-02-06 15:10:56 UTC
Thanks for patch.

Ok, I push the new version of iproute into rawhide.
Happy testing.

Comment 6 Michal Schmidt 2008-02-19 12:11:26 UTC
*** Bug 377711 has been marked as a duplicate of this bug. ***

Comment 7 Patrick Connelly 2011-08-16 20:34:35 UTC
*** Bug 731180 has been marked as a duplicate of this bug. ***


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