test_handler_is_called_on_config_change flaky test

Bug #2026876 reported by Jacopo Rota
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Triaged
Medium
Anton Troyanov

Bug Description

testtools.testresult.real._StringException: testtools.testresult.real._StringException: Seeds: {{{MAAS_RAND_SEED=3f80b1a7a56d68f1 PYTHONHASHSEED=640472283}}}
Twisted logs: {{{Register on sys_reverse_proxy with handler <function TestRegionHTTPService.test_handler_is_called_on_config_change.<locals>._handler at 0x7f06c3eb2440>Register Channel sys_reverse_proxyListening for database notifications.Connection closed.Unregister on sys_reverse_proxy with handler <function TestRegionHTTPService.test_handler_is_called_on_config_change.<locals>._handler at 0x7f06c3eb2440>}}}

Traceback (most recent call last):
  File "/run/build/checkout/src/maastesting/crochet.py", line 149, in wrapper
    return eventual_result.wait(timeout)
  File "/usr/lib/python3/dist-packages/crochet/_eventloop.py", line 198, in wait
    result.raiseException()
  File "/usr/lib/python3/dist-packages/twisted/python/failure.py", line 475, in raiseException
    raise self.value.with_traceback(self.tb)
  File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1660, in _inlineCallbacks
    result = current_context.run(gen.send, result)
  File "/run/build/checkout/src/maasserver/regiondservices/tests/test_http.py", line 209, in test_handler_is_called_on_config_change
    self.assertEqual(capture, ["sys_reverse_proxy"])
  File "/usr/lib/python3.10/unittest/case.py", line 845, in assertEqual
    assertion_func(first, second, msg=msg)
  File "/usr/lib/python3.10/unittest/case.py", line 1051, in assertListEqual
    self.assertSequenceEqual(list1, list2, msg, seq_type=list)
  File "/run/build/checkout/src/maastesting/testcase.py", line 224, in assertSequenceEqual
    return super().assertSequenceEqual(seq1, seq2, msg, seq_type)
  File "/usr/lib/python3.10/unittest/case.py", line 1033, in assertSequenceEqual
    self.fail(msg)
  File "/usr/lib/python3.10/unittest/case.py", line 675, in fail
    raise self.failureException(msg)
AssertionError: Lists differ: [] != ['sys_reverse_proxy']

Second list contains 1 additional elements.
First extra element 0:
'sys_reverse_proxy'

- []
+ ['sys_reverse_proxy']

http://maas-ci.internal:8080/job/maas-tester/2959/testReport/maasserver.regiondservices.tests.test_http/TestRegionHTTPService/test_handler_is_called_on_config_change/

Tags: flaky-test
Changed in maas:
milestone: none → 3.5.0
Changed in maas:
assignee: nobody → Anton Troyanov (troyanov)
importance: Undecided → Medium
Changed in maas:
milestone: 3.5.0 → 3.5.x
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.