NBD_PORT default not correct

Bug #235772 reported by Michael Blinn
8
Affects Status Importance Assigned to Milestone
ltsp (Ubuntu)
Fix Released
Undecided
Unassigned
Hardy
Fix Released
Medium
Unassigned
Intrepid
Fix Released
Undecided
Unassigned

Bug Description

Fresh i386 Ubuntu Hardy install, not upgrade

Description: Ubuntu 8.04
Release: 8.04

/opt/ltsp/i386/etc/init.d/ltsp-client-setup has
NBD_PORT=${NBD_PORT:-"9210"}

but

/etc/inetd.conf has:
9572 stream tcp nowait nobody /usr/sbin/tcpd /usr/sbin/nbdswapd

And, in lts.conf, NBD_SWAP=Y won't work unless you also specify NBD_PORT=9572
NBD_PORT should default to 9572 in ltsp-client-setup

(As per the edubuntu handbook I did cp /etc/apt/sources.list /opt/ltsp/i386/etc/apt/ and update;safe-upgrade -- This may be related)

Oliver Grawert (ogra)
Changed in ltsp:
importance: Undecided → Medium
milestone: none → ubuntu-8.04.1
status: New → Fix Committed
Revision history for this message
Martin Pitt (pitti) wrote :

Accepted into -proposed, please test and give feedback here

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

I haven't used the specific patch, but I did see this bug report before one was committed and used the workaround described. I can verify that this workaround works:

---
lts.conf:
...
# Enable NBD Swap and set correct port - see https://bugs.launchpad.net/ubuntu/+source/ltsp/+bug/235772
NBD_SWAP=Y
NBD_PORT=9572

---
$ netstat -l|grep 9572
tcp 0 0 *:9572 *:* LISTEN
lns@sequoiaubuntu:~$ telnet localhost 9572
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
NBDMAGICB†S^[[3;5~^]quit

telnet> quit
Connection closed.

Revision history for this message
Michael Blinn (mblinn-gmail) wrote :

Patch works for me. Thank you!

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

Tested and verified here as well.

Revision history for this message
Stéphane Graber (stgraber) wrote :

Confirmed here as well.

Revision history for this message
Martin Pitt (pitti) wrote :

Copied to hardy-updates.

Changed in ltsp:
status: Fix Committed → Fix Released
Revision history for this message
Colin Watson (cjwatson) wrote :

I've verified that this fix is present in intrepid, since intrepid's ltsp is based on that in hardy-proposed.

ltsp (5.0.40~bzr20080212-0ubuntu7) hardy-proposed; urgency=low

  * add jetpipe to ltsp-client-core binary package (LP: #224259)
  * fix default port for NBD_PORT, so NBD_SWAP=Y works without setting the
    port explicitly (LP: #235772)
  * dont try to install xubuntu-artwork-usplash if universe is not enabled
    (LP: #221894)
  * add /root to rw_dirs so LDM_DIRECTX works if people froce nfsroot use
    (LP: #234006)
  * fix ltsp-update-image manpage to list all options (LP: #222524)
  * make sure the users XKBOPTIONS setting in lts.conf overrides console-setup
    (partially LP: #199675)
  * add support for ten options to adjust monitor settings in xorg.conf
    (X_MONITOR_OPTION_01-10) to make things like 'Option "DPMS" "off"'
    available through lts.conf (partially LP: #199675)
  * make sure X_MOUSE_DEVICE is properly quoted if added to xorg.conf
    (partially LP: #199675)

 -- Oliver Grawert <email address hidden> Fri, 30 May 2008 00:41:36 +0200

Changed in ltsp:
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.