Giter Site home page Giter Site logo

powerci's Introduction

Initial Machine Setup

This applies to the LAVA infrastructure i.e. Dispatcher and Scheduler

As for the KernelCI/PowerCI FrontEnd, a different virtual machine could be considered.

We herein assume the host machine (virtual or not) is Ubuntu 14+, with a sudoer user powerci, and a configured static IP address.

The machine name shall be lab-baylibre

preliminary packages and services installation

sudo apt-get install openssh-server vim gitk git-gui pandoc lynx terminator conmux minicom repo qemu gcc-arm-linux-gnueabi tree meld

some required packages like ser2net and tftp-hpa are part of the lava macro package.

Re-instate vim as the standard editor with:

sudo update-alternatives --config editor

Repo init

Make sure to create an ssh id_rsa.pub key for the powerci user, and add it to the various git repos used (baylibre and github)

mkdir -p /home/powerci/POWERCI && cd POWERCI

repo init -u [email protected]:mtitinger/powerci-manifests.git

repo sync

Lava installation

Adding the repository

According to the documentation, do the following:

sudo apt-get upgrade

wget http://images.validation.linaro.org/trusty-repo/trusty-repo.key.asc

sudo apt-key add trusty-repo.key.asc

sudo apt-get update

Installing the LAVA "full set"

sudo apt-get install lava

  • NFS is installed by the lava pkg, with exports defaulting to /var/lib/lava/dispatcher/tmp
  • TFTP-HPA is installed by the lava pkg, with exports defaulting to /var/lib/lava/dispatcher/tmp (see /etc/default/tftpd-hpa)

Interactive installation option

  • standalone server
  • Name "lab-baylibre"
  • Postgres port 5432
  • internet site config for email
  • fully qualified domain name: baylibre.com

LAVA fs-overlays

Some standard LAVA-debian files needs being simlinked to this repo, like for instance:

sudo ln -s ~/POWERCI/fs-overlay/etc/lava-dispatcher/device-types /etc/lava-dispatcher/device-types

check in fs-overlay to not miss anything, for instance:

General server branding

  • /etc/lava-server/settings.conf
  • /etc/apache2/sites-available/powerci.conf

Dispatcher Population

  • /etc/ser2net.conf
  • /etc/lava-dispatcher/device-types
  • /etc/lava-dispatcher/devices

Initial LAVA Server Administration

Apache site enabling

Query the active site with:

powerci@lab-baylibre:~$ sudo a2query -s 000-default (enabled by site administrator)

You may now disable the default site, and enable the lava instance:

sudo a2dissite 000-default

sudo a2ensite lava-server.conf

sudo service apache2 restart

Create the LAVA superuser account

sudo lava-server manage createsuperuser --username lab-admin --email=[email protected]

password: powerci

for debug only, it is recommended to settings the log level for the server to 'debug', in file /etc/init.d/lava-server

Users and Groups

see https://wiki.debian.org/LAVA

LAB Setup

This section is aimed on the dispatcher and Lab configuration.

This dispatcher may be on a different machine, physically connected to the boards.

See setup-lab.md

Posting Jobs, using LAVA

This section is about using scripts and lava-tools to posting jobs.

This requires the dispatcher to be setup, and will describe what to do as a user.

See user-jobs.md

powerci's People

Watchers

Marc TITINGER avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.