Hello Stevan,
Thanks for the help on that. I enabled the server side notifications, I can see them using a publisher + python on my host computer. Unfortunately lava-tool still doesn't return even when the job finishes....
Also, my server is running on a specific port so to access it I am using: lava-tool wait-job-events http://user@server:port/RPC2 It works perfectly well to submit jobs. I also checked that the port number 5500 is opened.
Is there anything else I should do on the lava-tool side to get this notifications ? Again I can receive them on the host using python but for some reason lava-tool doesn't work.
Thanks !
Loys
On Wed, Dec 13, 2017 at 4:47 PM, Stevan Radakovic < stevan.radakovic@linaro.org> wrote:
Hi Loys,
There's definitely bug with the message you get from the "submit-job --block" and we will open a ticket for this - wait-for-job does not exist it was replaced with wait-job-events long time ago.
For using it, you need to enable event notification on your server first. Please follow these instructions:
https://staging.validation.linaro.org/static/docs/v2/ advanced-installation.html#configuring-event-notifications
After that, using lava-tool, you can either submit and wait for the job events or track the events of the existing job. Example you provided is good for the latter example.
To submit and wait you can use: lava-tool wait-job-events --job-definition /path/to/job.yaml http://your.server/RPC2/
In either case, lava-tool should exit when it receives job 'completed' event from the server.
HTH,
On 12/13/2017 02:54 PM, Loys Ollivier wrote:
Hello everyone,
I am using lava-tool to monitor my jobs. Previously I used: $ lava-tool submit-job --block
Using version of lava-tool 0.23 I now have this message: --> This kind of polling is deprecated and will be removed in the next release. Please use "wait-for-job" command.
But "wait-for-job" doesn't exist. There is a "wait-job-events" option though. I tried this one and it doesn't return even once the job has finished. If I manually stop it and restart it with the same job number I get as output: --> Job already finished with status Complete.
Command I'm using: $ lava-tool wait-job-events --job-id 20 http://user@lava-server
Is there anything I'm doing incorrectly ? Or are you aware of this bug ?
Thanks !
-- Loys OLLIVIER
Lava-users mailing listLava-users@lists.linaro.orghttps://lists.linaro.org/mailman/listinfo/lava-users
-- Stevan Radaković | LAVA Engineer Linaro.org <www.linaro.org> │ Open source software for ARM SoCs