Hi, there,
If lava in some place possible to find who cancel a job? Or use lavacli or manual cancel a job? Or for which detail reason, the job was canceled?
We are struggling to find why my job canceled sometimes, not sure someone not carefully do it or our external program by chance do it, especially when there are many people used the same master.
Regards, Lary
Hello,
the information is not stored in the database.
But you might have some information in the logs: /var/log/apache2/lava-server.log or /var/log/lava-server/gunicorn.log
Rgds
Le mer. 15 avr. 2020 à 09:28, Larry Shen larry.shen@nxp.com a écrit :
Hi, there,
If lava in some place possible to find who cancel a job? Or use lavacli or manual cancel a job?
Or for which detail reason, the job was canceled?
We are struggling to find why my job canceled sometimes, not sure someone not carefully do it or our external program by chance do it, especially when there are many people used the same master.
Regards,
Lary _______________________________________________ Lava-users mailing list Lava-users@lists.lavasoftware.org https://lists.lavasoftware.org/mailman/listinfo/lava-users
Hi, Remi,
I checked gunicorn log:
YES, if user cancel it by manual, we could see the url like next: gunicorn.log:[2020-04-08 18:26:12 +0200] [24700] [DEBUG] GET /scheduler/job/55985/cancel Unfortunately, no visited IP here. If by lavacli, we can get nothing.
But still we could not see the user, neither in lava-master.log nor Django.log.
But if it was not persisted in database as you suggested, I guess we really can’t get it. That’s fine, I just ask this question in case lava have this mechanism which I don’t know. Thanks.
From: Remi Duraffort remi.duraffort@linaro.org Sent: Wednesday, April 15, 2020 4:14 PM To: Larry Shen larry.shen@nxp.com Cc: lava-users@lists.lavasoftware.org Subject: [EXT] Re: [Lava-users] Audit log for user action?
Caution: EXT Email Hello,
the information is not stored in the database.
But you might have some information in the logs: /var/log/apache2/lava-server.log or /var/log/lava-server/gunicorn.log
Rgds
Le mer. 15 avr. 2020 à 09:28, Larry Shen <larry.shen@nxp.commailto:larry.shen@nxp.com> a écrit : Hi, there,
If lava in some place possible to find who cancel a job? Or use lavacli or manual cancel a job? Or for which detail reason, the job was canceled?
We are struggling to find why my job canceled sometimes, not sure someone not carefully do it or our external program by chance do it, especially when there are many people used the same master.
Regards, Lary _______________________________________________ Lava-users mailing list Lava-users@lists.lavasoftware.orgmailto:Lava-users@lists.lavasoftware.org https://lists.lavasoftware.org/mailman/listinfo/lava-usershttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.lavasoftware.org%2Fmailman%2Flistinfo%2Flava-users&data=02%7C01%7Clarry.shen%40nxp.com%7C310cbd87c47d46ba5c4a08d7e114e8f0%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C637225352240495944&sdata=LMgZ9VgJASxnA%2F6LnskiqUai5WflB1cNpjX16ytGyGE%3D&reserved=0
-- Rémi Duraffort LAVA Architect Linaro
When called by lavacli, you will at least guess the lavacli version by looking at the user-agent.
Le mer. 15 avr. 2020 à 10:50, Larry Shen larry.shen@nxp.com a écrit :
Hi, Remi,
I checked gunicorn log:
YES, if user cancel it by manual, we could see the url like next:
gunicorn.log:[2020-04-08 18:26:12 +0200] [24700] [DEBUG] GET /scheduler/job/55985/cancel
Unfortunately, no visited IP here.
If by lavacli, we can get nothing.
But still we could not see the user, neither in lava-master.log nor Django.log.
But if it was not persisted in database as you suggested, I guess we really can’t get it.
That’s fine, I just ask this question in case lava have this mechanism which I don’t know. Thanks.
*From:* Remi Duraffort remi.duraffort@linaro.org *Sent:* Wednesday, April 15, 2020 4:14 PM *To:* Larry Shen larry.shen@nxp.com *Cc:* lava-users@lists.lavasoftware.org *Subject:* [EXT] Re: [Lava-users] Audit log for user action?
*Caution: *EXT Email
Hello,
the information is not stored in the database.
But you might have some information in the logs: /var/log/apache2/lava-server.log or /var/log/lava-server/gunicorn.log
Rgds
Le mer. 15 avr. 2020 à 09:28, Larry Shen larry.shen@nxp.com a écrit :
Hi, there,
If lava in some place possible to find who cancel a job? Or use lavacli or manual cancel a job?
Or for which detail reason, the job was canceled?
We are struggling to find why my job canceled sometimes, not sure someone not carefully do it or our external program by chance do it, especially when there are many people used the same master.
Regards,
Lary
Lava-users mailing list Lava-users@lists.lavasoftware.org https://lists.lavasoftware.org/mailman/listinfo/lava-users https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.lavasoftware.org%2Fmailman%2Flistinfo%2Flava-users&data=02%7C01%7Clarry.shen%40nxp.com%7C310cbd87c47d46ba5c4a08d7e114e8f0%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C637225352240495944&sdata=LMgZ9VgJASxnA%2F6LnskiqUai5WflB1cNpjX16ytGyGE%3D&reserved=0
--
Rémi Duraffort
LAVA Architect
Linaro
OK, so if possible some audit log feature later in a long roadmap? So we can exactly know what happened to the system.
Yes, I see some history for device change, e.g. change tag, online, offline etc. But for others, when guys asked me what happened. Sometimes I answered: yes, I found this history for you, so it’s easy to debug something, while sometimes I had to answer: sorry, I don’t know.
From: Remi Duraffort remi.duraffort@linaro.org Sent: Wednesday, April 15, 2020 4:59 PM To: Larry Shen larry.shen@nxp.com Cc: lava-users@lists.lavasoftware.org Subject: Re: [EXT] Re: [Lava-users] Audit log for user action?
Caution: EXT Email When called by lavacli, you will at least guess the lavacli version by looking at the user-agent.
Le mer. 15 avr. 2020 à 10:50, Larry Shen <larry.shen@nxp.commailto:larry.shen@nxp.com> a écrit : Hi, Remi,
I checked gunicorn log:
YES, if user cancel it by manual, we could see the url like next: gunicorn.log:[2020-04-08 18:26:12 +0200] [24700] [DEBUG] GET /scheduler/job/55985/cancel Unfortunately, no visited IP here. If by lavacli, we can get nothing.
But still we could not see the user, neither in lava-master.log nor Django.log.
But if it was not persisted in database as you suggested, I guess we really can’t get it. That’s fine, I just ask this question in case lava have this mechanism which I don’t know. Thanks.
From: Remi Duraffort <remi.duraffort@linaro.orgmailto:remi.duraffort@linaro.org> Sent: Wednesday, April 15, 2020 4:14 PM To: Larry Shen <larry.shen@nxp.commailto:larry.shen@nxp.com> Cc: lava-users@lists.lavasoftware.orgmailto:lava-users@lists.lavasoftware.org Subject: [EXT] Re: [Lava-users] Audit log for user action?
Caution: EXT Email Hello,
the information is not stored in the database.
But you might have some information in the logs: /var/log/apache2/lava-server.log or /var/log/lava-server/gunicorn.log
Rgds
Le mer. 15 avr. 2020 à 09:28, Larry Shen <larry.shen@nxp.commailto:larry.shen@nxp.com> a écrit : Hi, there,
If lava in some place possible to find who cancel a job? Or use lavacli or manual cancel a job? Or for which detail reason, the job was canceled?
We are struggling to find why my job canceled sometimes, not sure someone not carefully do it or our external program by chance do it, especially when there are many people used the same master.
Regards, Lary _______________________________________________ Lava-users mailing list Lava-users@lists.lavasoftware.orgmailto:Lava-users@lists.lavasoftware.org https://lists.lavasoftware.org/mailman/listinfo/lava-usershttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.lavasoftware.org%2Fmailman%2Flistinfo%2Flava-users&data=02%7C01%7Clarry.shen%40nxp.com%7Cd8396fbe841440c8e95d08d7e11b3728%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C637225379327700963&sdata=%2FP0BBuWQ%2Ba2VrfemqoOSC4Mu3qsJ%2BqSsqvxWhEvdrvI%3D&reserved=0
-- Rémi Duraffort LAVA Architect Linaro
-- Rémi Duraffort LAVA Architect Linaro
Hello,
nothing like this is in the roadmap.
Rgds
Le mer. 15 avr. 2020 à 15:26, Larry Shen larry.shen@nxp.com a écrit :
OK, so if possible some audit log feature later in a long roadmap? So we can exactly know what happened to the system.
Yes, I see some history for device change, e.g. change tag, online, offline etc. But for others, when guys asked me what happened. Sometimes I answered: yes, I found this history for you, so it’s easy to debug something, while sometimes I had to answer: sorry, I don’t know.
*From:* Remi Duraffort remi.duraffort@linaro.org *Sent:* Wednesday, April 15, 2020 4:59 PM *To:* Larry Shen larry.shen@nxp.com *Cc:* lava-users@lists.lavasoftware.org *Subject:* Re: [EXT] Re: [Lava-users] Audit log for user action?
*Caution: *EXT Email
When called by lavacli, you will at least guess the lavacli version by looking at the user-agent.
Le mer. 15 avr. 2020 à 10:50, Larry Shen larry.shen@nxp.com a écrit :
Hi, Remi,
I checked gunicorn log:
YES, if user cancel it by manual, we could see the url like next:
gunicorn.log:[2020-04-08 18:26:12 +0200] [24700] [DEBUG] GET /scheduler/job/55985/cancel
Unfortunately, no visited IP here.
If by lavacli, we can get nothing.
But still we could not see the user, neither in lava-master.log nor Django.log.
But if it was not persisted in database as you suggested, I guess we really can’t get it.
That’s fine, I just ask this question in case lava have this mechanism which I don’t know. Thanks.
*From:* Remi Duraffort remi.duraffort@linaro.org *Sent:* Wednesday, April 15, 2020 4:14 PM *To:* Larry Shen larry.shen@nxp.com *Cc:* lava-users@lists.lavasoftware.org *Subject:* [EXT] Re: [Lava-users] Audit log for user action?
*Caution: *EXT Email
Hello,
the information is not stored in the database.
But you might have some information in the logs: /var/log/apache2/lava-server.log or /var/log/lava-server/gunicorn.log
Rgds
Le mer. 15 avr. 2020 à 09:28, Larry Shen larry.shen@nxp.com a écrit :
Hi, there,
If lava in some place possible to find who cancel a job? Or use lavacli or manual cancel a job?
Or for which detail reason, the job was canceled?
We are struggling to find why my job canceled sometimes, not sure someone not carefully do it or our external program by chance do it, especially when there are many people used the same master.
Regards,
Lary
Lava-users mailing list Lava-users@lists.lavasoftware.org https://lists.lavasoftware.org/mailman/listinfo/lava-users https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.lavasoftware.org%2Fmailman%2Flistinfo%2Flava-users&data=02%7C01%7Clarry.shen%40nxp.com%7Cd8396fbe841440c8e95d08d7e11b3728%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C637225379327700963&sdata=%2FP0BBuWQ%2Ba2VrfemqoOSC4Mu3qsJ%2BqSsqvxWhEvdrvI%3D&reserved=0
--
Rémi Duraffort
LAVA Architect
Linaro
--
Rémi Duraffort
LAVA Architect
Linaro
lava-users@lists.lavasoftware.org