[FFe] converting isc-dhcp from sysvinit to upstart

Bug #944849 reported by Stéphane Graber
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
isc-dhcp (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

As discussed at UDS and mentioned in https://blueprints.launchpad.net/ubuntu/+spec/foundations-p-ipv6

Our current isc-dhcp is using the good old sysvinit jobs to start/stop isc-dhcp-server and isc-dhcp-relay, this works pretty well but doesn't support the IPv6 use case.

In a dual-stack environment, one will need to spawn two isc-dhcp servers or two isc-dhcp relays, one for IPv4 and one for IPv6.
The IPv4 and IPv6 services are provided by the same binary (either isc-dhcp-server or isc-dhcp-relay) but don't share their configuration file or runtime directories.

I believe the easiest way of implementing this would be to swich from our current two sysvinit jobs to 4 upstart jobs:
 - isc-dhcp-server.conf
 - isc-dhcp-server6.conf
 - isc-dhcp-relay.conf
 - isc-dhcp-relay6.conf

The only difference between the IPv4 and IPv6 jobs would be the location of their configuration file, the *6.conf jobs would be looking for /etc/isc-dhcp-server/dhcpd6.conf for example instead of /etc/isc-dhcp-server/dhcpd.conf

A default dhcpd6.conf file will be shipped doing something similar to our dhcpd.conf (basically just an example that doesn't get used).

Once the release team approves the plan, I'll be working on the actual changes and will provide a debdiff for final review before upload.

Related branches

Revision history for this message
Kate Stewart (kate.stewart) wrote :

Approved if the change can be tested and land before 3/15 we should be able to include this change.
Have checked with Dave Walker, and this should be able to be coordinated with the other fixes he's planning, so should be able to be managed in.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package isc-dhcp - 4.1.ESV-R4-0ubuntu3

---------------
isc-dhcp (4.1.ESV-R4-0ubuntu3) precise; urgency=low

  * Spawn separate IPv4 and IPv6 daemons. (LP: #944849)

  * Convert /etc/init.d/isc-dhcp-server to two upstart jobs:
    - /etc/init/isc-dhcp-server.conf (using /etc/isc-dhcp-server/dhcpd.conf)
    - /etc/init/isc-dhcp-server6.conf (using /etc/isc-dhcp-server/dhcpd6.conf)

  * Convert /etc/init.d/isc-dhcp-relay to two upstart jobs:
    - /etc/init/isc-dhcp-relay.conf (using /etc/default/isc-dhcp-relay)
    - /etc/init/isc-dhcp-relay6.conf (using /etc/default/isc-dhcp-relay6)

  * To enable isc-dhcp-server6, create /etc/isc-dhcp-server/dhcpd6.conf
  * To enable isc-dhcp-relay6, configure /etc/default/isc-dhcp-relay6
 -- Stephane Graber <email address hidden> Tue, 06 Mar 2012 13:22:41 -0500

Changed in isc-dhcp (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.