Discussion:
[Linaro-validation] How to deploy the LAVA system
zxmjiang
2017-03-20 05:50:36 UTC
Permalink
Hi Neil and all,
Currently from LAVA deployment of:
Now we installed the lava-server-2017.2 and lava-dispatcher-2017.2 on a server, from the system can use:
lava lava-dashboard-tool lava-dispatcher-slave lava-mount-masterfs lava-slave
lava-daemon lava-dispatch lava-master lava-publisher lava-tool
My question is:
1. How to use those command under linux to let it works as the picture shows ?
2. We try to use $lava-master, the log shows following error, seems the lava-server can't run as a sub-process, since from the git lava-server package there is no lava-server executive command installed, can you help it ?
File "/usr/local/bin/lava-master", line 4, in <module>
__import__('pkg_resources').run_script('lava-server==2017.2', 'lava-master')
File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 738, in run_script
File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 1499, in run_script
File "/usr/local/lib/python2.7/site-packages/lava_server-2017.2-py2.7.egg/EGG-INFO/scripts/lava-master", line 39, in <module>
main()
File "/usr/local/lib/python2.7/site-packages/lava_server-2017.2-py2.7.egg/EGG-INFO/scripts/lava-master", line 36, in main
return daemonise(PIDFILE, LOGFILE)
File "/usr/local/lib/python2.7/site-packages/lava_server-2017.2-py2.7.egg/lava_server/daemonise.py", line 97, in daemonise
child = Popen(args)
File "/usr/local/lib/python2.7/subprocess.py", line 711, in __init__
errread, errwrite)
File "/usr/local/lib/python2.7/subprocess.py", line 1343, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory


Thanks & Best Regards !
Senthil Kumaran S
2017-03-20 06:01:32 UTC
Permalink
Post by zxmjiang
lava lava-dashboard-tool lava-dispatcher-slave
lava-mount-masterfs lava-slave
lava-daemon lava-dispatch lava-master
lava-publisher lava-tool
1. How to use those command under linux to let it works as the picture shows ?
Except for 'lava-tool' you need not use any other command on a regular
basis. Most of them are services (in other words daemons) rather than
regular commands.
Post by zxmjiang
2. We try to use $lava-master, the log shows following error, seems the
lava-server can't run as a sub-process, since from the git lava-server
package there is no lava-server executive command installed, can you
help it ?
lava-server is not a command. As noted above it is a service.

In order to start lava-server, use the following command:

# service lava-server start

What is the operating system in which this setup runs? As of today we
only support Debian as seen from here -
https://staging.validation.linaro.org/static/docs/v2/installing_on_debian.html#installing-on-a-debian-based-distribution

Thank You.
--
Senthil Kumaran
http://www.stylesen.org/
http://www.sasenthilkumaran.com/
Neil Williams
2017-03-20 12:04:03 UTC
Permalink
On Mon, 20 Mar 2017 13:50:36 +0800 (CST)
Post by zxmjiang
Hi Neil and all,
Now we installed the lava-server-2017.2 and lava-dispatcher-2017.2 on
a server, from the system can use: lava
lava-dashboard-tool lava-dispatcher-slave lava-mount-masterfs
lava-slave lava-daemon lava-dispatch
lava-master lava-publisher lava-tool
"/usr/local/lib/python2.7/site-packages/lava_server-2017.2-py2.7.egg/EGG-INFO/scripts/lava-master",
/usr/local/ is *not* supported, it does *not* work. It has been at
least three years since LAVA ceased support for any and all deployments
directly from git or deployments using pypi or virtual environments or
any method of installation *except* on a Debian system, Jessie or later.

Note: As in the documentation, Ubuntu is explicitly *not* supported
since Trusty and there are no updates of LAVA for Trusty due to
problems with versions of packages within Trusty.

You must create a Debian Jessie virtual machine to run LAVA if you are
not running Debian. Ubuntu is not the same.
Post by zxmjiang
My question
is: 1. How to use those command under linux to let it works as the
picture shows ? 2. We try to use $lava-master, the log shows
following error, seems the lava-server can't run as a sub-process,
since from the git lava-server package there is no lava-server
executive command installed, can you help it ? File
"/usr/local/bin/lava-master", line 4, in <module>
__import__('pkg_resources').run_script('lava-server==2017.2',
'lava-master') File
"build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 738,
in run_script File
"build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 1499,
in run_script File
"/usr/local/lib/python2.7/site-packages/lava_server-2017.2-py2.7.egg/EGG-INFO/scripts/lava-master",
line 39, in <module> main() File
"/usr/local/lib/python2.7/site-packages/lava_server-2017.2-py2.7.egg/EGG-INFO/scripts/lava-master",
line 36, in main return daemonise(PIDFILE, LOGFILE) File
"/usr/local/lib/python2.7/site-packages/lava_server-2017.2-py2.7.egg/lava_server/daemonise.py",
line 97, in daemonise child = Popen(args) File
"/usr/local/lib/python2.7/subprocess.py", line 711, in __init__
errread, errwrite) File "/usr/local/lib/python2.7/subprocess.py",
line 1343, in _execute_child raise child_exception OSError: [Errno 2]
No such file or directory
Thanks & Best Regards !
--
Neil Williams
=============
http://www.linux.codehelp.co.uk/
Loading...