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 | |
02:52 | <alkisg> stgraber: about the poweroff -fp and reboot -fp upstart scripts: aren't those just to prevent nbd-client from closing the nbd device?
| |
02:52 | /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...
| |
02:53 | If KILLALL="false" and no NBD_DEVICE[0]=xxx devices are set in /etc/nbd-client, then everything works fine out of the box.
| |
02:54 | 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
| |
02:54 | (use nbd1 in ltsp, I mean)
| |
03:00 | We could probably tell Wouter, the nbd maintainer, to not include a NBD_DEVICE[0]=xxx entry in the default configuration file, that would be the best solution afaik
| |
03:01 | OK, filing two bugs for this, one in nbd and one in ltsp...
| |
03:01 | <vagrantc> would even be better to not ship a default configuration file at all for nbd
| |
03:01 | seeing as there's no reasonable default
| |
03:03 | <alkisg> 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...
| |
03:04 | <vagrantc> alkisg: what's the exact situation?
| |
03:04 | alkisg: i didn't catch the entire conversation
| |
03:05 | <alkisg> vagrantc: just what I wrote above, we didn't have a conversiation, but let me rewrite it better (gimme a few minutes)
| |
03:09 | <vagrantc> in fact, it would be nice to get a /etc/nbd-client.d directory or some such
| |
03:09 | <alkisg> dpkg-reconfigure nbd-client states:
| |
03:09 | "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."
| |
03:09 | The default in /etc/nbd-client is
| |
03:09 | KILLALL="false"
| |
03:09 | which means that the initscript should ignore any unknown nbd-client devices.
| |
03:09 | Unfortunately, in the same example file,
| |
03:09 | NBD_DEVICE[0]=/dev/nbd0
| |
03:09 | is used, so /dev/nbd0 is always killed even if the admin didn't manually specify any nbd connections.
| |
03:09 | 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.
| |
03:09 | vagrantc: something like this ^^^ . stgraber tried to work around that problem with upstart scripts, but that breaks the shutdown process.
| |
03:10 | (so poweroff -fp should no longer be needed anywhere)
| |
03:12 | dlezcano has joined #ltsp | |
03:15 | komunista has joined #ltsp | |
03:16 | <vagrantc> the sendsigs.omit stuff doesn't handle it? works on debian.
| |
03:17 | <alkisg> vagrantc: which one? The one from nbd-client?
| |
03:18 | That would work only if nbd-client was started as a service
| |
03:18 | But we start it from the initramfs, so it doesn't put the devices in sendsigs.omit
| |
03:19 | 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
| |
03:20 | 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
| |
03:20 | (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 | |
03:21 | <vagrantc> alkisg: gah. irssi froze on me...
| |
03:21 | <alkisg> Oops
| |
03:21 | (11:17:54 AM) alkisg: vagrantc: which one? The one from nbd-client?
| |
03:21 | (11:18:11 AM) alkisg: That would work only if nbd-client was started as a service
| |
03:21 | (11:18:29 AM) alkisg: But we start it from the initramfs, so it doesn't put the devices in sendsigs.omit
| |
03:21 | (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
| |
03:21 | (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
| |
03:21 | (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)
| |
03:22 | <vagrantc> anyways, on debian there are several things...
| |
03:22 | <alkisg> Yet another way to fix it would be to add a _netdev_ line in /etc/fstab, the nbd-client initscript ignores those too
| |
03:23 | <vagrantc> echo KILLALL=false >> $ROOT/etc/nbd-client ; echo OMITKILL=/dev/nbd0 >> $ROOT/etc/nbd-client
| |
03:23 | there's an ltsp-build-client plugin that adds those
| |
03:23 | basically works
| |
03:24 | <alkisg> Hmm where? In the debian dir? I don't have those in my chroot...
| |
03:24 | Ah right, in Debian only
| |
03:24 | <vagrantc> right
| |
03:24 | <alkisg> $%^&* :)
| |
03:24 | <vagrantc> well, while not default, sometimes i think debian has better support for NBD than ubuntu sometimes :)
| |
03:24 | <alkisg> We need better sync between debian and ubuntu ltsp...
| |
03:25 | (as in, drop any other nbd stuff that ubuntu has and only keep the debian ones :D)
| |
03:26 | <vagrantc> OMITKILL was added mid 2009
| |
03:26 | same with KILLALL=false
| |
03:26 | <alkisg> vagrantc: unsetting NBD_DEVICE[0] should also work
| |
03:26 | instead of OMITKILL
| |
03:28 | But if Wouter removed NBD_DEVICE[0]=/dev/nbd0 from the default configuration file, then no LTSP workaround would be needed at all
| |
03:29 | <vagrantc> 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 | |
03:29 | <alkisg> Yes
| |
03:32 | <vagrantc> 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 ... | |
03:35 | <vagrantc> alkisg: hm... at least in sid, nbd-client defaults to NBD_DEVICE[0]=
| |
03:35 | <alkisg> vagrantc: I have squeeze here, I don't think the packages are different..?!
| |
03:35 | Ah no wait I have squeeze for the server
| |
03:35 | Was looking at the client chroot, which is an ubuntu one...
| |
03:38 | * vagrantc is happy to hear that alkisg has some debian around | |
03:38 | <alkisg> vagrantc: yup, fixed in ubuntu natty too. So OK that would be a bug report worth filing if it wasn't already fixed :D
| |
03:39 | Now to report a bug about the upstart scripts in ubuntu-ltsp...
| |
03:39 | 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
| |
03:40 | 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
| |
03:40 | ...and now I'm trying to make it an `nbd -c partition` server (for booting 1 single fat client without ltsp) as well ;)
| |
03:41 | The nbd-client package works fine for remote booting, we shouldn't need any nbd* related code in ltsp at all...
| |
03:42 | <vagrantc> indeed it does.
| |
03:42 | at least, i've been using it
| |
03:44 | <alkisg> Urm the squeeze package has "KILLALL=true" though :(
| |
03:44 | *sid
| |
03:45 | <vagrantc> we could seed a debconf default
| |
03:45 | or manually tweak it
| |
03:46 | <alkisg> I think the maintainer would accept code for nbd-client not to shut down network connections for /
| |
03:47 | So maybe the solution should be inside nbd-client, and not related to ltsp at all...
| |
03:47 | <vagrantc> indeed, that would be cleaner
| |
03:47 | <alkisg> Btw, /lib/init/rw/sendsigs.omit.d/nbd-client ==> shouldn't that be in /var/run?
| |
03:48 | <vagrantc> alkisg: there are several different implementations
| |
03:48 | i tried to support as many as i knew about
| |
03:48 | <alkisg> No I meant the code in the nbd-client initscript, not in ltsp
| |
03:49 | <vagrantc> i know that works in debian
| |
03:52 | 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).
| |
03:52 | <alkisg> Ah, so it's not obsolete... ok
| |
03:53 | 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
| |
03:54 | Looking if that already works, or if it doesn't, why...
| |
03:55 | <vagrantc> alkisg: were you able to get an aufs mount just using nbd-client's hooks?
| |
03:55 | <alkisg> vagrantc: No i'm using a rw partition for nbd-server
| |
03:55 | I.e. a single fat client with no aufs
| |
03:55 | <vagrantc> ah!
| |
03:56 | * vagrantc did that recently with armhf tests | |
03:56 | <vagrantc> 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 | |
04:05 | <alkisg> I think nbd copy on write should also work, without aufs...
| |
04:07 | <vagrantc> wouter said it was pretty slow
| |
04:07 | <alkisg> 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 | |
04:07 | <vagrantc> 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 | |
05:06 | <alkisg> 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 | |
23:55 | <alkisg> vagrantc: I believe that everything is working out of the box with the natty (and squeeze) nbd-client versions
| |
23:55 | So I think we can drop the poweroff -fp workarouds
| |
23:55 | ...but we
| |
23:56 | ...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
| |
23:57 | 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...
| |
23:57 | vagrantc, stgraber: Any objections on testing + commiting the dropping of poweroff -fp?
| |
23:58 | stgraber: along with the upstart scripts? (neither those are needed anymore, and they break the graceful stopping of other services...)
| |