Hello
I have installed a fresh 2017.12 in a docker and I hit two problem: - With the exception of lava-coordinator, all services (lava-master, lava-server, lava-slave, etc...) fail to start with: service lava-xxxx start lava-xxxx: unrecognized service All Other service successfully start (postgresql, apache2)
- I have then re-added old init scripts and when I add a worker with: "lava-server manage workers add lab-slave" I get: Traceback (most recent call last): File "/usr/bin/lava-server", line 78, in <module> main() File "/usr/bin/lava-server", line 74, in main execute_from_command_line(django_options) File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 367, in execute_from_command_line utility.execute() File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 359, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 294, in run_from_argv self.execute(*args, **cmd_options) File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 345, in execute output = self.handle(*args, **options) File "/usr/lib/python2.7/dist-packages/lava_server/management/commands/workers.py", line 77, in handle options["disabled"]) KeyError: 'disabled'
iNote that before I have successfully done commands like adding user or device-types
Regards
Hello Corentin,
1/ Do you have the service files like /lib/systemd/system/lava-master.service ?
2/ Fixed, see https://review.linaro.org/22804/
2017-12-04 16:23 GMT+01:00 LABBE Corentin clabbe@baylibre.com:
Hello
I have installed a fresh 2017.12 in a docker and I hit two problem:
- With the exception of lava-coordinator, all services (lava-master,
lava-server, lava-slave, etc...) fail to start with: service lava-xxxx start lava-xxxx: unrecognized service All Other service successfully start (postgresql, apache2)
- I have then re-added old init scripts and when I add a worker with:
"lava-server manage workers add lab-slave" I get: Traceback (most recent call last): File "/usr/bin/lava-server", line 78, in <module> main() File "/usr/bin/lava-server", line 74, in main execute_from_command_line(django_options) File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 367, in execute_from_command_line utility.execute() File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 359, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 294, in run_from_argv self.execute(*args, **cmd_options) File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 345, in execute output = self.handle(*args, **options) File "/usr/lib/python2.7/dist-packages/lava_server/ management/commands/workers.py", line 77, in handle options["disabled"]) KeyError: 'disabled'
iNote that before I have successfully done commands like adding user or device-types
Regards _______________________________________________ Lava-users mailing list Lava-users@lists.linaro.org https://lists.linaro.org/mailman/listinfo/lava-users
On Mon, Dec 04, 2017 at 04:33:53PM +0100, Remi Duraffort wrote:
Hello Corentin,
1/ Do you have the service files like /lib/systemd/system/lava-master.service ?
Yes
I also forgot to said that I run a Debian stretch
2/ Fixed, see https://review.linaro.org/22804/
Thanks, I will check it
2017-12-04 16:23 GMT+01:00 LABBE Corentin clabbe@baylibre.com:
Hello
I have installed a fresh 2017.12 in a docker and I hit two problem:
- With the exception of lava-coordinator, all services (lava-master,
lava-server, lava-slave, etc...) fail to start with: service lava-xxxx start lava-xxxx: unrecognized service All Other service successfully start (postgresql, apache2)
- I have then re-added old init scripts and when I add a worker with:
"lava-server manage workers add lab-slave" I get: Traceback (most recent call last): File "/usr/bin/lava-server", line 78, in <module> main() File "/usr/bin/lava-server", line 74, in main execute_from_command_line(django_options) File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 367, in execute_from_command_line utility.execute() File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 359, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 294, in run_from_argv self.execute(*args, **cmd_options) File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 345, in execute output = self.handle(*args, **options) File "/usr/lib/python2.7/dist-packages/lava_server/ management/commands/workers.py", line 77, in handle options["disabled"]) KeyError: 'disabled'
iNote that before I have successfully done commands like adding user or device-types
Regards _______________________________________________ Lava-users mailing list Lava-users@lists.linaro.org https://lists.linaro.org/mailman/listinfo/lava-users
-- Rémi Duraffort LAVA Team
On 4 December 2017 at 15:38, LABBE Corentin clabbe@baylibre.com wrote:
On Mon, Dec 04, 2017 at 04:33:53PM +0100, Remi Duraffort wrote:
Hello Corentin,
1/ Do you have the service files like /lib/systemd/system/lava-master.service ?
Yes
I also forgot to said that I run a Debian stretch
https://lava.codehelp.co.uk/scheduler/ is running lava-server 2017.12-1+stretch without issues.
debian@codehelp:~$ sudo lava-server manage check --deploy System check identified no issues (2 silenced).
$ dpkg -L lava-server |grep systemd /lib/systemd /lib/systemd/system /lib/systemd/system/lava-logs.service /lib/systemd/system/lava-master.service /lib/systemd/system/lava-publisher.service /lib/systemd/system/lava-server-gunicorn.service
$ systemctl list-unit-files | grep enabled |grep lava lava-logs.service enabled lava-master.service enabled lava-publisher.service enabled lava-server-gunicorn.service enabled lava-slave.service enabled
2/ Fixed, see https://review.linaro.org/22804/
Thanks, I will check it
2017-12-04 16:23 GMT+01:00 LABBE Corentin clabbe@baylibre.com:
Hello
I have installed a fresh 2017.12 in a docker and I hit two problem:
- With the exception of lava-coordinator, all services (lava-master,
lava-server, lava-slave, etc...) fail to start with: service lava-xxxx start lava-xxxx: unrecognized service All Other service successfully start (postgresql, apache2)
- I have then re-added old init scripts and when I add a worker with:
"lava-server manage workers add lab-slave" I get: Traceback (most recent call last): File "/usr/bin/lava-server", line 78, in <module> main() File "/usr/bin/lava-server", line 74, in main execute_from_command_line(django_options) File "/usr/lib/python2.7/dist-packages/django/core/
management/__init__.py",
line 367, in execute_from_command_line utility.execute() File "/usr/lib/python2.7/dist-packages/django/core/
management/__init__.py",
line 359, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/lib/python2.7/dist-packages/django/core/
management/base.py",
line 294, in run_from_argv self.execute(*args, **cmd_options) File "/usr/lib/python2.7/dist-packages/django/core/
management/base.py",
line 345, in execute output = self.handle(*args, **options) File "/usr/lib/python2.7/dist-packages/lava_server/ management/commands/workers.py", line 77, in handle options["disabled"]) KeyError: 'disabled'
iNote that before I have successfully done commands like adding user or device-types
Regards _______________________________________________ Lava-users mailing list Lava-users@lists.linaro.org https://lists.linaro.org/mailman/listinfo/lava-users
-- Rémi Duraffort LAVA Team
Lava-users mailing list Lava-users@lists.linaro.org https://lists.linaro.org/mailman/listinfo/lava-users
On 4 December 2017 at 15:23, LABBE Corentin clabbe@baylibre.com wrote:
Hello
I have installed a fresh 2017.12 in a docker and I hit two problem:
- With the exception of lava-coordinator, all services (lava-master,
lava-server, lava-slave, etc...) fail to start with: service lava-xxxx start lava-xxxx: unrecognized service All Other service successfully start (postgresql, apache2)
This could be a problem with your scripting.
lava-server has been removed.
Check with lava-server manage check --deploy
Also check
$ dpkg -L lava-server|grep systemd /lib/systemd /lib/systemd/system /lib/systemd/system/lava-logs.service /lib/systemd/system/lava-master.service /lib/systemd/system/lava-publisher.service /lib/systemd/system/lava-server-gunicorn.service
- I have then re-added old init scripts
Please don't do that. There are known problems with the old style init scripts, that's why those were removed.
https://lists.linaro.org/pipermail/lava-announce/2017-November/000041.html
and when I add a worker with: "lava-server manage workers add lab-slave" I get: Traceback (most recent call last): File "/usr/bin/lava-server", line 78, in <module> main() File "/usr/bin/lava-server", line 74, in main execute_from_command_line(django_options) File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 367, in execute_from_command_line utility.execute() File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 359, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 294, in run_from_argv self.execute(*args, **cmd_options) File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 345, in execute output = self.handle(*args, **options) File "/usr/lib/python2.7/dist-packages/lava_server/ management/commands/workers.py", line 77, in handle options["disabled"]) KeyError: 'disabled'
That is a bug which wasn't discovered in time.
https://review.linaro.org/#/c/22804/
iNote that before I have successfully done commands like adding user or device-types
Regards _______________________________________________ Lava-users mailing list Lava-users@lists.linaro.org https://lists.linaro.org/mailman/listinfo/lava-users