Dear all,
I need to get "jobs logs" using lavacli. To do that, I use the following command : lavacli jobs logs <job_id> I can perform this operation with a user that has a profile "superuser".
We have also users with restricted permissions ( they can only submit jobs using lavacli ), and I would like them to get logs using lavacli.
So, I have consulted in the Lava django administration page, the users permission that can be set, but I could not find which option could allow a "basic user" to get log jobs using lavacli.
Is it possible to allow a user with "basic profile" to do that ?
If yes, with user permission have to be set ?
Best regards
Philippe Begnic
Hello,
if a user can see a job in the web UI it can access to the logs through the xmlrpc api. So if a job is: * public: any user can grab the logs * private: only the user can grab the logs * group: only users of the group can grab the logs.
Cheers.
Le jeu. 17 janv. 2019 à 14:06, Philippe BEGNIC philippe.begnic@st.com a écrit :
Dear all,
I need to get "jobs logs" using lavacli. To do that, I use the following command : lavacli jobs logs <job_id> I can perform this operation with a user that has a profile "superuser".
We have also users with restricted permissions ( they can only submit jobs using lavacli ), and I would like them to get logs using lavacli.
So, I have consulted in the Lava django administration page, the users permission that can be set, but I could not find which option could allow a "basic user" to get log jobs using lavacli.
Is it possible to allow a user with "basic profile" to do that ?
If yes, with user permission have to be set ? Best regards
Philippe Begnic
Lava-users mailing list Lava-users@lists.lavasoftware.org https://lists.lavasoftware.org/mailman/listinfo/lava-users
On 1/17/19 4:10 PM, Remi Duraffort wrote: Hello,
if a user can see a job in the web UI it can access to the logs through the xmlrpc api. So if a job is: * public: any user can grab the logs * private: only the user can grab the logs * group: only users of the group can grab the logs.
You are right, jobs with visibility set to "public" can be seen with lavacli. Thanks for your answer.
Philippe
Cheers.
Le jeu. 17 janv. 2019 à 14:06, Philippe BEGNIC <philippe.begnic@st.commailto:philippe.begnic@st.com> a écrit : Dear all,
I need to get "jobs logs" using lavacli. To do that, I use the following command : lavacli jobs logs <job_id> I can perform this operation with a user that has a profile "superuser".
We have also users with restricted permissions ( they can only submit jobs using lavacli ), and I would like them to get logs using lavacli.
So, I have consulted in the Lava django administration page, the users permission that can be set, but I could not find which option could allow a "basic user" to get log jobs using lavacli.
Is it possible to allow a user with "basic profile" to do that ?
If yes, with user permission have to be set ?
Best regards
Philippe Begnic
_______________________________________________ Lava-users mailing list Lava-users@lists.lavasoftware.orgmailto:Lava-users@lists.lavasoftware.org https://lists.lavasoftware.org/mailman/listinfo/lava-users
-- Rémi Duraffort LAVA Team
lava-users@lists.lavasoftware.org