TestImportBootImages - test_update_last_image_sync_end_to_end_import_not_performed

Bug #1990867 reported by Alexsander de Souza
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Invalid
Medium
Unassigned
3.3
Invalid
Medium
Unassigned

Bug Description

http://maas-ci.internal:8080/job/maas-tester/760/testReport/junit/provisioningserver.rpc.tests.test_boot_images/TestImportBootImages/test_update_last_image_sync_end_to_end_import_not_performed/

testtools.testresult.real._StringException: testtools.testresult.real._StringException: Seeds: {{{MAAS_RAND_SEED=9ec939eff26dedd8 PYTHONHASHSEED=1964563795}}}
Twisted logs: {{{Failed to contact region. (While requesting RPC info at http://localhost/MAAS).RegionFactory starting on '/tmp/tmpejc80f_a/1'Starting factory <provisioningserver.rpc.testing.MockLiveClusterToRegionRPCFixture.connect.<locals>.RegionFactory object at 0x7f08ed4a0100>Starting factory <twisted.internet.endpoints.connectProtocol.<locals>.OneShotFactory object at 0x7f08ed4a0430>ClusterClient connection established (HOST:UNIXAddress(None) PEER:UNIXAddress('/tmp/tmpejc80f_a/1'))[RPC -> sent] AmpBox({b'message': b',\xaf\x00\x96\xe7\xc4S_3\x00\xbf\r\xed\xaey\xf4', b'_command': b'Authenticate', b'_ask': b'1'})AMPTestProtocol#5 connection established (HOST:UNIXAddress('/tmp/tmpejc80f_a/1') PEER:UNIXAddress(None))[RPC <- received] AmpBox({b'_ask': b'1', b'_command': b'Authenticate', b'message': b',\xaf\x00\x96\xe7\xc4S_3\x00\xbf\r\xed\xaey\xf4'})[RPC -> responding] AmpBox({b'digest': b'\x17a\x1e+S3\xac\xd2\x9a\xb8\x16c0\x81,\x16\xd9,,\x8d\xb7C\x05\xf7Y}\xcb\xb1\xb0AM\x9c', b'salt': b'\xd4$V\xfe\x80\xa3\xa4\xfa\xcd\xa0\xcf\xa4\xeb\xff\xd2*', b'_answer': b'1'})[RPC <- recieved] AmpBox({b'_answer': b'1', b'digest': b'\x17a\x1e+S3\xac\xd2\x9a\xb8\x16c0\x81,\x16\xd9,,\x8d\xb7C\x05\xf7Y}\xcb\xb1\xb0AM\x9c', b'salt': b'\xd4$V\xfe\x80\xa3\xa4\xfa\xcd\xa0\xcf\xa4\xeb\xff\xd2*'})Event-loop 'eventloop-btdvR6' authenticated.[RPC -> sent] AmpBox({b'system_id': b'', b'hostname': b'04028c495adf', b'interfaces': b'x\x9c\xab\xae\x05\x00\x01u\x00\xf9', b'url': b'http://localhost/MAAS', b'beacon_support': b'True', b'version': b'3.3.0~alpha1-12666-g.3b041759b', b'_command': b'RegisterRackController', b'_ask': b'2'})[RPC <- received] AmpBox({b'_ask': b'2', b'_command': b'RegisterRackController', b'beacon_support': b'True', b'hostname': b'04028c495adf', b'interfaces': b'x\x9c\xab\xae\x05\x00\x01u\x00\xf9', b'system_id': b'', b'url': b'http://localhost/MAAS', b'version': b'3.3.0~alpha1-12666-g.3b041759b'})[RPC -> responding] AmpBox({b'system_id': b'', b'_answer': b'2'})[RPC <- recieved] AmpBox({b'_answer': b'2', b'system_id': b''})Rack controller '' registered (via eventloop-btdvR6) with MAAS version 2.2 or below.[RPC -> sent] AmpBox({b'system_id': b'maas-id-iWavnU', b'_command': b'UpdateLastImageSync', b'_ask': b'3'})[RPC <- received] AmpBox({b'_ask': b'3', b'_command': b'UpdateLastImageSync', b'system_id': b'maas-id-iWavnU'})[RPC -> responding] AmpBox({b'_answer': b'3'})[RPC <- recieved] AmpBox({b'_answer': b'3'})(UNIX Port /tmp/tmpejc80f_a/1 Closed)Stopping factory <provisioningserver.rpc.testing.MockLiveClusterToRegionRPCFixture.connect.<locals>.RegionFactory object at 0x7f08ed4a0100>AMPTestProtocol#5 connection lost (HOST:UNIXAddress('/tmp/tmpejc80f_a/1') PEER:UNIXAddress(None))ClusterClient connection lost (HOST:UNIXAddress(None) PEER:UNIXAddress('/tmp/tmpejc80f_a/1'))}}}
twisted-log: {{{
2022-09-23 20:27:14+0000 [-] Stopping factory <twisted.internet.endpoints.connectProtocol.<locals>.OneShotFactory object at 0x7f08ed4a0430>
2022-09-23 20:27:14+0000 [-] Main loop terminated.
}}}

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1660, in _inlineCallbacks
    result = current_context.run(gen.send, result)
StopIteration

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  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/provisioningserver/rpc/tests/test_boot_images.py", line 409, in test_update_last_image_sync_end_to_end_import_not_performed
    self.assertThat(protocol.UpdateLastImageSync, MockNotCalled())
  File "/run/build/checkout/.ve/lib/python3.10/site-packages/testtools/testcase.py", line 480, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: len([call(<AMPTestProtocol#5 at 0x7f08ed48f7f0>, system_id='maas-id-iWavnU')]) != 0: after <function get_mock_calls> on <Mock name='UpdateLastImageSync' id='139676317444384'>: mock has been called

-------------------- >> begin captured logging << --------------------
maas.tftp: WARNING: No boot images have been imported from the region.
--------------------- >> end captured logging << ---------------------

Tags: flaky-test
Changed in maas:
status: New → Triaged
importance: Undecided → Medium
milestone: none → 3.3.0
summary: - [flaky test] TestImportBootImages -
+ TestImportBootImages -
test_update_last_image_sync_end_to_end_import_not_performed
tags: added: flaky-test
Changed in maas:
milestone: 3.3.0 → 3.4.0
Revision history for this message
Adam Collard (adam-collard) wrote :

Assumed redundant, please re-open if you see it again

Changed in maas:
status: Triaged → Invalid
Alberto Donato (ack)
Changed in maas:
milestone: 3.4.0 → 3.4.0-beta1
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.