[Bug 985417] Re: dhcpd cannot write /var/run/dhcpd.pid

Launchpad Bug Tracker 985417 at bugs.launchpad.net
Mon Jun 11 15:30:14 UTC 2012


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

---------------
isc-dhcp (4.1.ESV-R4-0ubuntu5.1) precise-proposed; urgency=low

  * Set -pf option for both isc-dhcp-server and isc-dhcp-server6 so they
    create their pid files in a path that's actually writable. (LP: #985417)
  * Also allow read access to the pid file in the apparmor profile,
    otherwise only the initial start succeeds. (LP: #1005062)
  * On upgrade from dhcp3-server, move /etc/default/dhcp3-server to
    /etc/default/isc-dhcp-server. (LP: #1003971)
  * On upgrade from dhcp3-relay, remove /etc/default/dhcp3-relay.
    (LP: #1005547)
  * Try to preseed isc-dhcp-relay with the values from
    /etc/default/dhcp3-relay. (LP: #1005547)
 -- Stephane Graber <stgraber at ubuntu.com>   Sun, 27 May 2012 20:41:13 -0400

** Changed in: isc-dhcp (Ubuntu Precise)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to isc-dhcp in Ubuntu.
https://bugs.launchpad.net/bugs/985417

Title:
  dhcpd cannot write  /var/run/dhcpd.pid

Status in “isc-dhcp” package in Ubuntu:
  Fix Released
Status in “isc-dhcp” source package in Oneiric:
  Confirmed
Status in “isc-dhcp” source package in Precise:
  Fix Released
Status in “isc-dhcp” source package in Quantal:
  Fix Released

Bug description:
  Description:	Ubuntu precise (development branch)
  Release:	12.04
  ---

  isc-dhcp-server:
    Telepítve: 4.1.ESV-R4-0ubuntu5
    Jelölt:    4.1.ESV-R4-0ubuntu5
    Verziótáblázat:
   *** 4.1.ESV-R4-0ubuntu5 0
          500 http://de.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
          100 /var/lib/dpkg/status
  ---
  when starting dhcpd the following can be observed in syslog:

  Apr 19 08:09:09 u3 dhcpd: Internet Systems Consortium DHCP Server 4.1-ESV-R4
  Apr 19 08:09:09 u3 dhcpd: Copyright 2004-2011 Internet Systems Consortium.
  Apr 19 08:09:09 u3 dhcpd: All rights reserved.
  Apr 19 08:09:09 u3 dhcpd: For info, please visit https://www.isc.org/software/dhcp/
  Apr 19 08:09:09 u3 dhcpd: Internet Systems Consortium DHCP Server 4.1-ESV-R4
  Apr 19 08:09:09 u3 dhcpd: Copyright 2004-2011 Internet Systems Consortium.
  Apr 19 08:09:09 u3 dhcpd: All rights reserved.
  Apr 19 08:09:09 u3 dhcpd: For info, please visit https://www.isc.org/software/dhcp/
  Apr 19 08:09:09 u3 dhcpd: Wrote 0 leases to leases file.
  Apr 19 08:09:09 u3 dhcpd: Can't create PID file /var/run/dhcpd.pid: Permission denied.

  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: isc-dhcp-server 4.1.ESV-R4-0ubuntu5
  ProcVersionSignature: Ubuntu 3.2.0-23.36-generic 3.2.14
  Uname: Linux 3.2.0-23-generic x86_64
  ApportVersion: 2.0.1-0ubuntu4
  Architecture: amd64
  Date: Thu Apr 19 08:09:16 2012
  DhServerLeases:

  InstallationMedia: Ubuntu-Server 12.04 LTS "Precise Pangolin" - Beta amd64 (20120417)
  SourcePackage: isc-dhcp
  UpgradeStatus: No upgrade log present (probably fresh install)
  mtime.conffile..etc.dhcp.dhcpd.conf: 2012-04-19T08:09:04.598083

  ----
  [impact]
  Actually create the pid file in the directory that's created by the upstart job, instead of having dhcpd try to create it in /run and fail miserably (though the server would start regardless).

  [test case]
  1) Install isc-dhcp-server on an Ubuntu 12.04 system
  2) Update /etc/dhcp/dhcpd.conf to list a valid subnet (ideally, do the same with /etc/dhcp/dhcpd6.conf)
  3) sudo stop isc-dhcp-server ; sudo start isc-dhcp-server (if also doing IPv6, then do the same for isc-dhcp-server6)
  4) Check that /run/dhcp-server/dhcpd.pid exists and contains a valid pid (same for dhcpd6.pid if testing IPv6)
  5) Check /var/log/syslog for any pid-related error message

  [regression potential]
  Can't see anything, the upstart job has always been creating the pid path and set the ownership, so even on a system where these would be broken, the init job would be broken already.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/isc-dhcp/+bug/985417/+subscriptions




More information about the foundations-bugs mailing list