Hi Loys,

There's auth-add command which is used to add credentials for authenticatation of lava-tool to the lava-server instance. But if you can submit a job via lava-tool you've probably already done that.

Are you receiving no output after submitting the job via lava-tool wait-job-events?

It's possibly a bug in lava-tool I'm also seeing job completed event missing when trying it out locally. I'll investigate some more and file a bug.

lava-tool exits when it receives job completed event, that's the most likely reason that it hangs.

Cheers,

On 12/14/2017 03:35 PM, Loys Ollivier wrote:
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 list
Lava-users@lists.linaro.org
https://lists.linaro.org/mailman/listinfo/lava-users

-- 
Stevan Radaković | LAVA Engineer
Linaro.org <www.linaro.org> │ Open source software for ARM SoCs



--
Loys OLLIVIER
Baylibre


-- 
Stevan Radaković | LAVA Engineer
Linaro.org <www.linaro.org> │ Open source software for ARM SoCs