13
LCU14 BURLINGAME Neil Williams, Tyler Baker, LCU14 Managing a LAVA LAB using the Debian packages

LCU14 400 - Managing a LAVA Lab Using New Debian Packages

  • Upload
    linaro

  • View
    391

  • Download
    2

Embed Size (px)

DESCRIPTION

LCU14 400 - Managing a LAVA Lab Using New Debian Packages --------------------------------------------------- Speaker: Neil Williams, Tyler Baker, Date: September 18, 2014 --------------------------------------------------- ★ Session Summary ★ This session will provide a summary of the process to install, update and manage LAVA within a LAVA LAB. We will also discuss how the LAVA LAB in Cambridge is managed and any thoughts or problems we know were experienced when the LAB upgraded from Ubuntu 12.04 to Debian Jessie. --------------------------------------------------- ★ Resources ★ Zerista: http://lcu14.zerista.com/event/member/137767 Google Event: https://plus.google.com/u/0/events/cf405nl1mi12l118haa1pf10k1s Video: https://www.youtube.com/watch?v=FzyMPZda9KM&list=UUIVqQKxCyQLJS6xvSmfndLA Etherpad: http://pad.linaro.org/p/lcu14-400 --------------------------------------------------- ★ Event Details ★ Linaro Connect USA - #LCU14 September 15-19th, 2014 Hyatt Regency San Francisco Airport --------------------------------------------------- http://www.linaro.org http://connect.linaro.org

Citation preview

Page 1: LCU14 400 - Managing a LAVA Lab Using New Debian Packages

LCU14 BURLINGAME

Neil Williams, Tyler Baker, LCU14

Managing a LAVA LAB using the Debian packages

Page 2: LCU14 400 - Managing a LAVA Lab Using New Debian Packages

● Debian Packages● What are the supported releases?● How do I install?● How do I upgrade?

● Initial Deployment● How do I manage my instance?● New salt configuration

● What changed?● Why?

● Demo: Automated LAVA install

● What’s in each release?● What’s next● Q/A

Agenda

Page 3: LCU14 400 - Managing a LAVA Lab Using New Debian Packages

● Debian● Jessie● Sid

● Ubuntu● Trusty (14.04)● Unicorn (14.10)

● Upstream packages● In Jessie, Sid, and Unicorn● Trusty installation

● you must add an alternate apt source● deb http://people.linaro.org/~neil.williams/ubuntu/ trusty main● apt-get install postgresql before lava

● Architectures● armhf (Finally!)● amd64● arm64 (Experimental)

What are the supported releases?

Page 4: LCU14 400 - Managing a LAVA Lab Using New Debian Packages

● apt-get install postgresql lava (amd64)● apt-get install postgresql lava-server (armhf, arm64, amd64)

● Installation requires interaction without preseed● Single, or distributed installation● Instance name● Postgresql port

● Configure apache2● If the default configuration is acceptable you can enable by entering the following

● a2dissite 000-default● a2ensite lava-server.conf● service apache2 reload

● Create superuser● lava-server manage createsuperuser

● You will be prompted for user, e-mail and password

● Login to your new instance● http://127.0.0.1

How do I install?

Page 5: LCU14 400 - Managing a LAVA Lab Using New Debian Packages

● The entire system● apt-get update● apt-get install lava-server lava-server-doc lava-dispatcher

● The server● apt-get update● apt-get install lava-server lava-server-doc

● The dispatcher● apt-get update● apt-get install lava-dispatcher

How do I upgrade?

Page 6: LCU14 400 - Managing a LAVA Lab Using New Debian Packages

● Start/Stop/Restart● service lava-server start/stop/restart

● Dispatcher Configuration● /etc/lava-dispatcher/lava-dispatcher.conf

● Device and Device Type● /etc/lava-dispatcher/devices/● /etc/lava-dispatcher/device-types/

● (If you want to override)● Scheduler Logs

● /var/log/lava-server/lava-scheduler.log● Server Media

● /var/lib/lava-server/default/media/● TFTP/NFS/TMP Directory

● /var/lib/lava/dispatcher/tmp/● Source Code

● /usr/lib/python2.7/dist-packages/lava_*

How do I manage my instance?

Page 7: LCU14 400 - Managing a LAVA Lab Using New Debian Packages

● Add Device Helper● /usr/share/lava-server/add_device.py Usage: add_device.py devicetype hostname [-p pduport] [-t telnetport]

● PDU Daemon● Why was this created?● How do I use it?● How can I extend it

How do I manage my instance?

Page 8: LCU14 400 - Managing a LAVA Lab Using New Debian Packages

LAVA installing LAVA

Demo: Automated LAVA install

Page 9: LCU14 400 - Managing a LAVA Lab Using New Debian Packages

● Simplified● No dependance on custom modules● Most dependencies are now enforced by apt● TFTP and NFS are configured by package not salt

● Upgrades● pkg.latest for lava-*

● External tools● Add apt sources for the following

● linaro-image-tools● lava-android-test

● Code for the the LAVA Lab Configuration● http://git.linaro.org/lava/lava-lab.git

Salt Configuration

Page 10: LCU14 400 - Managing a LAVA Lab Using New Debian Packages

● What’s in the current release?● 2014.07

● http://releases.linaro.org/14.07/components/lava

● Monthly cadence● Updates are pushed out first week of each month

● Run the latest and greatest from the development channel● deb http://images.validation.linaro.org/staging-repo/ sid main● Recommend you use a staging server for monitoring ‘bleeding-edge’ code

Releases

Page 11: LCU14 400 - Managing a LAVA Lab Using New Debian Packages

● Discussion on LAB migration● Q&A for those that have a functional LAB that need to upgrade

● Where are other packages?● Looking for package maintainers

What’s next

Page 12: LCU14 400 - Managing a LAVA Lab Using New Debian Packages

THANK YOU

Page 13: LCU14 400 - Managing a LAVA Lab Using New Debian Packages

More about Linaro Connect: connect.linaro.org Linaro members: www.linaro.org/membersMore about Linaro: www.linaro.org/about/