Neil Williams: LAVA packages for Debian
Packaging LAVA for Debian unstable
with notes on other distributions
I ve been building packages for LAVA on Debian unstable for several months now and I ve been running LAVA jobs on the laptop and on devices in my home lab and on an ARMv7 arndale too.
Current LAVA installations use lava-deployment-tool which has only supported Ubuntu 12.04 LTS Precise Pangolin. There has been a desire in LAVA to move away from a virtual environment, to put configuration files in FHS compliant paths, to use standard distribution packages for dependencies and so to make LAVA available on more platforms than just precise. Packaging opens the door to installing LAVA on Debian, Ubuntu, Fedora and any other recent distribution. Despite LAVA currently being reliant on 12.04 Precise, some of the python dependencies of LAVA have been able to move forward using the virtual environment provided by builtout and pypi. This means that LAVA, as packaged, requires a newer base OS suite than precise for Ubuntu, the minimal base is Saucy Salamander 13.10 and for Debian it would be Jessie (testing) although there is currently a transition ongoing in Debian which means that uwsgi is not in testing and Debian unstable would be needed instead.
The work to migrate configuration snippets out of deployment-tool and to ensure that the tarball built using setuptools contains all of the necessary files for the package has already been done. The packaging itself is clean and most of the work is done upstream. There is, as ever, more to do but the packages work smoothly for single install LAVA servers where the dispatcher is on the same machine as the django web frontend.
The packages have also migrated to Django1.6, something which is proving difficult with the deployment-tool as it has not kept pace with the changes outside the virtual environment, even if other parts of LAVA have.
LAVA will be switching to packages for installation instead of deployment-tool and this will mean changes to how LAVA works outside the Cambridge lab. When the time comes to swich to packaging, the plan is to update deployment-tool so that it no longer updates /srv/lava/ but instead migrates the instance to packages.
Main changes
-
Configuration files move into
/etc/-
Device configuration files
/etc/lava-dispatcher/devices/ -
Instance configuration files
/etc/lava-server/
-
Device configuration files
-
Log files move into
/var/log/-
Adding logrotate support no more multi-Gb log files in
/srv/lava/
-
Adding logrotate support no more multi-Gb log files in
- Commitment to keeping the upstream code up to date with dependencies
- Support for migrating existing instances, using South.
-
Packaging helpers
- add devices over SSH instead of via a combination of web frontend and SSH.
- Developer builds with easily identifiable version strings, built as packages direct from your git tree.
-
New frontend
- Although django1.6 does not change the design of the web frontend at all, LAVA will take the opportunity to apply a bootstrap frontend which has greater support for browsers on a variety of devices, including mobile. This also helps identify a packaged LAVA from a deployment LAVA.
- Documentation and regular updates
official monthly release and any intervening updates will be made available for distributions to use for their own packaging. Additionally, Debian packages will be regularly built for use within LAVA and these will be available for those who choose to migrate from Ubuntu Precise to Debian Jessie. LAVA will assist maintainers who want to package LAVA for their distributions and we welcome patches from such maintainers. This can include changes to the developer build support script to automate the process of supporting development outside LAVA. Initially, LAVA will migrate to packaging internally, to prove the process and to smooth out the migration. Other LAVA instances are welcome to follow this migration or wait until the problems have been ironed out. The Issues
- Remote workers this is work to be completed during the migration to packaging within LAVA as well as pending work upstream on the internals of the connection between a remote worker and the master scheduler. Expect some churn in this area whilst the code is being finalised. A lava-worker package is being prepared which borrows enough code from lava-server to run the lava-scheduler-daemon on the remote worker, until such time as the remote worker communications are refactored.
- Integration there are plans to integrate some of the modules which LAVA uses which are not commonly packaged: linaro-dashboard-bundle and linaro-django-xmlrpc
- OpenID the certificates which underpin OpenID use with Launchpad have been removed in Debian and LAVA is currently investigating alternatives.
- json-schema-validator currently has a broken test suite, so this will need to be patched by LAVA to allow the package to build. The code may be replaced with a different validator if the issue persists.
- namespace handling the current package install is unnecessarily noisy with complaints about the lava namespace. This will need a fix but does not affect current operation.
- Unit tests LAVA is working hard to add a much larger coverage of internal unit tests. These use a temporary database which is not generally available during the build of a distribution package. LAVA is already running continuous integration tests to ensure that these tests continue to pass and the packages will gain documentation on how to run these tests after installation.
debhelper (>= 8.0.0) python python-all python-dev python-all-dev python-sphinx (>= 1.0.7+dfsg) python3-sphinx python-mocker python-setuptools python-versiontools(python-versiontools may disappear before the packages are finalised) In addition, to be able to install lava-server, these packages need to be built from tarballs released by Linaro (the list may shorten as changes upstream are applied)
linaro-django-pagination, python-django-restricted-resource (>= 0.2.7), lava-tool (>= 0.2), lava-utils-interface (>= 1.0), linaro-django-xmlrpc (>= 0.4), python-versiontools (>= 1.8), python-longerusername, linaro-dashboard-bundle (>= 1.10.2), lava-dispatcher (>= 0.33.3) lava-coordinator, lava-server-docThe list for lava-dispatcher is currently:
python-json-schema-validator, lava-tool (>= 0.4), lava-utils-interface, linaro-dashboard-bundle (>= 1.10.2),The packages available from my experimental repository are using a new packaging branch of lava-server and lava-dispatcher where we are also migrating the CSS to Bootstrap CSS. Installing LAVA on Debian unstable
$ sudo apt-get install emdebian-archive-keyring
Add the link to my experimental repository (amd64, i386, armhf & arm64) to your apt sources, e.g. by creating a file /etc/apt/sources.list.d/lava.list containing:
deb http://people.linaro.org/~neil.williams/lava sid main
Update with the new key
$ sudo apt-get update
It is always best to install postgresql first:
$ sudo apt-get install postgresql
There are then three options for the packages to install (Please be careful with remote worker setup, it is not suitable for important installations at this time.):
-
Single instance, server and dispatcher with recommended tools
apt-get install lava
Installs linaro-image-tools and guestfs tools. -
Single instance, server and dispatcher
apt-get install lava-server
Installs enough to run LAVA on a single machine, running jobs on boards on the same LAN. -
Experimental remote worker support
apt-get install lava-worker
Needs a normal lava-server installation to act as the master scheduler but is aimed at supporting a dispatcher and boards which are remote from that master.
/etc/apache2/sites-available/ but is not enabled by default. If you choose to use the packaged apache config, you can simply run:
$ sudo a2ensite lava-server
$ sudo apache2ctl restart
(If this is a fresh apache install, use a2dissite to disable to default configuration before restarting.)
Information on creating a superuser, adding devices and administering your LAVA install is provided in the README.Debian file in lava-server:
$ zless /usr/share/doc/lava-server/README.Debian.gz
Provisos and limitations
Please be aware that packaged LAVA is still a work-in-progress but do let us know if there are problems. Now is the time to iron out install bugs and other issues as well as to prepare LAVA packages for other distributions.
It will be a little while before the packages are ready for upload to Debian I ve got to arrange the download location and upload the dependencies first and some of that work will wait until more work has gone in upstream to consolidate some of the current dependencies.
Kerberos is a great protocol for single sign-on authentication. It's
supported by many protocols, allowing you to not have to enter a
password to each and every one of them; instead, the protocols behind
the scenes (not "just" Kerberos, but also the things that embed tickets,
such as GSSAPI, or the things that embed GSSAPI, such as SASL or SPNEGO)
use your ticket-granting-ticket to ask for security credentials for the
service you're trying to use, magic happens, and you're authenticated. I
I used to host my internet infrastructure at
Now that ZOMG has support for Opus, I find myself wondering how one
does the equivalent of vorbisgain, preferably without floating-point.
A new bug-fix release release 0.4.1 of
And done! It took me just 8 months to do this entire book project around
Python. From the first day I started writing to today, where I finally
publish and sell almost entirely myself this book. I'm really proud of
what I've achieved so far, as this was something totally new to me.
Doing all of that has been a great adventure, and I'll promise I'll write
something about that later on. A making of.
For now, you can enjoy reading the book and learn a bit more about Python. I
really hope it'll help you bring your Python-fu to a new level, and help you
build great projects!
Go check it out, and since this is first day of sale, enjoy 20% off by using
the offer code THGTP20.
There was quite the torrential downpour overnight. It woke me up, and it woke
Zoe up too, and at about 1:45am she ended up in bed with me. I think she
managed to invent a new
I am happy to announce the release of OASIS v0.4.3.
OASIS is a tool to help OCaml developers to integrate configure, build and install systems in their projects. It should help to create standard entry points in the source code build system, allowing external tools to analyse projects easily.
This tool is freely inspired by Cabal which is the same kind of tool for Haskell.
You can find the new release
As you can see the configuration also includes a launch script. This script ensures that slaves are set up as needed (provide all the packages and scripts that are required for building) and always get the latest configuration and scripts before starting to serve as Jenkins slave.
Now your setup should be ready for launching Jenkins slaves as needed:
NOTE: you can use the Instance Cap configuration inside the advanced Amazon EC2 Jenkins configuration section to place an upward limit to the number of EC2 instances that Jenkins may launch. This can be useful for avoiding surprises in your AWS invoices.
I've now generated a new GPG-key for myself:
As usual, I look at the application stats for
Anyway we're just working on evaluation and will finalize it in upcoming days. Of course you will know the results from Google on April 21st.
I was awarded the
Loanwords can often appear more insightful than they really are. How prescient of another culture to codify such a concept into a single word! They surely must have lofty and perceptive discussions if it was necessary to coin and codify one.
But whilst there is always the danger of over-inflating the currency of the loanword especially the compound one there must be a few that are worth the trouble.
One such term is fingerspitzengef hl. Literally meaning "finger-tips feeling" in German, it attempts to capture the idea of an intuitive sophistication, flair or instinct. Someone exhibiting fingerspitzengef hl would be able to respond appropriately, delicately and tactfully to certain things or situations.
since people keep talking to me about my RC bug fixing activities, I thought
it might be time again for a short report. to be honest, I mostly stopped my
almost daily work at some point in december, partly because the overall
number of RC bugs affecting both
I will try to report my Debian activities here. I am trying to retake them
and as I'm usually busy at