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



--