[SRU] ntp wont run on IPv6 only host unless lo has 127.0.0.1 address
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
NTP |
Unknown
|
Unknown
|
|||
ntp (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Lucid |
Fix Released
|
Medium
|
James Page | ||
Maverick |
Fix Released
|
Medium
|
James Page |
Bug Description
IMPACT:
Ubuntu instances running in pure IPv6 environments (including 127.0.0.1) cannot run ntp as it dies when scanning for available interfaces.
FIX:
IPv6/IPv4 scanning has been improved in later releases; patch created from later release to resolve this issue (directly attached to this bug report).
TEST CASE:
1) On a working system with IPv4 & IPV6:
sudo apt-get install ntp
netstat -a | grep ntp
Ports should be mapped for both udp and udp6
2) Disable IPv4
Add the following line to /etc/network/
iface lo inet loopback
post-up ip addr del 127.0.0.1/8 dev lo
And remove the line(s) relating to IPv4 configuration of other network interfaces (looks like iface eth* inet dhcp|static*)
3) Reboot server
4) NTP service will not be running; messages in /var/log/syslog relating to startup of daemon; however no daemon running
ps -aef | grep ntp
netstat -a | grep ntp
IMPACT:
Patch is relatively minimal and comes from later release.
>>>> ORIGINAL BUG REPORT <<<<<
Binary package hint: ntp
Lucid host running IPv6 only, with network configured like this:
root@svn:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:56:86:00:15
inet6 addr: 2001:610:
inet6 addr: fe80::250:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3164 errors:0 dropped:0 overruns:0 frame:0
TX packets:2075 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:1516490 (1.5 MB) TX bytes:387497 (387.4 KB)
lo Link encap:Local Loopback
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Now ntpd wont start:
./../libisc/
Aborted
After adding an IPv4 loopback address to lo interface:
ip addr add 127.0.0.1 dev lo
ntpd is able to start.
According to http://
Related branches
- Dave Walker (community): Approve
-
Diff: 1361 lines (+1246/-30)8 files modified.pc/.quilt_patches (+1/-0)
.pc/.quilt_series (+1/-0)
.pc/applied-patches (+1/-0)
.pc/fix-noipv4.patch/libisc/ifiter_ioctl.c (+1118/-0)
debian/changelog (+7/-0)
debian/patches/fix-noipv4.patch (+86/-0)
debian/patches/series (+1/-0)
libisc/ifiter_ioctl.c (+31/-30)
- Dave Walker (community): Approve
-
Diff: 1346 lines (+1246/-30)8 files modified.pc/.quilt_patches (+1/-0)
.pc/.quilt_series (+1/-0)
.pc/applied-patches (+1/-0)
.pc/fix-noipv4.patch/libisc/ifiter_ioctl.c (+1118/-0)
debian/changelog (+7/-0)
debian/patches/fix-noipv4.patch (+86/-0)
debian/patches/series (+1/-0)
libisc/ifiter_ioctl.c (+31/-30)
Changed in ntp (Ubuntu): | |
status: | Incomplete → Fix Released |
importance: | Undecided → Medium |
description: | updated |
summary: |
- ntp wont run on IPv6 only host unless lo has 127.0.0.1 address + [SRU] ntp wont run on IPv6 only host unless lo has 127.0.0.1 address |
Changed in ntp (Ubuntu Lucid): | |
assignee: | nobody → James Page (james-page) |
Changed in ntp (Ubuntu Maverick): | |
assignee: | nobody → James Page (james-page) |
Changed in ntp (Ubuntu Lucid): | |
status: | New → In Progress |
Changed in ntp (Ubuntu Maverick): | |
status: | New → In Progress |
Changed in ntp (Ubuntu Lucid): | |
importance: | Undecided → Medium |
Changed in ntp (Ubuntu Maverick): | |
importance: | Undecided → Medium |
tags: |
added: verification-done removed: verification-needed |
tags: | added: testcase |
Thank you for taking the time to report this bug and helping to make Ubuntu better. Please execute the following command, as it will automatically gather debugging information, in a terminal:
apport-collect 715152
When reporting bugs in the future please use apport by using 'ubuntu-bug' and the name of the package affected. You can learn more about this functionality at https:/ /wiki.ubuntu. com/ReportingBu gs.