AmitKsaha GSocNotes

=On-Demand Fedora Build Service Project Notes=

These are my personal notes. (--Amitksaha 23:57, 3 April 2012 (UTC))

Overview and The Need
On-Demand build service seeks to build Live and installation images for developers, testers and consumers of Fedora Linux.

During the testing of Fedora releases, test images are often useful as smoke tests before full TC/RC composes, as baselines for specific test days or for automated installation testing in AutoQA. The idea is to make an on-demand Web-based build service which users/developers can use to make custom Fedora based distributions.

The service would be capable of building and hosting images (boot iso, installation DVDs and live images) made up of builds from stable repositories in addition to side repos containing specific builds from both updates-testing and koji builds that have yet to be pushed to any repos. The service will also also have a RESTful API which will make it accessible from command-line clients as well.

The toolchain for the installer creation will be changing from Fedora 18. While working on this project, I shall keep this in mind and discuss with the mentor how to best keep a provision for incorporating the usage of the newer/updated tools causing a minimum disruption of the code base of the build service.

Any relevant experience you have
As the creator and maintainer of the Fedora Scientific Spin, I am well aware of the LiveCD/DVD creation tool chain.

I am also knowledgeable about creating local repositories (side repositories) and pulling in packages from there into the installer/Live CD. I am currently exploring building installation images.

How do you intend to implement your proposal

 * Creation of side-repositories

As a first step, I am experimenting with creating a local repository (side repo) with builds of packages, which are not yet available in the main (either updates/updates-testing or Koji). So far, I have experimented with creating a Live CD having packages from this repository. The next step is to attempt to create installer images.


 * Web-based Interface and Job delegation

The next step would be to implement an interface (web-based) whereby the user can select the packages he/she wants to be in the installer/live CD. If these packages are available in the main, they are taken from there, else a side repository is built using the packages from updates/updates-testing or Koji. Once the packages are all available, a kickstart file (for Live images) and other necessary information will be generated at the master node. The master node then delegates this job to a job queue. The job queue management system will be responsible for handing over the jobs to a free build node.


 * Image Hosting 

Once the image is built successfully, the image is pushed by the slave to an image hosting provider along with the logs.


 * Notification

On successful/unsuccessful build, an email is sent to the user with appropriate information. If the build was successful, a link is sent to the user to download the image and logs. In case of a build failure, the build logs are sent to the user so that the cause of the error is known.

Final deliverable of the proposal at the end of the period

 * The build service running as Python web application on the master node.


 * Client build services running on designated build nodes


 * A REST API to the build service


 * Fedora RPMs: The master node build service and client side services will be made available as RPMs.

A rough timeline for your progress

 * Current - May 21: Implementing an automated script which if given a list of packages, retrieves the ones not available in the main and creates a side-repository, and building the web interface.


 * May 21 - June 10: Finalize the image creation scripts and have a system containing a master node and a single build node in place. Work on implementing the client service which will run on the build node.


 * June 28 - Mid-term evaluation: Evaluate and implement a job queueing system and formalize a way to distribute build jobs. Formalize the Image hosting node specifications - FTP/HTTP interface.


 *  July 20 - August 10: REST API implementation to the build service (running off master node), final testing and documentation.

Mentor
Tim Flink