package: fai
version: 3.0

Hi,

a dedicated build method for fai-enabled vservers now exists in vservers-svn:
http://svn.linux-vserver.org/viewvc.py/util-vserver/trunk/scripts/vserver-build.fai?view=markup
and will hopefully released in util-vserver .211

The needed changes in fai have been send to the mailinglist but not to the 
BTS, they are here: 
http://www.mail-archive.com/linux-fai%40rrz.uni-koeln.de/msg03756.html

Currently the build method in vserver has the following problems:

- obsolete old path for FAI_CONFIGDIR and FAI_NFSROOT as default
- relying on sams branch, doesnt work with fai 3.0 (I have no idea whats 
exactly needed to make it work...)
- relying on the fai nfsroot to exist. I very often deploy vservers with fai 
without using a nfsroot and just using softupdate. So this is kind of a 
regression.
- possible more ;)

Sam, I think you could greatly help if you could describe what changes are 
_really_ needed in fai to make vserver-build.fai work...


regards,
        Holger

Log from the discussion on #vserver, which made me notice this:

<daniel_hozac> mugwump: i've committed the fai to the svn now with a few fixes 
(check for nfsroot, removing the directories in killprocs, probably something 
else i forgot).
<-- phreak`` has quit (Quit: leaving)
--> phreak`` ([EMAIL PROTECTED]) has joined #vserver
<h01ger> daniel_hozac, whats fai in this context?
<daniel_hozac> h01ger: Debian's fully automatic installation, or whatever it's 
called :)
--- _[PUPPETS]Gonzo is now known as [PUPPETS]Gonzo
<h01ger> daniel_hozac, interesting. i'm an active fai developer :) so what 
code did you commit to vservers (?) svn?
<h01ger> and mugwump used to hang around in #fai too :)
<h01ger> and i maintain my vservers with fai :)
<meandtheshell> h01ger: 
http://svn.linux-vserver.org/viewvc.py/util-vserver/ :)
<h01ger> daniel_hozac, and where there exactly? which path?
<daniel_hozac> it's a fai build method.
<daniel_hozac> trunk/scripts/vserver-build.fai
<daniel_hozac> https://savannah.nongnu.org/patch/?5058
<daniel_hozac> h01ger: opinions appreciated :)
<h01ger> FAI_NFSROOT and FAI_CONFIGDIR use hardcoded and deprecated paths (?) 
<h01ger> mugwump, daniel_hozac: have you tested this with fai 3.0, released 
sometime last week?
<h01ger> ah, nor hardcoded
<daniel_hozac> i haven't tested it at all.
<h01ger> each time i see /usr/local in FAI_NFSROOT||_CONFIGDIR I get a 
heart-attack. i reported this stupid bug in 2003 and it was fixed last month. 
after three years of nagging.
<daniel_hozac> hehe.
<h01ger> thats why first screamed and then read further. they are at least not 
hardcoded...
<h01ger> also this looks suspicious to me:
<h01ger>  echo "*** Looks like you don't have the patched FAI."
<h01ger>     echo "*** get it from 
svn://svn.debian.org/svn/fai/people/mugwump/vserver"
<daniel_hozac> how so?
<h01ger> cause it should work with the unpatched fai?!
<daniel_hozac> should it? would you be able to try?
* daniel_hozac doesn't have any Debian hosts available to him.
<daniel_hozac> i have no idea what mugwump's fai changes from vanilla.
* h01ger neither. but i just check, the test fails with fai_3.0
<h01ger> checked
<daniel_hozac> right, i suppose that's the idea.
<daniel_hozac> but if that was commented, would it work?
<daniel_hozac> it being the build method.
<h01ger> i have no idea, as i dont know what feature mugwump added
<h01ger> also i'm unhappy about the hardcoded tmpfs mounting for the vserver - 
i usually disable this for my vservers (as 16mb /tmp is way to little)
<daniel_hozac> 19:58 < h01ger> cause it should work with the unpatched fai?!
<daniel_hozac> that is just temporary for the build though.
<daniel_hozac> surely a 64 MiB /tmp should suffice for building a guest?
<h01ger> daniel_hozac, yes. but its hard to say if it will work, if i dont 
know what changes mugwump has in his branch.
<h01ger> daniel_hozac, for building thats fine. didnt see that
<h01ger> mugwump, i also dislike that this needs a setup fai nfsroot. i 
heavily use fai softupdate and i often dont even have a nfsroot...
<daniel_hozac> h01ger: so what would you change? :)
<h01ger> daniel_hozac, so this build method will show up in vserver-utils one 
day?
<daniel_hozac> one day very soon.
<daniel_hozac> i'd really want to release 0.30.211 next week.
<h01ger> daniel_hozac, i dont know why its needed. atm i'm looking into 
replacing the custom fai-live-cd build scripts (which also rely on the 
nfsroot) with the (new) live-package from debian, which is a generic 
infrastructure to build live cds. and i promised to look at the munin-vserver 
plugins today. so i wont look much further into vserver-build.fai ;-)
<daniel_hozac> h01ger: ok, so how would you build guests with fai?
<h01ger> with the debootstrap method. then i just run "fai softupdate" and be 
done
<h01ger> i have a script for this, which prepares the vserver a tiny bit after 
building, so i agree, a build-method makes sense. but the current 
implementation looks like quite a hack to me :-/
<daniel_hozac> i do kind of agree :)
<h01ger> and mugwump also only send a mail to the fai list and didnt report it 
as a bug to the bts. thats probably why the patch has been overseen...
<h01ger> filing a bug now..
<h01ger> daniel_hozac, do you mind if i attach this log to the bugreport i'm 
writing?
<daniel_hozac> not at all, it's already public on irc.13thfloor.at ;)

Attachment: pgp51as5awtCN.pgp
Description: PGP signature

Reply via email to