From: Dario Faggioli <dario.faggioli@citrix.com>
To: Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: Ian Campbell <Ian.Campbell@citrix.com>, xen-devel@lists.xen.org
Subject: Re: [OSSTest PATCH [RFC] 2/4] ts-fedora-install: added for installing fedora guests
Date: Fri, 13 Dec 2013 19:12:54 +0100 [thread overview]
Message-ID: <1386958374.3980.42.camel@Solace> (raw)
In-Reply-To: <21163.14674.870408.97251@mariner.uk.xensource.com>
[-- Attachment #1.1: Type: text/plain, Size: 3786 bytes --]
On ven, 2013-12-13 at 16:44 +0000, Ian Jackson wrote:
> Dario Faggioli writes ("[OSSTest PATCH [RFC] 2/4] ts-fedora-install: added for installing fedora guests"):
> > Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
> ...
> > + # Paths within a mirror are different depending on whether we are dealing
> > + # with an actual released distro, one in development, or one being tested
> > + # right before a release (Test Composes or RC-s, see
> > + # https://fedoraproject.org/wiki/Test_Results:Current_Installation_Test).
> > + my $releaseurl= "http://$c{FedoraMirrorHost}/$c{FedoraMirrorSubpath}/releases/$fedora_release/Fedora/$arch/os";
> > + my $develurl = "http://$c{FedoraMirrorHost}/$c{FedoraMirrorSubpath}/development/$fedora_release/$arch/os";
> > + my $stageurl = "http://dl.fedoraproject.org/pub/alt/stage/$fedora_release/Fedora/$arch/os";
>
> I'm not sure I like this kind of downloading of test OS code for each
> platform. This is sustainable for one distro (the Debian which most of
> our tests use), but if we need to maintain a local mirror for every
> test target OS the infrastructure is going to be a royal pain to
> maintain. And we'll be exposed to a much wider range of failures
> which will cause spurious test failures. This surely applies to
> release images - couldn't they just be stored in the osstest images
> directory ?
>
I'm not sure what "osstest images directory" is; I'll check. What I care
is for these jobs to keep being usable in standalone mode, if going that
way is not a problem wrt that, I think I can.
Also, this are not .iso or disk images, they're just a kernel and a
ramdisk, but I guess that does not make much of a difference.
I'll check what RH testcases do, as well as what Roger did for FreeBSD,
as I remember seeing something about downloading images and storing them
in the proper place in those patches too.
> OTOH if we are having a Fedora-specific flight for checking RCs, I
> think downloading things directly from the Fedora upstream is fine.
>
> > + my $fi_url = "$repourl/images/pxeboot";
> > + target_cmd($ho, <<END, 2000);
>
> target_cmd doesn't do set -e. Perhaps it should ?
>
Ok.
> > + wget --quiet -O /tmp/fi_kernel $fi_url/vmlinuz$pae
> > + wget --quiet -O /tmp/fi_initrd $fi_url/initrd$pae.img
>
> You shouldn't use /tmp really like this. Please use a
> flight-and-job-specific directory in ~.
>
And that would be for the sake of keeping the installer's kernel and
initrd and have them archived together with the logs?
I was under the impression that this won't be much useful, but I guess
it would, in case something goes wrong during installation and one wants
to debug... Is that the reason?
> > + my $install_cfg= <<END;
> > +name = '$gho->{Name}'
> > +# Fedora installer requires no less than 1GB RAM
> > +memory = 1024
> > +#
> > +kernel = "/tmp/fi_kernel"
> > +ramdisk = "/tmp/fi_initrd"
> > +extra = "repo=$repourl console=hvc0 text serial ks=$ks_url"
> > +#
> > +vif = [ 'mac=$gho->{Ether}' ]
> > +#
> > +on_poweroff = 'destroy'
> > +# the below is needed for allowing guest_await_reboot() to trigger
> > +on_reboot = 'preserve'
> > +on_crash = 'preserve'
>
> Perhaps there is other similar code that this could be combined with.
>
Ok, I'll see if I can factor a bit more (valid also for the other
comments that were expressed below this point for this patch).
Thanks and Regards,
Dario
--
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
next prev parent reply other threads:[~2013-12-13 18:12 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-12 22:53 [OSSTest PATCH [RFC] 0/4] New test case: Fedora PV guests Dario Faggioli
2013-12-12 22:53 ` [OSSTest PATCH [RFC] 1/4] Introducing Osstest/Fedora.pm Dario Faggioli
2013-12-13 16:33 ` Ian Jackson
2013-12-13 17:47 ` Dario Faggioli
2013-12-12 22:53 ` [OSSTest PATCH [RFC] 2/4] ts-fedora-install: added for installing fedora guests Dario Faggioli
2013-12-13 16:44 ` Ian Jackson
2013-12-13 18:12 ` Dario Faggioli [this message]
2013-12-13 18:24 ` Ian Jackson
2013-12-13 16:45 ` Ian Jackson
2013-12-13 17:36 ` Dario Faggioli
2013-12-12 22:53 ` [OSSTest PATCH [RFC] 3/4] sg-run-job: Fedora guest job Dario Faggioli
2013-12-12 22:53 ` [OSSTest PATCH [RFC] 4/4] make-flight: Fedora guest tests Dario Faggioli
2013-12-13 16:49 ` Ian Jackson
2013-12-13 17:32 ` Dario Faggioli
2013-12-13 17:34 ` Ian Jackson
2013-12-13 18:03 ` Dario Faggioli
2013-12-13 18:20 ` Ian Jackson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1386958374.3980.42.camel@Solace \
--to=dario.faggioli@citrix.com \
--cc=Ian.Campbell@citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).