Debian Bug report logs - #689668
ltsp-client-core: SERVER in lts.conf ignored, wrong order in ltsp_config.d

version graph

Package: ltsp-client-core; Maintainer for ltsp-client-core is Debian LTSP Maintainers <team+ltsp@tracker.debian.org>; Source for ltsp-client-core is src:ltsp (PTS, buildd, popcon).

Reported by: "Tim Dijkstra \(tdykstra\)" <tim@famdijkstra.org>

Date: Thu, 4 Oct 2012 21:57:01 UTC

Severity: important

Fixed in version ltsp/5.4.2-3

Done: Vagrant Cascadian <vagrant@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, LTSP Debian Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>:
Bug#689668; Package ltsp-client-core. (Thu, 04 Oct 2012 21:57:04 GMT) (full text, mbox, link).


Acknowledgement sent to "Tim Dijkstra \(tdykstra\)" <tim@famdijkstra.org>:
New Bug report received and forwarded. Copy sent to LTSP Debian Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>. (Thu, 04 Oct 2012 21:57:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: "Tim Dijkstra \(tdykstra\)" <tim@famdijkstra.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: ltsp-client-core: SERVER in lts.conf ignored, wrong order in ltsp_config.d
Date: Thu, 04 Oct 2012 23:09:50 +0200
Package: ltsp-client-core
Severity: normal

In my setup the server that is logged into is different from the NFS
server serving the rootfs. By default ltsp assumes those are the same,
to override one can set the SERVER variable in lts.conf.

However this doesn't work. This is because in ltsp_config.d the script
01-getltscfg comes before 01-ltspconfig-cache, which means the later
will override the SERVER variable from lts.conf with a guess based on
the NFS server IP.

The solution is simple, just rename 01-ltspconfig-cache to
00-ltspconfig-cache

grts Tim

-- System Information:
Debian Release: 6.0.5
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-xen-amd64 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash



Information forwarded to debian-bugs-dist@lists.debian.org, LTSP Debian Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>:
Bug#689668; Package ltsp-client-core. (Fri, 05 Oct 2012 18:21:07 GMT) (full text, mbox, link).


Acknowledgement sent to Vagrant Cascadian <vagrant@freegeek.org>:
Extra info received and forwarded to list. Copy sent to LTSP Debian Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>. (Fri, 05 Oct 2012 18:21:07 GMT) (full text, mbox, link).


Message #10 received at 689668@bugs.debian.org (full text, mbox, reply):

From: Vagrant Cascadian <vagrant@freegeek.org>
To: "Tim Dijkstra (tdykstra)" <tim@famdijkstra.org>, 689668@bugs.debian.org
Subject: Re: Bug#689668: ltsp-client-core: SERVER in lts.conf ignored, wrong order in ltsp_config.d
Date: Fri, 5 Oct 2012 11:18:09 -0700
On Thu, Oct 04, 2012 at 11:09:50PM +0200, Tim Dijkstra (tdykstra) wrote:
> Package: ltsp-client-core
> Severity: normal

What version of ltsp are you running? From the ltsp server, please paste the 
output of runnning:

  ltsp-info

(or if you're willing to, ltsp-info --verbose)


> In my setup the server that is logged into is different from the NFS
> server serving the rootfs. By default ltsp assumes those are the same,
> to override one can set the SERVER variable in lts.conf.

You probably should use LDM_SERVER (or XDM_SERVER) to select the login server,
not the SERVER variable.


> However this doesn't work. This is because in ltsp_config.d the script
> 01-getltscfg comes before 01-ltspconfig-cache, which means the later
> will override the SERVER variable from lts.conf with a guess based on
> the NFS server IP.
> 
> The solution is simple, just rename 01-ltspconfig-cache to
> 00-ltspconfig-cache

This may have other other unintended side-effects- I'll look into it.


live well,
  vagrant



Information forwarded to debian-bugs-dist@lists.debian.org, LTSP Debian Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>:
Bug#689668; Package ltsp-client-core. (Sat, 13 Oct 2012 20:06:03 GMT) (full text, mbox, link).


Acknowledgement sent to Tim Dijkstra <tim@famdijkstra.org>:
Extra info received and forwarded to list. Copy sent to LTSP Debian Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>. (Sat, 13 Oct 2012 20:06:03 GMT) (full text, mbox, link).


Message #15 received at 689668@bugs.debian.org (full text, mbox, reply):

From: Tim Dijkstra <tim@famdijkstra.org>
To: Vagrant Cascadian <vagrant@freegeek.org>
Cc: 689668@bugs.debian.org
Subject: Re: Bug#689668: ltsp-client-core: SERVER in lts.conf ignored, wrong order in ltsp_config.d
Date: Sat, 13 Oct 2012 21:35:33 +0200
On vr, 2012-10-05 at 11:18 -0700, Vagrant Cascadian wrote:
> On Thu, Oct 04, 2012 at 11:09:50PM +0200, Tim Dijkstra (tdykstra) wrote:
> > Package: ltsp-client-core
> > Severity: normal
> 
> What version of ltsp are you running? From the ltsp server, please paste the 
> output of runnning:
> 
>   ltsp-info
> 
root@ltspd:~# ltsp-info
server information:
No LSB modules are available.
Distributor ID:	Debian
Description:	Debian GNU/Linux testing (wheezy)
Release:	testing
Codename:	wheezy

server packages:
ii ldm-server 2:2.2.11-2
un ltsp-client-core <none>
un ltsp-docs <none>
ii ltsp-server 5.4.2-2
un ltsp-utils <none>
ii ltspfs 1.1-2

packages in chroot: /opt/ltsp/amd64
ii ldm 2:2.2.11-2
ii ldm-themes 12.07.1
ii ltsp-client 5.4.2-2
ii ltsp-client-core 5.4.2-2
ii ltspfsd 1.1-2
ii ltspfsd-core 1.1-2

found: /opt/ltsp/amd64/etc/lts.conf

> 
> 
> > In my setup the server that is logged into is different from the NFS
> > server serving the rootfs. By default ltsp assumes those are the same,
> > to override one can set the SERVER variable in lts.conf.
> 
> You probably should use LDM_SERVER (or XDM_SERVER) to select the login server,
> not the SERVER variable.

Well, with server you said all *_SERVER vars.

> 
> > However this doesn't work. This is because in ltsp_config.d the script
> > 01-getltscfg comes before 01-ltspconfig-cache, which means the later
> > will override the SERVER variable from lts.conf with a guess based on
> > the NFS server IP.
> > 
> > The solution is simple, just rename 01-ltspconfig-cache to
> > 00-ltspconfig-cache
> 
> This may have other other unintended side-effects- I'll look into it.

Doing a simple grep, it seems that the only thing that is happening is
that in init-ltsp.d a few variables are cached and reloaded in
01-ltspconfig-cache. 

It is documented everywhere that you can override these variables by
setting it in /etc/lts.conf, in the current setup you can't.


root@ltspd:/usr/share/ltsp# grep -r /var/cache/ltsp/ltsp_config */*
init-ltsp.d/01-clean-cache:rm -f /var/cache/ltsp/ltsp_config /var/cache/ltsp/ltsp_config_env
init-ltsp.d/03-kernel-cmdline:fi >> /var/cache/ltsp/ltsp_config
init-ltsp.d/04-server:                echo "NBD_ROOT_HOST=${server}" >> /var/cache/ltsp/ltsp_config
init-ltsp.d/04-server:                    echo "NBD_ROOT_NAME=${name}" >> /var/cache/ltsp/ltsp_config
init-ltsp.d/04-server:                    echo "NBD_ROOT_PORT=${port}" >> /var/cache/ltsp/ltsp_config
init-ltsp.d/04-server:                        echo NFS_SERVER=${server} >> /var/cache/ltsp/ltsp_config
init-ltsp.d/04-server:echo "SERVER=$SERVER" >> /var/cache/ltsp/ltsp_config
init-ltsp.d/50-client-mac:    echo "LTSP_CLIENT_MAC=$LTSP_CLIENT_MAC" >> /var/cache/ltsp/ltsp_config
ltsp_config.d/00-ltspconfig-cache:# Source /var/cache/ltsp/ltsp_config
ltsp_config.d/00-ltspconfig-cache:if [ -f /var/cache/ltsp/ltsp_config ]; then
ltsp_config.d/00-ltspconfig-cache:    . /var/cache/ltsp/ltsp_config
ltsp_config.d/00-ltspconfig-cache:    cat /var/cache/ltsp/ltsp_config >> ${ltsp_config_env} || true






Information forwarded to debian-bugs-dist@lists.debian.org, LTSP Debian Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>:
Bug#689668; Package ltsp-client-core. (Mon, 19 Nov 2012 20:09:07 GMT) (full text, mbox, link).


Acknowledgement sent to Vagrant Cascadian <vagrant@debian.org>:
Extra info received and forwarded to list. Copy sent to LTSP Debian Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>. (Mon, 19 Nov 2012 20:09:07 GMT) (full text, mbox, link).


Message #20 received at 689668@bugs.debian.org (full text, mbox, reply):

From: Vagrant Cascadian <vagrant@debian.org>
To: Tim Dijkstra <tim@famdijkstra.org>, 689668@bugs.debian.org
Subject: Re: Bug#689668: ltsp-client-core: SERVER in lts.conf ignored, wrong order in ltsp_config.d
Date: Mon, 19 Nov 2012 12:07:46 -0800
Control: version 689668 5.4.2-2
Control: severity 689668 important
Control: tags 689668 pending

On Sat, Oct 13, 2012 at 09:35:33PM +0200, Tim Dijkstra wrote:
> On vr, 2012-10-05 at 11:18 -0700, Vagrant Cascadian wrote:
> > On Thu, Oct 04, 2012 at 11:09:50PM +0200, Tim Dijkstra (tdykstra) wrote:

> > > In my setup the server that is logged into is different from the NFS
> > > server serving the rootfs. By default ltsp assumes those are the same,
> > > to override one can set the SERVER variable in lts.conf.
> > 
> > You probably should use LDM_SERVER (or XDM_SERVER) to select the login server,
> > not the SERVER variable.
> 
> Well, with server you said all *_SERVER vars.

SERVER is also used to define other variables; when I was testing your proposed 
change, it also changed the NBD_SWAP_SERVER variable and caused that to fail.

But it's the documented behavior, and is still useful in some cases, as long as 
you're aware of the consequences, so...


> > > However this doesn't work. This is because in ltsp_config.d the script
> > > 01-getltscfg comes before 01-ltspconfig-cache, which means the later
> > > will override the SERVER variable from lts.conf with a guess based on
> > > the NFS server IP.
> > > 
> > > The solution is simple, just rename 01-ltspconfig-cache to
> > > 00-ltspconfig-cache
> > 
> > This may have other other unintended side-effects- I'll look into it.

Will include your suggested change shortly. Thanks!


live well,
  vagrant



Severity set to 'important' from 'normal' Request was from Vagrant Cascadian <vagrant@debian.org> to 689668-submit@bugs.debian.org. (Mon, 19 Nov 2012 20:09:08 GMT) (full text, mbox, link).


Added tag(s) pending. Request was from Vagrant Cascadian <vagrant@debian.org> to 689668-submit@bugs.debian.org. (Mon, 19 Nov 2012 20:09:08 GMT) (full text, mbox, link).


Reply sent to Vagrant Cascadian <vagrant@debian.org>:
You have taken responsibility. (Mon, 19 Nov 2012 23:21:08 GMT) (full text, mbox, link).


Notification sent to "Tim Dijkstra \(tdykstra\)" <tim@famdijkstra.org>:
Bug acknowledged by developer. (Mon, 19 Nov 2012 23:21:08 GMT) (full text, mbox, link).


Message #29 received at 689668-close@bugs.debian.org (full text, mbox, reply):

From: Vagrant Cascadian <vagrant@debian.org>
To: 689668-close@bugs.debian.org
Subject: Bug#689668: fixed in ltsp 5.4.2-3
Date: Mon, 19 Nov 2012 23:18:13 +0000
Source: ltsp
Source-Version: 5.4.2-3

We believe that the bug you reported is fixed in the latest version of
ltsp, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 689668@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Vagrant Cascadian <vagrant@debian.org> (supplier of updated ltsp package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Mon, 19 Nov 2012 14:17:21 -0800
Source: ltsp
Binary: ltsp-server ltsp-server-standalone ltsp-client-core ltsp-client ltsp-client-builder
Architecture: source all i386
Version: 5.4.2-3
Distribution: unstable
Urgency: low
Maintainer: LTSP Debian Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>
Changed-By: Vagrant Cascadian <vagrant@debian.org>
Description: 
 ltsp-client - complete LTSP client environment
 ltsp-client-builder - build an LTSP environment in the installer target (udeb)
 ltsp-client-core - basic LTSP client environment
 ltsp-server - basic LTSP server environment
 ltsp-server-standalone - complete LTSP server environment
Closes: 689668 690618 690638 692920 693496 693499 693636 693745 693746
Changes: 
 ltsp (5.4.2-3) unstable; urgency=low
 .
   * ltsp-client-core patches from upstream:
     - Fix use of 'echo -e' by switching to printf in screen-x-common
       (Closes: #692920).
     - Fix use of a "read -p" bashism in ltsp-cleanup (Closes: #690638).
     - Fix dashisms in update-kernels using "local -" by saving flags and
       restoring them later (Closes: #693499).
     - Prevent setting of LTSP_FATCLIENT variable from causing ltsp-client-core
       initscript to die (Closes: #693745).
     - Move ltspconfig cache processing earlier, so that variables defined in
       lts.conf can override autodetected variables (Closes: #689668).
     - Fix initramfs udhcp hook to use /run instead of /tmp, which allows the
       booting from a network using PXE ProxyDHCP (Closes: #693746).
 .
   * ltsp-server patches from upstream:
     - Fix bashism in ltsp-config by using printf instead of 'echo -e' and echo
       with "\n" interpreting (Closes: #690618).
     - Fix ltsp-update-image to support servers with separate /boot partition.
       (Closes: #693636).
     - Fix dashisms in ltsp-update-image using "local -" by saving flags and
       restoring them later (Closes: #693496).
Checksums-Sha1: 
 a9e84f26aed6d29496950ac39e97959917286fd3 2293 ltsp_5.4.2-3.dsc
 8c47fbb23daeb1035b071ceaece32e981ef6a629 87212 ltsp_5.4.2-3.debian.tar.gz
 2069c2ee1279f375eaaaa52c9e907453352a6307 248138 ltsp-server_5.4.2-3_all.deb
 31e2173570d73ba48a636ffd9e3601d08ea2d84a 135552 ltsp-server-standalone_5.4.2-3_all.deb
 0d15b0ecdf024636bfa89e82765d1dce466eba6f 225138 ltsp-client-core_5.4.2-3_i386.deb
 e6187123f87dd878aeaecd7fde34a313676af0ce 134742 ltsp-client_5.4.2-3_i386.deb
 37f41e065c9b7dc369b22bd1f4f438f4a22c517c 9860 ltsp-client-builder_5.4.2-3_all.udeb
Checksums-Sha256: 
 b6ec6f7c1dc15383356a01647f95e97fe24dd935b42606787b44062769b6a1e8 2293 ltsp_5.4.2-3.dsc
 4a3de9509df482f6e963966f45426d787323b20eeb97055a929532ab9643bb87 87212 ltsp_5.4.2-3.debian.tar.gz
 c077965380bd97274af3e158054c90f2c045950ea00f9582bfc966b88b50cd66 248138 ltsp-server_5.4.2-3_all.deb
 1e9178082107ade603784713c1fc532e65b9ef12a27bb4a6a6306fedc99c215b 135552 ltsp-server-standalone_5.4.2-3_all.deb
 fbb2adcf62cbb6b929237745aa60feb83214700480a2db2b2af08503ce24b656 225138 ltsp-client-core_5.4.2-3_i386.deb
 962d78fe5b69186d276942cd21df92d317ed5e19aa0152e5ea8e7440d8be1e5a 134742 ltsp-client_5.4.2-3_i386.deb
 3fa105c392423aea99ce981ad5364d1d1de9b307faa3edcbd46bcdf31b6db0e2 9860 ltsp-client-builder_5.4.2-3_all.udeb
Files: 
 942aadfb646e9ddc05d1f01a55a28b56 2293 misc extra ltsp_5.4.2-3.dsc
 a9ad0bd61af46983c525bf209a18f4cc 87212 misc extra ltsp_5.4.2-3.debian.tar.gz
 e776b7cf4fc5eb4f1ad8c67e8205fece 248138 misc extra ltsp-server_5.4.2-3_all.deb
 06469a97ea1affa9c24c4d37fbeb2e8c 135552 misc extra ltsp-server-standalone_5.4.2-3_all.deb
 f192b1c2ae8de772d4fafd0ae1e50200 225138 misc extra ltsp-client-core_5.4.2-3_i386.deb
 131ac6f1dda08c1d08ab30b5e2624137 134742 misc extra ltsp-client_5.4.2-3_i386.deb
 7cb2ffad3a3e0b2c2cc235eee667b88d 9860 debian-installer extra ltsp-client-builder_5.4.2-3_all.udeb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAEBCgAGBQJQqroxAAoJELeLgtSBS5G2aqYP/Rs0Rvdd6k3mmHtQn3PMqN/K
SU7HEKOQLFlmznTyTEA74CJtj+SECkKaq9vNd8vqdDJXzo88PFfZkTCAZtT0+9Je
iuG6d2gOCtDnfqs2sq+yi6df3loOb8PV3yeI0SGJRPM+xeUsP7ZKttc473gQfzR9
r1l38UAJqYmzTVNi39S2+lDlJ/2kS79dZ1ZmpmjbHpNYHmiF5Jtjui1xwYT+t3ge
fsPBMX5mde36CnObGkqQreDuetvY6CSAOvon8BBfEJOxDhBUAlOqKRLgNUEo/UEe
0NKJZ0tdQ4eAzp0z9HiI63ebX2dvrnHOTLAZ3q5B9IHmS4rfL6cGOKY/Ao+2bIgA
YVZAk/4L1Qo1aI/sc/fusQChZDAl/NJnyqVyCfKVwBZXIUE9ARKtZyEHljA5NgiA
mbTum1wPnpcwNgvqsciBeXucdmHIO3CFqMHUoz6lKVIjjA0bhYiV+B58EXn7z2fd
p8SspEJms9prXXKJBjv+TXaF5Y2ZpcqfHZchsqPR5u0Q8Y5L4WYjZS0zL0CViDvm
+5kP7lIm7Vm0FWqe7pv8o/WdzRCwflEDJfHnPATCAoomZwJv3e6kRe85RNhAz34g
Cx+uK0nl0EZpoLHzhmK3nIPWLg4qpUrR/twQLAKHUubDX44LjurF8DyaW8Y0+AEH
XeqQMqPq1kVPnspPPws9
=OMgq
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sat, 19 Jan 2013 07:27:19 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sat Jul 1 13:04:49 2023; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.