fails if network is not yet configured at runlevel 2

Bug #1027081 reported by Serge Hallyn
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
tftp-hpa (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

If network is not yet configured at runlevel 2, then the upstart job thinks tftpd is running, but ps -ef shows it is not. This happens on my laptop which normally comes up with wireless, and on which I set up wired by hand later. It can trivially be reproduced with a container where the lxc.network bits are replaced with

lxc.network.type = empty

If I then try

'sudo start tftpd-hpa'

this fails because it thinks it is running, but if I do

sudo restart tftpd-hpa

that works.

Changed in tftp-hpa (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

more detailed reproduction instructions:

lxc-create -t ubuntu -n 1
lxc-start -n q1
  (inside container) sudo apt-get -y install tftpd-hpa; sudo poweroff
sudo sed -i '/lxc.network/d' /var/lib/lxc/q1/config
echo "lxc.network.type = empty" | sudo tee -a /var/lib/lxc/q1/config
sudo lxc-start -n q1
  (inside container) sudo status tftpd-hpa; ps -ef | grep tftp; sudo start tftpd-hpa; sudo restart tftp-hpa

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

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in tftp-hpa (Ubuntu):
status: New → Confirmed
Revision history for this message
Steve Langasek (vorlon) wrote :

Does this generate any output in /var/log/upstart/tftpd-hpa.log?

Chances are, the service is exiting at an unexpected moment during startup. This may be an upstart bug rather than a tftpd bug.

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.