Bug 616765

Summary: IPv6 not enabled in Yast, yet dhclient spams logs with ipv6 failures
Product: [openSUSE] openSUSE 11.3 Reporter: Jon Nelson <jnelson-suse>
Component: NetworkAssignee: Marius Tomaschewski <mt>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: ast, freespacer, hsd098g7ta0d8ja0dfg6s0dgj, jbohac, meissner
Version: Factory   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard: maint:released:11.3:35314 maint:released:sle11-sp1:38085
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Deadline: 2011-01-05   
Attachments: Patch fixing the ipv6 support check in ifup-dhcp
Correction of the fix.

Description Jon Nelson 2010-06-23 15:59:23 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100317 SUSE/3.5.9-0.1.1 Firefox/3.5.9

yast2 lan   shows that IPv6 is *not* enabled, however dhclient spams /var/log/messages with this:


Jun 23 10:18:16 frank dhclient: dhc6: send_packet6() sent -1 of 54 bytes
Jun 23 10:20:19 frank dhclient: XMT: Solicit on eth3, interval 120440ms.
Jun 23 10:20:19 frank dhclient: send_packet6: Cannot assign requested address
Jun 23 10:20:19 frank dhclient: dhc6: send_packet6() sent -1 of 54 bytes
Jun 23 10:22:19 frank dhclient: XMT: Solicit on eth3, interval 129180ms.
Jun 23 10:22:19 frank dhclient: send_packet6: Cannot assign requested address
Jun 23 10:22:19 frank dhclient: dhc6: send_packet6() sent -1 of 54 bytes
Jun 23 10:24:29 frank dhclient: XMT: Solicit on eth3, interval 123410ms.
Jun 23 10:24:29 frank dhclient: send_packet6: Cannot assign requested address
Jun 23 10:24:29 frank dhclient: dhc6: send_packet6() sent -1 of 54 bytes



Reproducible: Always

Steps to Reproduce:
1.
2.
3.
Comment 1 Marius Tomaschewski 2010-07-12 10:24:46 UTC
The check in /sbin/ifup-dhcp is not sufficient with newer kernels.
Going to fix it.
Comment 2 Marius Tomaschewski 2010-07-12 10:53:06 UTC
Created attachment 375233 [details]
Patch fixing the ipv6 support check in ifup-dhcp

Note,

that when ipv6 is disabled for the interface only, for example using:

   net.ipv6.conf.eth0.disable_ipv6 = 1

in /etc/sysconfig/network/ifsysctl, this check will not work because
of kernel bug #559170. But it works fine, when it is disabled at all
(net.ipv6.conf.all.disable_ipv6 = 1) as done by yast2 network.
Comment 3 Marius Tomaschewski 2010-07-12 11:06:12 UTC
Fixed wrong reassing to Michal instead of needinfo...

Michal, does yast2 network restart the network (completely) or inform/ask
the user to reboot when disable_ipv6 setting has been changed?
Comment 4 Marius Tomaschewski 2010-07-12 11:12:01 UTC
BTW:
Another way to fix the problem is to fix the interface configuration,
that is the /etc/sysconfig/network/ifcfg-<interface> file, and use a
BOOTPROTO=dhcp4 and not BOOTPROTO=dhcp (start both, v4 + v6 clients).
Comment 5 Marius Tomaschewski 2010-07-12 11:31:52 UTC
Submitted the fix to OBS/Base:System/sysconfig and openSUSE:Factory:

 42834  State:new     By:mtomaschewski When:2010-07-12T13:27:52
        submit:       Base:System/sysconfig  ->  openSUSE:Factory       
        Descr: Bug 616765 - IPv6 not enabled in Yast, yet dhclient spams logs
               with ipv6 failures

http://download.opensuse.org/repositories/Base:/System/openSUSE_Factory/
Comment 8 Marcus Meissner 2010-07-13 16:03:54 UTC
sysconfig gets quite some update usually, perhaps we should collect some issues first.

(does not look that worrysome of an issue).
Comment 9 Christian Dengler 2010-07-13 16:10:32 UTC
Only for the next sysconfig update.
Comment 10 Marius Tomaschewski 2010-07-13 16:43:19 UTC
(In reply to comment #8)
(In reply to comment #9)

OK, thanks!

Workaround is to change BOOTPROTO=dhcp to BOOTPROTO=dhcp4 in ifcfg-<ifname>
files -- the user disabled ipv6 anyway.
Comment 11 Michal Zugec 2010-07-19 08:41:48 UTC
Marius, sorry for no response (vacation). YaST informs user that reboot is needed to correctly apply changes.
Comment 12 Michal Zugec 2010-07-19 08:44:22 UTC
*** Bug 620298 has been marked as a duplicate of this bug. ***
Comment 13 Jon Nelson 2010-07-19 13:39:11 UTC
Why should a *reboot* be necessary? 
That seems rather silly, when a change to the ifcfg file is sufficient.
Comment 14 Michal Zugec 2010-07-19 13:50:24 UTC
In my experience (without reboot) some applications like Firefox, Thunderbird could randomly crash.
Comment 15 Jon Nelson 2010-07-19 14:25:24 UTC
Is that still true? I thought that particular issue (the IPv6-goes-away and firefox-crashes bug) was fixed.

IN any case, I'd much rather see "you may have to restart some networking applications if you are disabling IPv6" instead of "reboot your computer".

It's not like we run Windows or anything.
Comment 16 Marius Tomaschewski 2010-07-20 07:34:07 UTC
(In reply to comment #15)
> Is that still true? I thought that particular issue (the IPv6-goes-away and
> firefox-crashes bug) was fixed.
> 
> IN any case, I'd much rather see "you may have to restart some networking
> applications if you are disabling IPv6" instead of "reboot your computer".

Short:
 The problem is, that "some networking applications" is an insufficient
 action description and may be also technically not sufficient.

Generally, it should be possible to handle it completely manually... it
should be not even strictly required to restart the network when the
disable_ipv6 way is effective (as on 11.3), the kernel will then remove
all ipv6 addresses itself...
But on older systems/kernels, ipv6 may be a module and yast2 disables the
ipv6 module loading. It is not possible to unload the module -- only a
reboot works here.

It is not easy even for advanced user with disable_ipv6, because there
are several side effects / corner cases.

There are not only GUI applications like firefox, but also several services,
possibly inclusive of X11, that may have bound ipv6 ports or even handle
ipv4 connections through the ipv6 socket and at least side effects have to
be taken into account.

Last but not least: the above dependencies for the applications may be
also true for things running inside of the kernel. It may include also
another type of problems: see bug 559170.

Another issue is: disabling ipv6 usually introduces more problems than
it solves and just delays the correct solutions. It was never required
for me to disable ipv6 -- except for tests.


Anyway: fixed for me, fix will be picked up in the next update.
Comment 17 Marius Tomaschewski 2010-07-20 09:18:22 UTC
Submitted the fix to the 11.3 update test queue:

 43469  State:new     By:mtomaschewski When:2010-07-20T11:13:19
        submit:       home:mtomaschewski:branches:openSUSE:11.3:Update:Test/sysconfig
 -> openSUSE:11.3:Update:Test   
        Descr: fix for bug 616765 (next update)

test packages / previews will appear at:

http://download.opensuse.org/repositories/home:/mtomaschewski:/branches:/openSUSE:/11.3:/Update:/Test/openSUSE_11.3_Update_Test

=> Technically fixed.
Comment 18 Swamp Workflow Management 2010-09-07 12:52:47 UTC
Update released for: sysconfig, sysconfig-debuginfo, sysconfig-debugsource
Products:
openSUSE 11.3 (debug, i586, x86_64)
Comment 19 Marius Tomaschewski 2010-11-11 13:29:41 UTC
fix was incorrect.
Comment 20 Marius Tomaschewski 2010-11-11 13:32:05 UTC
Created attachment 399687 [details]
Correction of the fix.

The result was always HAVE_IPv6=no after the previous patch.
Comment 21 DELETE THIS ACCOUNT DELETE THIS ACCOUNT 2010-11-17 03:35:18 UTC
digging for solutions to my bug,

"libcanberra.so failing to connect to pulseaudio results in menu hangs in Firefox"
 https://bugzilla.novell.com/show_bug.cgi?id=632530

which has 

  --   kernel /vmlinuz ...
  ++   kernel /vmlinuz ... ipv6.disable=1

as a workaound, I found your comments:

 (In reply to comment #16)
 ...
 > It is not easy even for advanced user with disable_ipv6, because there
 > are several side effects / corner cases.
 > 
 > There are not only GUI applications like firefox, but also several services,
 > possibly inclusive of X11, that may have bound ipv6 ports or even handle
 > ipv4 connections through the ipv6 socket and at least side effects have to
 > be taken into account.
 ...

_are_ these issues, possibly, related?  tbh, i'm not at all clear ...
Comment 22 Marius Tomaschewski 2010-11-17 08:07:29 UTC
(In reply to comment #21)
> _are_ these issues, possibly, related?  tbh, i'm not at all clear ...

No.
The mentioned comment was about changing to "disable_ipv6=1" at runtime
and the problems that may happen when you don't reboot after.
Comment 23 Marius Tomaschewski 2010-12-07 10:16:38 UTC
Mr Maintenance,

we have a fix of the fix (see comment 20). For next update?

I've submitted it already to openSUSE:11.3:Update:Test -- currently there
are following fixes / submissions in the queue:

IBS Request #9421:
  submit:   home:mtomaschewski:branches:SUSE:SLE-11-SP1:Update:Test/sysconfig
            ->  SUSE:SLE-11-SP1:Update:Test   
  message:  bug 637183,616765,644738,638508

OBS Request #54941:
  submit:   home:mtomaschewski:branches:openSUSE:11.3:Update:Test/sysconfig
            -> openSUSE:11.3:Update:Test/sysconfig
 message:   bug 616765,644738,637183

OBS Request #53146:
  submit:   home:mtomaschewski:branches:openSUSE:11.2:Update:Test/sysconfig
            -> openSUSE:11.2:Update:Test/sysconfig
 message:   next update, bnc#637183
Comment 24 Marcus Meissner 2010-12-08 10:10:09 UTC
opensuse maintenance is public, un-privatized previous comment.


I think we could do a sysconfig update now for openSUSE *  +1
Comment 25 Swamp Workflow Management 2010-12-08 16:21:57 UTC
The SWAMPID for this issue is 37696.
This issue was rated as low.
Please submit fixed packages until 2011-01-05.
Also create a patchinfo file using this link:
https://swamp.suse.de/webswamp/wf/37696
Comment 26 Christian Dengler 2010-12-08 16:22:41 UTC
+1 ... update started.
Comment 27 Dirk Mueller 2010-12-27 16:05:45 UTC
and accepted
Comment 28 Swamp Workflow Management 2011-01-03 07:48:14 UTC
Update released for: sysconfig, sysconfig-debuginfo, sysconfig-debugsource
Products:
openSUSE 11.3 (debug, i586, x86_64)
Comment 29 Swamp Workflow Management 2011-01-12 20:53:18 UTC
Update released for: sysconfig, sysconfig-debuginfo, sysconfig-debugsource
Products:
SLE-DEBUGINFO 11-SP1 (i386, ia64, ppc64, s390x, x86_64)
SLE-DESKTOP 11-SP1 (i386, x86_64)
SLE-SERVER 11-SP1 (i386, ia64, ppc64, s390x, x86_64)
SLES4VMWARE 11-SP1 (i386, x86_64)
Comment 30 Bernhard Wiedemann 2016-04-15 11:55:21 UTC
This is an autogenerated message for OBS integration:
This bug (616765) was mentioned in
https://build.opensuse.org/request/show/52837 Factory / sysconfig