Hi Lava users,
I just updated lava from 2016.12 to 2017.6-1. And I found my health-check job failed(uncomplete) after the update. Here is the result logs before: https://pastebin.com/KWAnYQvD and after: https://pastebin.com/mqXDfR3H
I checked the log and think the cause for the issue is: ``` case: job definition: lava error_msg: constants section not present in the device config. error_type: Configuration result: fail ```
What I have done: * Try to find the "constants section" with no luck. * Looked at the logs in /var/lava-server/ and didn't find the log specific for the reason of this. * Asked IRC channel and ask, answered by codehelp(thanks:)). Then tried to replace my device-type config in /etc/lava-server/dispatcher-config/device-types with x86.jinja2 and the error message is the same.
Any input would by much appreciated, thank you.
Regards, -Michael Chen
On 21 August 2017 at 00:50, Michael Chen tsejen.tw@gmail.com wrote:
Hi Lava users,
I just updated lava from 2016.12 to 2017.6-1. And I found my health-check job failed(uncomplete) after the update. Here is the result logs before: https://pastebin.com/KWAnYQvD and after: https://pastebin.com/mqXDfR3H
I checked the log and think the cause for the issue is:
case: job definition: lava error_msg: constants section not present in the device config.
constants is a section added by base.jinja2 so this would likely arise due to a locally modified device-type template which either does not extend base.jinja2 or has an error in the syntax which prevents the constant block being expressed.
https://git.linaro.org/lava/lava-server.git/tree/lava_scheduler_app/tests/de...
See
Developing using device-type templates https://staging.validation.linaro.org/static/docs/v2/development-intro.html#...
error_type: Configuration result: fail
What I have done: * Try to find the "constants section" with no luck.
base.jinja2
- Looked at the logs in /var/lava-server/ and didn't find the log specific
for the reason of this.
- Asked IRC channel and ask, answered by codehelp(thanks:)). Then tried to
replace my device-type config in /etc/lava-server/dispatcher-config/device-types with x86.jinja2 and the error message is the same.
Any input would by much appreciated, thank you.
Regards, -Michael Chen
Lava-users mailing list Lava-users@lists.linaro.org https://lists.linaro.org/mailman/listinfo/lava-users
Hi Neil,
Thank you very much for the help! It turns out the base.jinja2 we're using needs a update. There is no constants section in our old base.jinja2. After updated the file, the test job went smoothly.
We appreciate your help. It saved our day!
Regards, -Michael Chen
On 21 August 2017 at 14:58, Neil Williams neil.williams@linaro.org wrote:
On 21 August 2017 at 00:50, Michael Chen tsejen.tw@gmail.com wrote:
Hi Lava users,
I just updated lava from 2016.12 to 2017.6-1. And I found my health-check job failed(uncomplete) after the update. Here is the result logs before: https://pastebin.com/KWAnYQvD and after: https://pastebin.com/mqXDfR3H
I checked the log and think the cause for the issue is:
case: job definition: lava error_msg: constants section not present in the device config.
constants is a section added by base.jinja2 so this would likely arise due to a locally modified device-type template which either does not extend base.jinja2 or has an error in the syntax which prevents the constant block being expressed.
https://git.linaro.org/lava/lava-server.git/tree/lava_ scheduler_app/tests/device-types/base.jinja2#n63
See
Developing using device-type templates https://staging.validation.linaro.org/static/docs/v2/ development-intro.html#index-2
error_type: Configuration result: fail
What I have done: * Try to find the "constants section" with no luck.
base.jinja2
- Looked at the logs in /var/lava-server/ and didn't find the log
specific
for the reason of this.
- Asked IRC channel and ask, answered by codehelp(thanks:)). Then tried
to
replace my device-type config in /etc/lava-server/dispatcher-config/device-types with x86.jinja2 and the error message is the same.
Any input would by much appreciated, thank you.
Regards, -Michael Chen
Lava-users mailing list Lava-users@lists.linaro.org https://lists.linaro.org/mailman/listinfo/lava-users
--
Neil Williams
neil.williams@linaro.org http://www.linux.codehelp.co.uk/
lava-users@lists.lavasoftware.org