[lava-docker] host health-check image on slave (e.g. http-server-container)

Description

The recent issues with downloads from github for the health-checks shows that it makes sense to host the limited/well-known set of images on the dispatcher itself.

We can still clone initially from github (no change in workflow), but do it when we compose the slave containers. E.g. put it in a simple (nginx or even python webserver) on port 8888. Ip/URL is the dispatcher IP as specified in the lab config.

Environment

None

Activity

Show:

Corentin Labbe 
September 30, 2019 at 12:59 PM

merged in lava-docker

Corentin Labbe 
June 5, 2019 at 2:16 PM

lava-docker master now support the hosting.

So I propose that each slave upgrade to latest version with the healtcheck activated and  the DNS server activated with "healthcheck set to IP of the slave".

When all slaves will be upgraded, we can easily change the master (it is just a sed, no restart needed)

Corentin Labbe 
May 28, 2019 at 1:02 PM

Yes, all slave should host healhtchecks. Note that I forgot that devices are out of docker. So having a DNS server is mandatory.

A simple dnsmasq is enough.

Jan-Simon Moeller 
May 28, 2019 at 12:49 PM
(edited)

Problem is that the healthchecks are per device-type. So it is an all-labs or nothing option. right ?

Jan-Simon Moeller 
May 28, 2019 at 12:48 PM

I think that is a good option.

Fixed

Details

Assignee

Reporter

Labels

Contract ID

Components

Affects versions

Priority

Created May 28, 2019 at 10:53 AM
Updated October 15, 2019 at 8:53 PM
Resolved September 30, 2019 at 12:59 PM