TestPostgresListenerService - test_handles_missing_system_handler_onnotification

Bug #1990871 reported by Alexsander de Souza
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
MAAS
Triaged
Medium
Unassigned
3.3
Triaged
Medium
Unassigned

Bug Description

http://maas-ci.internal:8080/job/maas-tester/755/consoleText

[2022-09-23T16:19:02.875Z] ======================================================================
[2022-09-23T16:19:02.875Z] FAIL: maasserver.tests.test_listener.TestPostgresListenerService.test_handles_missing_system_handler_on_notification
[2022-09-23T16:19:02.875Z] maasserver.tests.test_listener.TestPostgresListenerService.test_handles_missing_system_handler_on_notification
[2022-09-23T16:19:02.875Z] ----------------------------------------------------------------------
[2022-09-23T16:19:02.875Z] testtools.testresult.real._StringException: Traceback (most recent call last):
[2022-09-23T16:19:02.875Z] testtools.testresult.real._StringException: Seeds: {{{MAAS_RAND_SEED=e62cc1488766e376 PYTHONHASHSEED=1166233394}}}
[2022-09-23T16:19:02.875Z] Twisted logs: {{{Listening for database notifications.Register Channel sys_test_eof0eoUnregister Channel sys_test_eof0eoConnection closed.}}}
[2022-09-23T16:19:02.875Z]
[2022-09-23T16:19:02.875Z] Traceback (most recent call last):
[2022-09-23T16:19:02.875Z] File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1418, in _inlineCallbacks
[2022-09-23T16:19:02.875Z] result = g.send(result)
[2022-09-23T16:19:02.875Z] File "/run/build/checkout/src/maasserver/tests/test_listener.py", line 86, in wait_notification
[2022-09-23T16:19:02.875Z] returnValue(notice)
[2022-09-23T16:19:02.875Z] File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1362, in returnValue
[2022-09-23T16:19:02.875Z] raise _DefGen_Return(val)
[2022-09-23T16:19:02.875Z] twisted.internet.defer._DefGen_Return: Notify(9429, 'sys_test_eof0eo', 'payload-1zyfwp')
[2022-09-23T16:19:02.875Z]
[2022-09-23T16:19:02.875Z] During handling of the above exception, another exception occurred:
[2022-09-23T16:19:02.875Z]
[2022-09-23T16:19:02.875Z] Traceback (most recent call last):
[2022-09-23T16:19:02.875Z] File "/run/build/checkout/src/maastesting/crochet.py", line 139, in wrapper
[2022-09-23T16:19:02.875Z] return eventual_result.wait(get_timeout())
[2022-09-23T16:19:02.875Z] File "/usr/lib/python3/dist-packages/crochet/_eventloop.py", line 231, in wait
[2022-09-23T16:19:02.875Z] result.raiseException()
[2022-09-23T16:19:02.875Z] File "/usr/lib/python3/dist-packages/twisted/python/failure.py", line 467, in raiseException
[2022-09-23T16:19:02.875Z] raise self.value.with_traceback(self.tb)
[2022-09-23T16:19:02.875Z] File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1418, in _inlineCallbacks
[2022-09-23T16:19:02.875Z] result = g.send(result)
[2022-09-23T16:19:02.875Z] File "/run/build/checkout/src/maasserver/tests/test_listener.py", line 181, in test_handles_missing_system_handler_on_notification
[2022-09-23T16:19:02.875Z] self.assertNotIn(channel, listener.listeners)
[2022-09-23T16:19:02.875Z] File "/run/build/checkout/.ve/lib/python3.8/site-packages/unittest2/case.py", line 1104, in assertNotIn
[2022-09-23T16:19:02.875Z] self.fail(self._formatMessage(msg, standardMsg))
[2022-09-23T16:19:02.875Z] File "/run/build/checkout/.ve/lib/python3.8/site-packages/unittest2/case.py", line 690, in fail
[2022-09-23T16:19:02.875Z] raise self.failureException(msg)
[2022-09-23T16:19:02.875Z] AssertionError: 'sys_test_eof0eo' unexpectedly found in defaultdict(<class 'list'>, {'sys_test_eof0eo': []})

Tags: flaky-test
description: updated
Changed in maas:
status: New → Triaged
importance: Undecided → Medium
milestone: none → 3.3.0
summary: - [flaky test] TestPostgresListenerService -
+ TestPostgresListenerService -
test_handles_missing_system_handler_onnotification
tags: added: flaky-test
Changed in maas:
milestone: 3.3.0 → 3.4.0
Alberto Donato (ack)
Changed in maas:
milestone: 3.4.0 → 3.4.x
Revision history for this message
Jacopo Rota (r00ta) wrote :
Revision history for this message
Jacopo Rota (r00ta) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.