After the security hotfix, a number of other security changes are being made.

One which will affect developers running unit tests involves the permissions of /etc/lava-server/instance.conf

Each installation of lava-server will set the permissions of this file to 0o640 and the owner to the LAVA_DB_USER configuration value (by default, named lavaserver). This is to protect production instances as this file contains the database password.

​-rw-r----- 1 lavaserver lavaserver 181 Jun 25 08:59 /etc/lava-server/instance.conf
Developers need to ensure that the user running the unit tests is now part of this group, e.g.

$ sudo adduser <username> lavaserver

Otherwise, a permission error will be raised when trying to create the devel database used by the lava-server unit tests:

PermissionError: [Errno 13] Permission denied: '/etc/lava-server/instance.conf'

See also https://review.linaro.org/#/c/26068/

--

Neil Williams
=============
neil.williams@linaro.org
http://www.linux.codehelp.co.uk/