At 2016-10-12 16:46:53, "Neil Williams" <neil.williams@linaro.org> wrote: >On 12 October 2016 at 09:34, kingboli <lijinbohehe@163.com> wrote: >> Hello everyone, >> Can you help me on below two questions? >> >> 1. 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. > >> 2. 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_maintenance_mode >https://staging.validation.linaro.org/api/help/#scheduler.put_into_online_mode > >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. > >-- > >Neil Williams >============= >neil.williams@linaro.org >http://www.linux.codehelp.co.uk/