nbd

rebooting ltsp server leaves client stuck

Bug #107526 reported by Ian Jackson
38
This bug affects 6 people
Affects Status Importance Assigned to Milestone
nbd
Confirmed
Undecided
Unassigned

Bug Description

I installed an edubuntu server from the feisty dvd i386 20070416 and successfully booted a client.

When I selected to reboot the server, the server was able to shut down and reboot normally. However, the client was left in a stuck state: the applications and desktop were shut down but I was left with a blank desktop background where keyboard and mouse had no effect.

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

Well, a thin client relies on the server completely, for it's X session, file system, logging, etc. If you reboot the server, one can expect bad things on the client.

I suppose the real question is: what do you WANT the expected behaviour to be?

Changed in ltsp:
assignee: nobody → sbalneav
status: New → Confirmed
Revision history for this message
Oliver Grawert (ogra) wrote :

the proper solution would likely be that the client shuts down properly as well *before* the server is gone ... we could achieve that by having an ltsp-server initscript that is run on server shutdown and some yet to be specced and designed function that can shut down the clients remotely. marking that bug as whishlist so we can workout a spec for that at next UDS.

Changed in ltsp:
importance: Undecided → Wishlist
Revision history for this message
Roland Ronquist (roland-ronquist) wrote :

out of pure evilness, I found out that most of the times (in my environment)
the clients survived a server reboot as long as they where at the login prompt.
I know this may not be 100% expected and that this neither may be the
intended way of doing things.

Best,
r.r.

Revision history for this message
Jordan Erickson (lns) wrote :

Not sure how difficult this would be, but why not emulate the "good old TTY days" and send a broadcast message to all TCs, something like "Message: Server is going down NOW!", followed by a forced logout to LDM prompt.. ? Since LDM, according to Roland anyway, can survive a server reboot, kicking the clients back to a login prompt would be a good thing, to avoid having to reboot, say, a hundred thin-clients.

Another idea, maybe a hook on the server to warn the admin: "WARNING: XX number of client sessions are active - continue?"...Oh, oh, and what about some "shutdown" style options, maybe "Halt/reboot in X seconds/minutes"... shouldn't be difficult since the functionality already exists in the shutdown command, and LTSP setups really do sort of emulate the days in which this functionality was useful...

Revision history for this message
Ronald van Engelen (ronalde) wrote :

Although (in Hardy) ltsp clients seems to survive a server reboot (including the running gnome-sessions and applications), the ltsp-client root behaves odd after the reboot. We've seen random hanging ltsp-clients, no access to terminal 1 etc.

I guess this makes it an issue for nbd.

Revision history for this message
Tyler Stafford (tstafford) wrote :

When using XDMCP, rather than LDM/X Forwarding, clients handle this more gracefully. The client goes to a blank screen with an X cursor, and seems to wait until the server comes back up. At that point it brings up the GDM login screen.

Revision history for this message
Jonathan Carter (jonathan) wrote :

An ideal situation, although probably not to friendly on thin client usage, would be a program that possibly runs from a ramdisk when the connection to the server has been severed. Something that would display something similar to "Terminal server unavailable, system will shut down if no connection can be established in 1 hour."

If the server connection is re-established (perhaps it rebooted), LDM can be restarted. If the server is unavailable for a certain amount of time, the systems could shut down, reboot or switch to an alternate server depending on how they were configured.

Changed in ltsp (Ubuntu):
status: Confirmed → Triaged
Changed in ltsp (Ubuntu):
assignee: Scott Balneaves (sbalneav) → nobody
Revision history for this message
Scott Balneaves (sbalneav) wrote :

Looks like Stephane's nbd proxy will help this.

Changed in ltsp:
importance: Undecided → Wishlist
status: New → Triaged
no longer affects: ltsp (Ubuntu)
Revision history for this message
Alkis Georgopoulos (alkisg) wrote :

I think the main problem is that `nbd-client -persist` doesn't put the client in a fs-wait-state or however else it's called, and it doesn't try to reconnect to the server after it's up and running again.
Removing the task from LTSP and adding NBD in the "affects" list.

no longer affects: ltsp
Revision history for this message
Rüdiger Kupper (ruediger.kupper) wrote :

I confirm this problem.

Changed in nbd:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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