ltsp's dhcpd fails after server is hibernated

Bug #48212 reported by Rich Stillman
8
Affects Status Importance Assigned to Milestone
ltsp (Ubuntu)
Fix Released
Wishlist
Scott Balneaves

Bug Description

I'm running ltsp-server-standalone 0.87. Each time I hibernate the system and wake it up, the dhcp server fails to respond to thin client PXE boot requests until I've done an /etc/init.d/dhcp3-server restart. This action always gets things working again. Both the failure on hibernation and the restart are consistent behaviors on my system.

Related branches

Revision history for this message
Oliver Grawert (ogra) wrote :

indeed, i never thought that someone would hibernate a server, will be fixed in edgy.

Changed in ltsp:
assignee: nobody → ogra
status: Unconfirmed → Confirmed
Revision history for this message
Rich Stillman (linux-waystation) wrote :

I guess if you give someone a capability, they'll use it. I run a WinXP print server and the Ubuntu server in my house and I hibernate when I'm not using them because I don't like the fan noise. It sure beats waiting for the system to reboot. I can imagine that K12 school systems running classroom ltsp servers would hibernate them, at least overnight, to save power and reduce exposure to security exploits. Anyway, thanks for the fix.

Revision history for this message
Rich Stillman (linux-waystation) wrote :

Just a thought, since hibernation in general is fairly new - how about implementing a script to run when entering or leaving hibernate mode, kind of like .profile on login? It would allow things that might be sensitive to the interruption to shut down and start up again. It would also offer a kludge to fix this sort of problem.

Revision history for this message
Joe Baker (joebaker) wrote :

Well I've often thought about hibernating servers in the evening to save on electricity.
This morning one of my users selected Hibernate from their Log Off... screen and I start getting lots of calls.
I go to the ltsp server and it's powered down.
Powering it back up worked, but I can confirm that dhcpd had to be restarted because it was not handing out IP addresses after resuming from hibernation.

Ubuntu 7.0.4 ltsp-server-standalone

Revision history for this message
Scott Balneaves (sbalneav) wrote :

Could someone try this?

Edit /etc/default/acpi-support
Change the STOP_SERVICES line from:

STOP_SERVICES="mysql "

to

STOP_SERVICES="mysql dhcp3-server "

Please note spaces are important.

Cheers,
Scott

Changed in ltsp:
status: Confirmed → In Progress
Revision history for this message
Joe Baker (joebaker) wrote :

Scott,
Changing that line to...
STOP_SERVICES="mysql dhcp3-server"

Worked!

Sorry I forgot to include the last space before the ending quote. Although maybe it was good to know that the space wasn't required.

Thanks for the Fix!
-Joe Baker

Revision history for this message
Scott Balneaves (sbalneav) wrote :

We fixed this yesterday by adding proper suspend.d and resume.d scripts for dhcp3-server package.

Changed in ltsp:
assignee: ogra → sbalneav
status: In Progress → 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.