nbdrootd uses port reserved for sieve (Port 2000)

Bug #331600 reported by Freerk Kalsbeek (Mindswitch BV)
4
Affects Status Importance Assigned to Milestone
LTSP5
Fix Released
Undecided
Unassigned
ltsp (Ubuntu)
Fix Released
Wishlist
Stéphane Graber

Bug Description

Binary package hint: ltsp-server

The default portnumber used for nbdrootd can lead to errors when a sieve server is running on the same server.

According to /etc/services port 2000 is reserved for the sieve server, so LTSP should avoid using it and by default use another port eg. 9573.

Change required to:
- /usr/share/ltsp/plugins/ltsp-build-client/Debian/035-create-fs-image
- /usr/sbin/ltsp-update-image

Patches attached

Versions used:
Ubuntu Intrepid
ltsp-server Version: 5.1.29-0ubuntu3

Revision history for this message
Freerk Kalsbeek (Mindswitch BV) (f-kalsbeek) wrote :
description: updated
Revision history for this message
Scott Balneaves (sbalneav) wrote :

Really we should apply to IANA and get a valid well-known number for nbdroot and nbdswap
I'll take this on.

Changed in ltsp (Ubuntu):
assignee: nobody → Scott Balneaves (sbalneav)
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
Alkis Georgopoulos (alkisg) wrote :

Since 4 Aug 2010 upstream nbd-server is using IANA assigned port 10809:
http://nbd.git.sourceforge.net/git/gitweb.cgi?p=nbd/nbd;a=commit;h=d208e07570e454ba421a3d7d5fcba393564a7b64

Maybe nbdrootd should use the same port since it "hides" the nbd-server through inetd stdio.

Also nbdswapd could be merged into nbdrootd and use the same port because now nbd supports named exports:
https://bugs.launchpad.net/ubuntu/+source/nbd/+bug/593227/comments/7

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

Commited support for nbdname= to ltsp-trunk and ldm-trunk.
The default for Oneiric is now to run nbd-server as a daemon instead of using inetd.conf

Current support is limited to root device, swap still uses inetd.conf (might be broken on Oneiric for the same reason nbdroot was).

Changed in ltsp (Ubuntu):
assignee: Scott Balneaves (sbalneav) → Stéphane Graber (stgraber)
Changed in ltsp:
status: New → Fix Committed
Changed in ltsp (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ltsp - 5.2.12-0ubuntu1

---------------
ltsp (5.2.12-0ubuntu1) oneiric; urgency=low

  * New upstream release.
    - Make ltsp-update-sshkeys consistent when missing host keys
    - Add support for nbdname to ltsp-update-image (LP: #806419, LP: #331600)
    - Add support for /run/sendsigs.omit.d in nbd_sendsigs_protection
    - Update ltsp_nbd for named nbd devices support (LP: #806419, LP: #331600)
    - Allow setting tftp-dirs from ltsp-build-client.
      Patch from Wim Muskee. (LP: #417127)
    - Only call asoundconf if it actually exists (LP: #609766)
    - Also copy sources.list.d entries when using --copy-sourceslist,
      thanks to Jimmy Hedman (LP: #706691)
    - Remove abi and vmcoreinfo in ltsp-update-kernels
      cleanup function (LP: #769154)
    - screen.d/xterm: pass a single, quoted command to xinitrc
    - screen.d/xfreerdp: pass a single, quoted command to xinitrc
    - Replace screen.d/rdesktop by screen.d/xfreerdp
      and make rdesktop a symlink
    - Add an xterm session script
    - Detect nc version for nc -q capability
    - Fix issues with RCFILE_ and MODULE_ (patch from <email address hidden>)
    - Remove modesetting part of XRANDR_AUTO_MULTIHEAD.
    - Update translations
    - ltsp-vmclient is obsolete. Mark it as an example.
    - new version of nbd-proxy (off by default)

  * Remove rdesktop.sh from ltsp-client-core (no longer exists)
  * Add nbd-update-config to /usr/share/ltsp/scripts/
  * Set NBD_NAMED to 1 in ltsp-update-image.conf
 -- Stephane Graber <email address hidden> Mon, 01 Aug 2011 09:25:20 -0400

Changed in ltsp (Ubuntu):
status: Fix Committed → Fix Released
Changed in ltsp:
status: Fix Committed → 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.