Thanks, I have applied it to our lab and no crash until now.

Regards

2018-06-20 17:21 GMT+02:00 Remi Duraffort <remi.duraffort@linaro.org>:
Hello Corentin,

I believe that this has been fixed by https://git.linaro.org/lava/lava.git/commit/?id=934fdb6b9e354867813442eb69b14538d874e8a7

We haven't released any version yet that does include that patch.


Regards

2018-06-20 17:13 GMT+02:00 Corentin Labbe <clabbe@baylibre.com>:
Hello

Since our upgrade to 2018.4 we experience lots of lava-logs crash with the following trace in lava-logs.log

2018-06-20 13:43:08,964    INFO Saving 1 test cases
2018-06-20 13:43:16,614   DEBUG PING => master
2018-06-20 13:43:16,618   DEBUG master => PONG(20)
2018-06-20 13:43:19,524    INFO Saving 21 test cases
2018-06-20 13:43:29,535    INFO Saving 62 test cases
2018-06-20 13:43:37,983   DEBUG PING => master
2018-06-20 13:43:37,985   DEBUG master => PONG(20)
2018-06-20 13:43:39,541    INFO Saving 3 test cases
2018-06-20 13:43:58,009   DEBUG PING => master
2018-06-20 13:43:58,010   DEBUG master => PONG(20)
2018-06-20 13:44:01,770    INFO Saving 9 test cases
2018-06-20 13:44:01,771   ERROR [EXIT] Unknown exception raised, leaving!
2018-06-20 13:44:01,771   ERROR 'bool' object has no attribute 'pk'
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/lava_server/management/commands/lava-logs.py", line 181, in handle
    self.main_loop()
  File "/usr/lib/python3/dist-packages/lava_server/management/commands/lava-logs.py", line 232, in main_loop
    self.flush_test_cases()
  File "/usr/lib/python3/dist-packages/lava_server/management/commands/lava-logs.py", line 217, in flush_test_cases
    TestCase.objects.bulk_create(self.test_cases)
  File "/usr/lib/python3/dist-packages/django/db/models/manager.py", line 85, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/django/db/models/query.py", line 441, in bulk_create
    self._populate_pk_values(objs)
  File "/usr/lib/python3/dist-packages/django/db/models/query.py", line 404, in _populate_pk_values
    if obj.pk is None:
AttributeError: 'bool' object has no attribute 'pk'
2018-06-20 13:44:02,109    INFO [EXIT] Disconnect logging socket and process messages
2018-06-20 13:44:02,109   DEBUG [EXIT] unbinding from 'tcp://0.0.0.0:5555'
2018-06-20 13:44:02,185    INFO Saving 9 test cases
2018-06-20 13:44:02,186   ERROR [EXIT] Unknown exception raised, leaving!
2018-06-20 13:44:02,186   ERROR 'bool' object has no attribute 'pk'
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/lava_server/management/commands/lava-logs.py", line 201, in handle
    self.flush_test_cases()
  File "/usr/lib/python3/dist-packages/lava_server/management/commands/lava-logs.py", line 217, in flush_test_cases
    TestCase.objects.bulk_create(self.test_cases)
  File "/usr/lib/python3/dist-packages/django/db/models/manager.py", line 85, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/django/db/models/query.py", line 441, in bulk_create
    self._populate_pk_values(objs)
  File "/usr/lib/python3/dist-packages/django/db/models/query.py", line 404, in _populate_pk_values
    if obj.pk is None:
AttributeError: 'bool' object has no attribute 'pk'
2018-06-20 13:44:02,186    INFO Saving 9 test cases

Any idea on how to fix this ?
Thanks
Regards

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




--
Rémi Duraffort
LAVA Team