Le jeu. 17 juin 2021 à 09:35, Hedy Lamarr <lamarrhedy97@gmail.com> a écrit :
Python 3.7.3 (default, Jan 22 2021, 20:04:44)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> from lava_scheduler_app.models import Device
>>> Device.objects.get(hostname="dragonboard5").get_state_display()
'Running'
>>>

I'm using 202103, I just remember I'm trying some multinode jobs, resubmit, cancel, and quickly click the fail button.
But I can't reproduce it on other devices, maybe it's a very low probability issue.

And above is the result from the console, could I also modify the device to "Idle" in this console, not just view it?
Oups :)

Sorry I miss C&P:
>>> Device.objects.filter(hostname="qemu-01").update(state=Device.STATE_IDLE)
 

On Thu, Jun 17, 2021 at 2:47 PM Remi Duraffort <remi.duraffort@linaro.org> wrote:
Hello,


this is definitively a bug (I guess a race condition in the scheduler maybe). Which version are you using?

You will have to use the django command line

sudo lava-server manage shell
>>> from lava_scheduler_app.models import Device
>>> Device.objects.get(hostname="qemu-01").get_state_display()

Replace qemu-01 by the name of your device.


Any idea what happens?


Rgds

Le mer. 16 juin 2021 à 03:34, Hedy Lamarr <lamarrhedy97@gmail.com> a écrit :
Dear all,

I don't know what operation I have done, but when a device does not have any running job, I still see the device is in running status.
I just saw this 1 time, maybe it's a bug or just bad luck.
Anyway, I can't reproduce it on other devices, so it's ok.
But, could you teach me to reset the status to make the device work again? Do we have some method to reset the status from "Running" to "Idle", or any api if we don't have an interface on the UI?
image.png
Thanks,
Hedy Lamarr




_______________________________________________
Lava-users mailing list
Lava-users@lists.lavasoftware.org
https://lists.lavasoftware.org/mailman/listinfo/lava-users


--
Rémi Duraffort
TuxArchitect
Linaro


--
Rémi Duraffort
TuxArchitect
Linaro