[Bug 697929] New: ipv6, rcnetwork returns before dad completed
https://bugzilla.novell.com/show_bug.cgi?id=697929 https://bugzilla.novell.com/show_bug.cgi?id=697929#c0 Summary: ipv6, rcnetwork returns before dad completed Classification: openSUSE Product: openSUSE 11.4 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: Network AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: sweet_f_a@gmx.de QAContact: qa@suse.de Found By: --- Blocker: --- Hi, rcnetwork start returns success when ipv6 adresses are still in tentative mode (still unusable). This causes later init scripts to fail if they are starting servers which want to listen to specific configured IPs. (In my case named does not to start on boot.) Workaround: setting ip CONFFLAG nodad for such important IPs or disabling dad system wide (sysctl) or just add "sleep 5" at the end of rcnetwork start Currently Ive added that sleep to my network init script. Better solution would be to wait for ip address state permanent (success) or dadfailed (error). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=697929
https://bugzilla.novell.com/show_bug.cgi?id=697929#c1
Bruno Friedmann
https://bugzilla.novell.com/show_bug.cgi?id=697929
https://bugzilla.novell.com/show_bug.cgi?id=697929#c2
--- Comment #2 from Ruediger Meier
https://bugzilla.novell.com/show_bug.cgi?id=697929
https://bugzilla.novell.com/show_bug.cgi?id=697929#c
zj jia
https://bugzilla.novell.com/show_bug.cgi?id=697929
https://bugzilla.novell.com/show_bug.cgi?id=697929#c
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=697929
https://bugzilla.novell.com/show_bug.cgi?id=697929#c3
--- Comment #3 from Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=697929
https://bugzilla.novell.com/show_bug.cgi?id=697929#c4
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=697929
https://bugzilla.novell.com/show_bug.cgi?id=697929#c5
--- Comment #5 from Ruediger Meier
https://bugzilla.novell.com/show_bug.cgi?id=697929
https://bugzilla.novell.com/show_bug.cgi?id=697929#c6
--- Comment #6 from Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=697929
https://bugzilla.novell.com/show_bug.cgi?id=697929#c7
--- Comment #7 from Ruediger Meier
https://bugzilla.novell.com/show_bug.cgi?id=697929
https://bugzilla.novell.com/show_bug.cgi?id=697929#c8
--- Comment #8 from Marius Tomaschewski
Marius, do you have your private sysconfig clone published somewhere?
You can access it at http://w3.suse.de/~mt/git/sysconfig.git/, branch 'opensuse-11.4-update-test' as soon as it has been mirrored to outside.
I'd like to follow your work on this.
Well, it didn't made sense to publish the last week version as it broke network starts... The RPM package with the current version is in: http://download.opensuse.org/repositories/home:/mtomaschewski:/branches:/ope... Sorry, that I forgot to enable the publish flag for the repository before :-/ It works fine for me and I'm going to apply it to openSUSE:Factory now. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=697929
https://bugzilla.novell.com/show_bug.cgi?id=697929#c9
--- Comment #9 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=697929
https://bugzilla.novell.com/show_bug.cgi?id=697929#c10
--- Comment #10 from Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=697929
https://bugzilla.novell.com/show_bug.cgi?id=697929#c11
--- Comment #11 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=697929
https://bugzilla.novell.com/show_bug.cgi?id=697929#c12
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=697929
https://bugzilla.novell.com/show_bug.cgi?id=697929#c14
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=697929
https://bugzilla.novell.com/show_bug.cgi?id=697929#c15
Marcus Meissner
https://bugzilla.novell.com/show_bug.cgi?id=697929
https://bugzilla.novell.com/show_bug.cgi?id=697929#c
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=697929
https://bugzilla.novell.com/show_bug.cgi?id=697929#c
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=697929
https://bugzilla.novell.com/show_bug.cgi?id=697929#c17
--- Comment #17 from Marius Tomaschewski
ok for openSUSE, please submit there. needinfo SLE maint team
OK, thanks! -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=697929
https://bugzilla.novell.com/show_bug.cgi?id=697929#c18
--- Comment #18 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=697929
https://bugzilla.novell.com/show_bug.cgi?id=697929#c19
--- Comment #19 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=697929
https://bugzilla.novell.com/show_bug.cgi?id=697929#c20
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=697929
https://bugzilla.novell.com/show_bug.cgi?id=697929#c21
Benjamin Brunner
https://bugzilla.novell.com/show_bug.cgi?id=697929
https://bugzilla.novell.com/show_bug.cgi?id=697929#c
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=697929
https://bugzilla.novell.com/show_bug.cgi?id=697929#c
Dirk Mueller
https://bugzilla.novell.com/show_bug.cgi?id=697929
https://bugzilla.novell.com/show_bug.cgi?id=697929#c22
jun wang
Hi,
rcnetwork start returns success when ipv6 adresses are still in tentative mode (still unusable).
This causes later init scripts to fail if they are starting servers which want to listen to specific configured IPs. (In my case named does not to start on boot.)
Workaround: setting ip CONFFLAG nodad for such important IPs or disabling dad system wide (sysctl) or just add "sleep 5" at the end of rcnetwork start
Currently Ive added that sleep to my network init script. Better solution would be to wait for ip address state permanent (success) or dadfailed (error).
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=697929
https://bugzilla.novell.com/show_bug.cgi?id=697929#c23
--- Comment #23 from Marius Tomaschewski
Hi, Ruediger Meier
I am testing the bug, but I knew a little about rcnetwork and ipv6. So how did you discovered the bug? and what steps to reproduce it?
Sorry, I forgot to attach a test description. Here some hints how to reproduce it quite easy: First, manual steps: ip link set dev eth0 down ip addr flush dev eth0 -- ip link set dev eth0 up ip addr add 2001:DB8:abba::1/64 dev eth0 ip addr show Every IPv6 is initially visible as "tentative", e.g.: inet6 2001:DB8:abba::1/64 scope global tentative after few seconds, when the kernel finished DAD, this flag will either disappear (success) or will get the "dadfailed" or the "flags 08" addition (depends on ip route version). Set up a NIC with static IPv6 address, e.g.: STARTMODE=auto BOOTPROTO='static' IPADDR='2001:DB8:abba::1/64' then execute the following commands: rcnetwork stop -o boot rcnetwork start -o boot ; ip addr show # sleep 10 ; ip addr show When you see tentative (without flags 08 or dadfailed), you run into this problem here. The second (commented out) "ip a s" after 10 secs should usually not show the tentative flag any more. Now you can configure a service that makes use of the IP address [bind() to this IP address, usually via "Listen 2001:DB8:abba::1"] and this service may fail trying to use the tentative address when it gets started just after network. The fixed rcnetwork version may show it as: eth0 is up, but has tentative ipv6 address but then wait until the DAD finished. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=697929
https://bugzilla.novell.com/show_bug.cgi?id=697929#c24
--- Comment #24 from Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=697929
https://bugzilla.novell.com/show_bug.cgi?id=697929#c25
--- Comment #25 from Ruediger Meier
Hi, Ruediger Meier
I am testing the bug, but I knew a little about rcnetwork and ipv6. So how did you discovered the bug? and what steps to reproduce it?
Beside Marius' posts above how to "see" the tentative mode you may also want to see what could happen in practice and why we need to wait at all. Try $ ip addr add 2001:DB8:abba::1/64 dev eth0 $ ping6 -c1 -I 2001:DB8:abba::1 ::1 ping: bind icmp socket: Cannot assign requested address after some seconds the ping should work. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=697929
https://bugzilla.novell.com/show_bug.cgi?id=697929#c26
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=697929
https://bugzilla.novell.com/show_bug.cgi?id=697929#c27
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=697929
https://bugzilla.novell.com/show_bug.cgi?id=697929#c28
--- Comment #28 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=697929
https://bugzilla.novell.com/show_bug.cgi?id=697929#c29
--- Comment #29 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=697929
https://bugzilla.novell.com/show_bug.cgi?id=697929#c30
--- Comment #30 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=697929
https://bugzilla.novell.com/show_bug.cgi?id=697929#c31
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=697929
https://bugzilla.novell.com/show_bug.cgi?id=697929#c
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=697929
https://bugzilla.novell.com/show_bug.cgi?id=697929#c32
--- Comment #32 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=697929
https://bugzilla.novell.com/show_bug.cgi?id=697929#c33
--- Comment #33 from Bernhard Wiedemann
participants (1)
-
bugzilla_noreply@novell.com