On 12 October 2016 at 09:34, kingboli lijinbohehe@163.com wrote:
Hello everyone, Can you help me on below two questions?
- I did email notification settings for sending emails after job complete
or incomplete. How can I get whole logs (where are logs?) about email sending process? I need to debug email sending.
LAVA uses django which just uses local settings for your mail transport agent, probably exim4 by default in Jessie. Configuring exim4 for your local email setup is outside the scope of this list or the LAVA documentation. What you can test is that sending mail from the command line on the master needs to work, then the django processes should be able to send email as well. So try the mail program directly on the command line of the master, as the lavaserver user.
- I want to use script to control device state periodically. How can I set device to maintenance state using command, like lava-tool
command?
lava-tool does not support this but XML-RPC calls are available. See the api/help/ pages on your localhost or https://staging.validation.linaro.org/api/help/
https://staging.validation.linaro.org/api/help/#scheduler.put_into_maintenan... https://staging.validation.linaro.org/api/help/#scheduler.put_into_online_mo...
Taking devices in and out of maintenance mode frequently is unnecessary churn. LAVA is not a booking system so think carefully about your lab design so that devices are available for automated submissions more often than not.