From: Ian Campbell Subject: Re: [PATCH OSSTEST v2] Allow per-host TFTP setup Date: Tue, 18 Mar 2014 11:21:32 +0000 Message-ID: <1395141692.12847.45.camel@kazak.uk.xensource.com> References: <1395138188-20176-1-git-send-email-ian.campbell@citrix.com> <21288.11220.746438.97436@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <21288.11220.746438.97436@mariner.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Jackson Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Tue, 2014-03-18 at 11:19 +0000, Ian Jackson wrote: > Ian Campbell writes ("[PATCH OSSTEST v2] Allow per-host TFTP setup"): > > I run osstest against machines which are in both the XenServer and > > XenClient administrative domains, and hence which have different > > TFTP servers, accessible locally via different NFS mounted paths. > > Thanks for this patch. > > Acked-by: Ian Jackson > > But I have some suggestions for improvements, too. Feel free to > ignore, or update the patch, or push and make followup changes: They sound good. I'll update the patch. > > + $ho->{Tftp} = { > > + Path => $c{"TftpPath_$tftpscope"} || $c{TftpPath}, > > + TmpDir => $c{"TftpTmpDir_$tftpscope"} || $c{TftpTmpDir}, > > + PxeDir => $c{"TftpPxeDir_$tftpscope"} || $c{TftpPxeDir}, > > + PxeGroup => $c{"TftpPxeGroup_$tftpscope"} || $c{TftpPxeGroup}, > > + PxeTemplates => $c{"TftpPxeTemplates_$tftpscope"} || $c{TftpPxeTemplates}, > > + DiBase => $c{"TftpDiBase_$tftpscope"} || $c{TftpDiBase}, > > What do you think of this: > > + $ho->{Tftp} = { }; > + $ho->{Tftp}{$_} = $c{"Tftp${_}_${tftpscope}"} || $c{"Tftp${_}"} > + foreach qw(Path TmpDir PxeDir PxeGroup PxeTemplates); > > ? OK. > > +TftpFoo_ and TftpFoo > > + > > + Describes various properties relating to Tftp in a given , > > + where a is a given subnet, DHCP server etc. Valid > > + properties are: > > + > > + Path The path to the root of the directory which is exposed by > > + the tftpserver (e.g. /tftpboot). > > + TmpDir A directory under `Path' to use for temporary files. > > + > > + PxeDir The path under `Path' to the PXE configuration directory > > + (e.g. pxelinux.cfg) > > + PxeGroup The Unix group which should own files under `PxeDir'. > > + PxeTemplates See TftpPxeTemplates > > + > > + DiBase The path under `Path' to the root of the debian installer > > + images. > > + > > + The is a host property which defaults to TftpDefaultScope > > + or "default". TftpFoo_default takes precedence of TftpFoo. > > This last sentence is a bit unclear. And the behaviour is subtle > (TftpFoo_default is `less defaulty' than plain TftpFoo). I would say > something like: > > For hosts in scope "default", TftpFoo_default (if set) takes > precedence over TftpFoo. TftpFoo is used when the setting Foo Sounds good, thanks. Ian.