[Bug 223825] Re: aiccu init.d script will race dhclient (upstart issue?)

Chris Halse Rogers raof at ubuntu.com
Fri Mar 16 04:37:12 UTC 2012


I've fixed a couple of things in the debdiff and uploaded it.  Specifically:
*) I mentioned what the purpose in transitioning to an upstart script was in the changelog
*) I retargetted the changelog entry at Precise, the current development release
*) I dropped the debian/aiccu.maintscript addition; dh_installinit handles the removal of /etc/init.d/aiccu itself.

Thanks for your work!

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/223825

Title:
  aiccu init.d script will race dhclient (upstart issue?)

Status in “aiccu” package in Ubuntu:
  Fix Released
Status in “aiccu” source package in Karmic:
  Won't Fix

Bug description:
  Binary package hint: aiccu

  aiccu comes with a SysV-style init script.  In the dark ages before
  upstart (and before NetworkManager?) this worked fine with a link from
  /etc/rc2.d/S99aiccu, but ever since, there's a race for DHCP users:
  aiccu won't sit around waiting if it can't reach the tunnel broker,
  and DHCP configuration happens late, after aiccu terminates.

  Observe this snippet of syslog produced at boot (Hardy / 8.04):

  Apr 26 22:43:40 badger NetworkManager: <info>  Activation (eth1) Stage 1 of 5 (Device Prepare) complete.
  Apr 26 22:43:40 badger NetworkManager: <info>  Activation (eth1) Stage 2 of 5 (Device Configure) starting...
  Apr 26 22:43:40 badger NetworkManager: <info>  Activation (eth1) Stage 2 of 5 (Device Configure) successful.
  Apr 26 22:43:40 badger NetworkManager: <info>  Activation (eth1) Stage 3 of 5 (IP Configure Start) scheduled.
  Apr 26 22:43:40 badger NetworkManager: <info>  Activation (eth1) Stage 2 of 5 (Device Configure) complete.
  Apr 26 22:43:40 badger NetworkManager: <info>  Activation (eth1) Stage 3 of 5 (IP Configure Start) started...
  Apr 26 22:43:41 badger anacron[6503]: Anacron 2.3 started on 2008-04-26
  Apr 26 22:43:41 badger anacron[6503]: Normal exit (0 jobs run)
  Apr 26 22:43:41 badger NetworkManager: <info>  Activation (eth1) Beginning DHCP
  transaction.
  Apr 26 22:43:41 badger NetworkManager: <info>  Activation (eth1) Stage 3 of 5 (IP Configure Start) complete.
  Apr 26 22:43:41 badger NetworkManager: <info>  DHCP daemon state is now 12 (succ
  essfully started) for interface eth1
  Apr 26 22:43:42 badger /usr/sbin/cron[6531]: (CRON) INFO (pidfile fd = 3)
  Apr 26 22:43:42 badger /usr/sbin/cron[6534]: (CRON) STARTUP (fork ok)
  Apr 26 22:43:42 badger /usr/sbin/cron[6534]: (CRON) INFO (Running @reboot jobs)
  Apr 26 22:43:43 badger NetworkManager: <info>  DHCP daemon state is now 1 (starting) for interface eth1
  Apr 26 22:43:43 badger kernel: [   51.267594] NET: Registered protocol family 17Apr 26 22:43:45 badger kernel: [   52.114297] IPv6 over IPv4 tunneling driver
  Apr 26 22:43:45 badger kernel: [   52.114565] sit0: Disabled Privacy Extensions
  Apr 26 22:43:45 badger kernel: [   52.147518] tun: Universal TUN/TAP device driver, 1.6
  Apr 26 22:43:45 badger kernel: [   52.147523] tun: (C) 1999-2004 Max Krasnyansky <maxk at qualcomm.com>
  Apr 26 22:43:45 badger aiccu: Couldn't resolve host tic.sixxs.net, service 3874
  Apr 26 22:43:45 badger aiccu: Couldn't connect to the TIC server tic.sixxs.net
  Apr 26 22:43:45 badger aiccu: Couldn't retrieve first tunnel for the above reason, aborting
  Apr 26 22:43:46 badger kernel: [   52.783534] hda-intel: Invalid position buffer, using LPIB read method instead.
  Apr 26 22:43:47 badger dhclient: DHCPREQUEST of 172.16.1.33 on eth1 to 255.255.255.255 port 67
  Apr 26 22:43:47 badger dhclient: DHCPACK of 172.16.1.33 from 172.16.0.1
  Apr 26 22:43:47 badger avahi-daemon[5935]: Joining mDNS multicast group on inter
  face eth1.IPv4 with address 172.16.1.33.
  Apr 26 22:43:47 badger avahi-daemon[5935]: New relevant interface eth1.IPv4 for mDNS.
  Apr 26 22:43:47 badger avahi-daemon[5935]: Registering new address record for 172.16.1.33 on eth1.IPv4.
  Apr 26 22:43:47 badger NetworkManager: <info>  DHCP daemon state is now 4 (reboot) for interface eth1

  and aiccu.conf:

  protocol tic
  server tic.sixxs.net
  username XXXXXXXXX
  password XXXXXXXX
  ipv6_interface sixxs
  tunnel_id TXXXXX
  verbose true
  daemonize true
  automatic true
  requiretls false

  When I have a moment I'll figure out an upstart script for it, this is
  just to document the issue.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/aiccu/+bug/223825/+subscriptions



More information about the Ubuntu-sponsors mailing list