|00:08||vagrantc_ has quit IRC|
|00:20||vagrantc has joined #ltsp|
|00:33||Damianos has joined #ltsp|
|00:33||Damianos has left #ltsp|
|00:39||sweetpi has joined #ltsp|
|01:01||Kicer86 has joined #ltsp|
|01:18||Kicer86 has quit IRC|
|01:24||Kicer86 has joined #ltsp|
|01:29||uday has joined #ltsp|
|01:36||sweetpi has quit IRC|
|02:11||gorkhaan has quit IRC|
|02:12||gorkhaan has joined #ltsp|
stgraber: about the poweroff -fp and reboot -fp upstart scripts: aren't those just to prevent nbd-client from closing the nbd device?
/etc/nbd-client has an option to prevent this in a cross-distro way, without abruptly halting the computer and preventing other services from correctly closing down...
If KILLALL="false" and no NBD_DEVICE=xxx devices are set in /etc/nbd-client, then everything works fine out of the box.
If we don't want to modify a conffile, we can just use >= /dev/nbd1 instead of nbd0, which is mentioned in that config file
(use nbd1 in ltsp, I mean)
We could probably tell Wouter, the nbd maintainer, to not include a NBD_DEVICE=xxx entry in the default configuration file, that would be the best solution afaik
OK, filing two bugs for this, one in nbd and one in ltsp...
would even be better to not ship a default configuration file at all for nbd
seeing as there's no reasonable default
vagrantc: would you like to file a bug in debian nbd, instead of me filing a bug in launchpad about it? It would be more direct...
alkisg: what's the exact situation?
alkisg: i didn't catch the entire conversation
vagrantc: just what I wrote above, we didn't have a conversiation, but let me rewrite it better (gimme a few minutes)
in fact, it would be nice to get a /etc/nbd-client.d directory or some such
dpkg-reconfigure nbd-client states:
"When the nbd-client init script is called to stop the nbd-client service, there are two things that can be done: either it can disconnect all nbd-client devices (which are assumed not to be in use), or it can disconnect only those nbd-client devices that it knows about in its config file."
The default in /etc/nbd-client is
which means that the initscript should ignore any unknown nbd-client devices.
Unfortunately, in the same example file,
is used, so /dev/nbd0 is always killed even if the admin didn't manually specify any nbd connections.
That breaks shutdown in LTSP clients, it'd be better if no NBD_DEVICE was declared by default in the configuration file, or even if there was no configuration file at all shipped by default.
vagrantc: something like this ^^^ . stgraber tried to work around that problem with upstart scripts, but that breaks the shutdown process.
(so poweroff -fp should no longer be needed anywhere)
|03:12||dlezcano has joined #ltsp|
|03:15||komunista has joined #ltsp|
the sendsigs.omit stuff doesn't handle it? works on debian.
vagrantc: which one? The one from nbd-client?
That would work only if nbd-client was started as a service
But we start it from the initramfs, so it doesn't put the devices in sendsigs.omit
I guess if we put "root=/dev/nbd0" in pxelinux.cfg and call "invoke-rc.d nbd-client start" as part of the ltsp client boot process, then it would work
vagrantc: ah, you mean the ones from ltsp-init-common? There's no need to duplicate the code afaik, that should be fixed in the nbd-client package
(and in the future, we can use the nbd-client initramfs hook for nbd root mounting, it works fine, there's no need to duplicate this code in ltsp_nbd either)
|03:20||vagrantc has quit IRC|
|03:21||vagrantc has joined #ltsp|
alkisg: gah. irssi froze on me...
(11:17:54 AM) alkisg: vagrantc: which one? The one from nbd-client?
(11:18:11 AM) alkisg: That would work only if nbd-client was started as a service
(11:18:29 AM) alkisg: But we start it from the initramfs, so it doesn't put the devices in sendsigs.omit
(11:19:09 AM) alkisg: I guess if we put "root=/dev/nbd0" in pxelinux.cfg and call "invoke-rc.d nbd-client start" as part of the ltsp client boot process, then it would work
(11:20:07 AM) alkisg: vagrantc: ah, you mean the ones from ltsp-init-common? There's no need to duplicate the code afaik, that should be fixed in the nbd-client package
(11:20:32 AM) alkisg: (and in the future, we can use the nbd-client initramfs hook for nbd root mounting, it works fine, there's no need to duplicate this code in ltsp_nbd either)
anyways, on debian there are several things...
Yet another way to fix it would be to add a _netdev_ line in /etc/fstab, the nbd-client initscript ignores those too
echo KILLALL=false >> $ROOT/etc/nbd-client ; echo OMITKILL=/dev/nbd0 >> $ROOT/etc/nbd-client
there's an ltsp-build-client plugin that adds those
Hmm where? In the debian dir? I don't have those in my chroot...
Ah right, in Debian only
well, while not default, sometimes i think debian has better support for NBD than ubuntu sometimes :)
We need better sync between debian and ubuntu ltsp...
(as in, drop any other nbd stuff that ubuntu has and only keep the debian ones :D)
OMITKILL was added mid 2009
same with KILLALL=false
vagrantc: unsetting NBD_DEVICE should also work
instead of OMITKILL
But if Wouter removed NBD_DEVICE=/dev/nbd0 from the default configuration file, then no LTSP workaround would be needed at all
so, the problem is that by default, it kills devices configured there, but there's no sane default configuration?
|03:29||uday has quit IRC|
that seems like a bug worth reporting
|03:33||dlezcano has quit IRC|
|03:34||* alkisg reads at the nbd-client initscript code to find the best, less intrusive solution ...|
alkisg: hm... at least in sid, nbd-client defaults to NBD_DEVICE=
vagrantc: I have squeeze here, I don't think the packages are different..?!
Ah no wait I have squeeze for the server
Was looking at the client chroot, which is an ubuntu one...
|03:38||* vagrantc is happy to hear that alkisg has some debian around|
vagrantc: yup, fixed in ubuntu natty too. So OK that would be a bug report worth filing if it wasn't already fixed :D
Now to report a bug about the upstart scripts in ubuntu-ltsp...
vagrantc: I've a thin client with 128 RAM in my home, I put squeeze / lxde on it, it's much lighter that anything ubuntu-based I found
I have it as a print server, scan server, nfs server, movie player for the kids etc, very handy and with a low power consumption
...and now I'm trying to make it an `nbd -c partition` server (for booting 1 single fat client without ltsp) as well ;)
The nbd-client package works fine for remote booting, we shouldn't need any nbd* related code in ltsp at all...
indeed it does.
at least, i've been using it
Urm the squeeze package has "KILLALL=true" though :(
we could seed a debconf default
or manually tweak it
I think the maintainer would accept code for nbd-client not to shut down network connections for /
So maybe the solution should be inside nbd-client, and not related to ltsp at all...
indeed, that would be cleaner
Btw, /lib/init/rw/sendsigs.omit.d/nbd-client ==> shouldn't that be in /var/run?
alkisg: there are several different implementations
i tried to support as many as i knew about
No I meant the code in the nbd-client initscript, not in ltsp
i know that works in debian
the /lib/init/rw thing was added a while ago to provide an early place to write stuff (since /var may be on a separate partition).
Ah, so it's not obsolete... ok
So... I think that when /etc/init.d/nbd-client is invoked when the ltsp clients boot, it should check /proc/cmdline for the root fs, and put that in its omit list
Looking if that already works, or if it doesn't, why...
alkisg: were you able to get an aufs mount just using nbd-client's hooks?
vagrantc: No i'm using a rw partition for nbd-server
I.e. a single fat client with no aufs
|03:56||* vagrantc did that recently with armhf tests|
since qemu can't be used to emulate the new architecture
|03:57||komunista1 has joined #ltsp|
|03:57||komunista has quit IRC|
|03:57||komunista1 is now known as komunista|
|03:57||yanu_ has joined #ltsp|
|03:57||yanu has quit IRC|
|03:58||chupadupa has joined #ltsp|
|04:00||daduke__ has joined #ltsp|
|04:01||chupacabra has quit IRC|
|04:01||daduke_ has quit IRC|
|04:03||BWMerlin_ has joined #ltsp|
I think nbd copy on write should also work, without aufs...
wouter said it was pretty slow
Ah. Well it shouldn't be, so maybe some patches there would also be welcome... ;)
|04:07||BWMerlin has quit IRC|
|04:07||ogra_ac_ has quit IRC|
|04:07||gent_geen has quit IRC|
|04:07||BWMerlin_ is now known as BWMerlin|
|04:07||komunista1 has joined #ltsp|
|04:07||komunista has quit IRC|
good patches are generally welcomed :)
|04:11||gent_geen has joined #ltsp|
|04:15||vagrantc has quit IRC|
|04:16||MorningSon has quit IRC|
|04:18||ogra_ac_ has joined #ltsp|
|04:44||danalt has joined #ltsp|
|04:46||danalt has quit IRC|
|04:47||danalt has joined #ltsp|
|04:49||danalt has quit IRC|
|04:50||danalt has joined #ltsp|
Reported the nbd-client part of the problem at https://bugs.launchpad.net/ubuntu/+source/nbd/+bug/682328
|05:24||danalt has quit IRC|
|05:24||danalt has joined #ltsp|
|05:28||danalt has joined #ltsp|
|05:32||alkisg has quit IRC|
|06:01||BWMerlin has quit IRC|
|06:09||vmlintu_ has quit IRC|
|06:33||gorkhaan has quit IRC|
|06:33||gorkhaan has joined #ltsp|
|06:44||bobby_C has joined #ltsp|
|06:44||dlezcano has joined #ltsp|
|06:50||dlezcano has quit IRC|
|06:51||gorkhaan has quit IRC|
|06:58||gorkhaan has joined #ltsp|
|07:12||Trixboxer has joined #ltsp|
|07:24||Mobe_ has quit IRC|
|08:02||johnny has left #ltsp|
|08:02||johnny has joined #ltsp|
|08:13||Kicer86 has quit IRC|
|08:22||komunista1 has quit IRC|
|08:36||komunista has joined #ltsp|
|08:57||alkisg has joined #ltsp|
|09:19||Trixboxer has quit IRC|
|09:59||danalt has left #ltsp|
|10:01||danalt has joined #ltsp|
|10:02||danalt has quit IRC|
|10:23||ogra_ac_ is now known as ogra_ac|
|10:34||litlebuda has joined #ltsp|
|10:39||Mobe has joined #ltsp|
|10:49||komunista has quit IRC|
|10:52||komunista has joined #ltsp|
|11:26||pem__ has quit IRC|
|11:28||vmlintu_ has joined #ltsp|
|11:37||Kicer86 has joined #ltsp|
|11:46||vmlintu_ has quit IRC|
|12:55||mistik1 has joined #ltsp|
|12:58||alkisg has quit IRC|
|12:59||alkisg has joined #ltsp|
|13:14||chupadupa is now known as chupacabra|
|13:37||dlezcano has joined #ltsp|
|14:14||litlebuda has quit IRC|
|14:21||Selveste1 has quit IRC|
|14:21||Selveste1_ has joined #ltsp|
|14:43||shogunx has quit IRC|
|14:44||shogunx has joined #ltsp|
|14:46||chupacabra has quit IRC|
|14:54||dobber_ has joined #ltsp|
|15:03||Kicer86 has quit IRC|
|15:31||vagrantc has joined #ltsp|
|15:31||jhutchins_kc is now known as jhutchins|
|15:51||alkisg has quit IRC|
|16:16||bobby_C has quit IRC|
|16:44||ltspbot has joined #ltsp|
|16:45||ltspbot` has quit IRC|
|16:49||johnny has left #ltsp|
|17:06||komunista has quit IRC|
|17:12||dobber_ has quit IRC|
|17:16||Appiah has quit IRC|
|17:18||Appiah has joined #ltsp|
|17:31||ogra_ac_ has joined #ltsp|
|17:35||ogra_ac has quit IRC|
|17:40||shogunx has quit IRC|
|17:52||johnny has joined #ltsp|
|18:04||evil_root is now known as zz_evil_root|
|18:14||shogunx has joined #ltsp|
|18:59||mistik1_ has joined #ltsp|
|19:00||mistik1 has quit IRC|
|19:00||mistik1_ is now known as mistik1|
|19:18||rjune has quit IRC|
|19:43||chupacabra has joined #ltsp|
|19:50||litlebuda has joined #ltsp|
|19:54||Damianos has joined #ltsp|
|20:12||johnny has left #ltsp|
|20:25||ogra has quit IRC|
|20:25||ogra has joined #ltsp|
|20:27||vagrantc has quit IRC|
|21:02||RiXtEr has joined #ltsp|
|21:29||daya has joined #ltsp|
|21:31||zz_evil_root is now known as evil_root|
|21:35||evil_root is now known as zz_evil_root|
|22:05||johnny has joined #ltsp|
|22:15||litlebuda has quit IRC|
|22:18||sweetpi has joined #ltsp|
|22:24||alkisg has joined #ltsp|
|22:24||alkisg has joined #ltsp|
|22:35||sweetpi has quit IRC|
|22:35||daya has quit IRC|
|22:47||zz_evil_root is now known as evil_root|
|22:48||evil_root is now known as zz_evil_root|
|22:54||zz_evil_root is now known as evil_root|
|22:57||blahal-rix has joined #ltsp|
|22:57||RiXtEr has quit IRC|
|22:57||blahal-rix is now known as RiXtEr|
|23:48||vagrantc has joined #ltsp|
vagrantc: I believe that everything is working out of the box with the natty (and squeeze) nbd-client versions
So I think we can drop the poweroff -fp workarouds
...but we'll need to add "nbdroot=xxx" and "root=/dev/nbd0" in pxelinux.cfg/default, as specified in /usr/share/doc/nbd-client/README.Debian
This way all the nbd-related problems (sendsigs, not unmounting on shutdown etc) are handled by nbd itself, we don't need *any* code in ltsp at all for that anymore...
vagrantc, stgraber: Any objections on testing + commiting the dropping of poweroff -fp?
stgraber: along with the upstart scripts? (neither those are needed anymore, and they break the graceful stopping of other services...)