You sure can.

As long as you generate the lava dashboard bundle JSON format (which is documented and there are lots of examples) you can just XML-RPC send them with any language. From shell you can use the lava-tool program to do it.

Best regards
ZK


2014-06-04 12:54 GMT+02:00 Chisanovici, IonutX <ionutx.chisanovici@intel.com>:
Hi Neil,

Thanks a lot for the help.
Now, the second question.
Let's assume that I don't want to do my builds inside the kvm environment for some personal reasons :).
Having my builds times how can I import these results in the dashboard ?
I want to have the following scenario: on the physical Fedora20 desktop machine, I do my builds, measure the builds times and then send the results in some automatic way to the lava server dashboard (maybe using the dashboard api/xmlrpc/json ?)
How can I achieve this ? Is there any documentation or examples ?

Cheers,
Ionut C

-----Original Message-----
From: linaro-validation-bounces@lists.linaro.org [mailto:linaro-validation-bounces@lists.linaro.org] On Behalf Of Neil Williams
Sent: Wednesday, June 04, 2014 1:36 PM
To: linaro-validation@lists.linaro.org
Subject: Re: [Linaro-validation] LavaServer - adding Fedora as a new device

On Wed, 4 Jun 2014 09:33:57 +0000
"Chisanovici, IonutX" <ionutx.chisanovici@intel.com> wrote:

> Hi,
>
> I'm new/beginner with lava.
> I recently installed a lava server on one Ububtu 12.04 machine.

:-) We're in the process of migrating to 14.04 / Debian Jessie support via packaging rather than virtual environments and deployment-tool, this may or may not make things easier for you. (Fedora packages are possible but someone needs to maintain them but you don't actually need to install LAVA on Fedora to be able to test Fedora in LAVA.)

See
http://playground.validation.linaro.org/static/docs/installation.html

> I'm planning the use the lava server to see the duration time of some
> "builds" that will be performed on another Fedora 20 desktop machine.
> My question is: is there any way to add the Fedora 20 machine as a
> device in the lava server and then to setup a bundle stream ? If yes,
> how can I do it ?

Maybe.

The device is the easy bit, it would just be a kvm device type.
Creating the device type and the bundle stream can be done via the admin interface of your current install. (Login as the superuser created by the install.)

https://validation.linaro.org/static/docs/deployment-tool.html#creating-an-instance-of-lava

You would need to create a Fedora image and test that inside LAVA running on Ubuntu or Debian. You wouldn't want a standard installer image for that, you'd need a bootable KVM image which is preconfigured and has working networking etc. This would be the same as running a build on a Fedora machine as LAVA would run the test inside a KVM image anyway. i.e. you'll need a Fedora image for this use case whichever way you do it. Such a Fedora KVM image could be run on any of the existing LAVA instances, if you request permission to submit jobs to those. If you have an image which will boot Fedora from the qemu-system-x86 command, that should work.

I'm currently preparing some documentation on creating such images using Debian or Ubuntu but I have no idea how to do it for Fedora.

I'm not aware of anyone having such images and the LAVA developers are mainly Ubuntu / Debian users, so experience with RPMs or Fedora images is somewhat absent.

There are also the dummy devices, but that won't give you a clean build environment, so could easily lead to unreliable results. Equally, to be sure you have reproducible data, you would want the machine running the test to not be doing any other tasks, so a desktop machine is likely to be a poor choice. Any number of background tasks would affect your timing. If you do want to proceed with that, a dummy_ssh device could work.

http://playground.validation.linaro.org/static/docs/dummy-deploy.html#configuration-dummy-ssh

A Fedora image running on a dedicated (Ubuntu/Debian) machine as a kvm device type would be the best option, if you can find / create a Fedora KVM image which works with qemu.

--


Neil Williams
=============
http://www.linux.codehelp.co.uk/


_______________________________________________
linaro-validation mailing list
linaro-validation@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-validation