On Thursday 02 November 2017 01:16 PM, Alex Shi wrote:
>> $ sudo lava-server manage devices add --device-type lxc --description
>> "third lxc device" --worker "harshu.stylesen.org" lxc03
> 
> Could the worker be same with master machine?

Yes that is what I ve did in the above example, my worker
(harshu.stylesen.org) is same as my master - this is a single node
instance. To know what are the workers available visit
http://localhost/scheduler/allworkers or use the following command:

<snip>
$ sudo lava-server manage workers list
Workers:
* harshu.stylesen.org (8 devices) (master)
</snip>

> what the needed token for? and How I made it?

The token is the API token required in order to communicate (via
lava-tool or XMLRPC) with APIs that require authentication. The tokens
are available in http://localhost/api/tokens/ or alternatively can be
obtained via the following command:

$ sudo lava-server manage tokens list --user stylesen

> I add a file named lxc03.jinja2 with the same contents, but how I could
> know it's updated or not?

Visit this page http://localhost/scheduler/device/lxc03/devicedict to
see if it displays some values specially for hostname or alternatively
use the following command:

<snip>
$ sudo lava-server manage devices details lxc03
hostname   : lxc03
device_type: lxc
status     : Idle
health     : Pass
health job : True
description: third lxc device
public     : True
device-dict: True
worker     : harshu.stylesen.org
current_job: None
$
</snip>

If the device dictionary is not updated then you would get something
like the following:

<snip>
$ sudo lava-server manage devices details lxc04
CommandError: Unable to find device 'lxc04'
$
</snip>

> And if the devices added. How I do a smoking testing to see if lava
> could work? especially to run lkft.

You can submit a job using the web UI in this URL
http://localhost/scheduler/jobsubmit or use lava-tool to submit a job as
follows:

$ lava-tool submit-job
usage: lava-tool submit-job [-h] [--publish-artifacts]
                            [--artifacts-url ARTIFACTS_URL]
                            [--artifacts-path ARTIFACTS_PATH] [--block]
                            SERVER JSON_FILE

Thank You.
-- 
Senthil Kumaran S
http://www.stylesen.org/
http://www.sasenthilkumaran.com/

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
linaro-validation mailing list
linaro-validation@lists.linaro.org
https://lists.linaro.org/mailman/listinfo/linaro-validation

Reply via email to