[10:01] <itomas> hello, could anyone help with a problem with a thin client not booting due to nbd_server problems?
[10:01] <itomas> thx
[12:27] <alkisg> stgraber: please do the following changes to the ltsp packaging:
[12:27] <alkisg> * debian/ltsp-client-core.install:client/initramfs/hooks/ltsp usr/share/initramfs-tools/hooks
[12:27] <alkisg> - debian/ltsp-client-core.install:client/initramfs/scripts/ltsp_nbd usr/share/initramfs-tools/scripts
[12:27] <alkisg> - debian/rules:cp $(CURDIR)/client/initscripts/ltsp-setup $(CURDIR)/debian/ltsp-client-core.ltsp-client-setup.init
[12:27] <alkisg> ...we won't be using ltsp_nbd and ltsp-setup anymore :)
[12:27] <alkisg> (and if vagrantc wants he can completely remove ltsp-setup)
[12:28] <alkisg> Ah and: - rules:	dh_installinit --name=ltsp-client-setup --no-start -u"start 32 S ."
[14:13] <stgraber> alkisg: ok, I'll have a look
[14:50] <stgraber> alkisg: so should I remove all of these you listed above?
[14:51] <alkisg> stgraber: yes
[14:51] <alkisg> The line with the star * is a modification
[14:51] <alkisg> hooks/ltsp_nbd renamed to hooks/ltsp
[14:51] <stgraber> alkisg: right, I did that one already I think (in the latest PPA build)
[14:52] <alkisg> So the known problems for now are:
[14:52] <alkisg> 1) broken default SCREEN_07, I'm fixing it now,
[14:53] <alkisg> 2) no nbd-proxy wrapper, will do that next,
[14:53] <alkisg> 3) borked shutdown, we'll need again upstart jobs for reboot/shutdown, but not the old ones, new ones to do nbd-client -d; echo o > sysrq trigger etc
[14:53] <alkisg> So that no nbd-server processes are left on the server
[14:54] <alkisg> As now that nbd-server is not started from inetd, it takes 2 hours for the connections to get killed
[14:54] <stgraber> ok, I can restore the old ones and add nbd-client -d
[14:55] <alkisg> Right, although it would be nice if they could somehow wait a bit until the ssh + epoptes connections are closed, I'll see if I can find a clean way for that
[14:56] <alkisg> Killing epoptes should do it, not sure about ssh
[14:58] <alkisg> pkill -f '^epoptes-client \+m'
[15:02] <stgraber> alkisg: http://paste.ubuntu.com/841781/
[15:02] <stgraber> oops
[15:03] <stgraber> http://paste.ubuntu.com/841784/
[15:03] <stgraber>  /dev/mapp will be replaced by /dev/nbd btw
[15:04] <stgraber> http://paste.ubuntu.com/841786/
[15:04] <alkisg> stgraber: hmmm if nbd-proxy is killed, then nbd-client will cause a disk access error, no?
[15:05] <stgraber> probably indeed, I guess I'll need to move it to a separate kill after nbd-client
[15:05] <alkisg> Also, exec reboot won't work unless you cache it first, better use the REISUB magic
[15:05] <alkisg> And I'm using `exec -a` to run epoptes-client, so killall won't work, please use the pkill I wrote above
[15:06] <alkisg> echo o > /proc/sysrq-trigger
[15:06] <alkisg> I've tested that that works even without a root nbd connection active
[15:08] <stgraber> alkisg: http://paste.ubuntu.com/841792/
[15:09] <alkisg> I think killall isn't available in thin chroots, let me see if I have one...
[15:09] <stgraber> alkisg: I guess these two should be moved upstream actually and applied to the overlay at boot time
[15:09] <alkisg> stgraber: ah, yes, right
[15:09] <alkisg> So leave them to me, I'll put them to init-ltsp.d/common
[15:09] <alkisg> or /ubuntu, better
[15:11] <stgraber> alkisg: because of an overlayfs bug, you'll need to call 'initctl reload-configuration || true' after writing the jobs to /etc/init/
[15:11] <stgraber> alkisg: or actually, after doing any change to /etc/init
[15:11] <alkisg> stgraber: err why? It appears to work fine so far
[15:11] <alkisg> We do that in the init=/sbin/init-ltsp phase, right?
[15:12] <stgraber> ah right, doing it before starting init works indeed, sorry ;)
[15:12] <alkisg> :)
[15:12] <stgraber> the bug only appears when init is already started
[15:12] <alkisg> Yeah I would worry if we were to do that
[15:13] <alkisg> So once I commit the default screen fix (really soon), ltsp will be bootable again, so a new package will be nice.
[15:13] <stgraber> ok, just ping me when you need it
[15:13] <alkisg> ty
[16:42] <alkisg> stgraber: I fixed many problems, I think it's time for a new package if you please.
[16:42] <alkisg> Next goal, nbd-proxy-wrapper :)
[16:43] <stgraber> alkisg: ok, uploading one now
[16:43] <alkisg> ty
[16:43] <stgraber> alkisg: next time you push something to trunk, can you do "bzr tag current --delete" before "bzr push"?
[16:44] <stgraber> alkisg: current shouldn't exist in the LP branch, it's just a local tag I use for snapshots ;) but it requires a commit to drop it
[16:45] <alkisg> Sure
[16:45] <alkisg> In about an hour, along with the nbd-proxy wrapper script
[16:48] <stgraber> alkisg: uploaded